Yaniv Daniel
08/04/2023, 4:45 PM'value.avro-confluent.properties.use.latest.version' = 'true',
'value.avro-confluent.properties.auto.register.schemas' = 'false'Ilya Sterin
08/04/2023, 5:55 PMorg.apache.flink.avro.generated.record . But when we then use these messages in the context of a Scala job, we want to use a specific record. So we deserialize it with a specific record. But because the specific record is set to true, the deserializer tries to load the ``org.apache.flink.avro.generated.record` class using a classloader and which doesn't exist.
There is currently no way to specify the schema you want to use (or specify namespace/name) for the schema that Flink SQL generates. So we thought we can use the above options to force flink SQL to use an existing custom schema which we manually registered. The only diff in custom schema is namespace and name. But those options don't seem to work the way we assume they should.
What is the best way to solve this issue, where we use Flink SQL to write to a topic (and it generates a generic avro schema), but then read it as a specific one?Brian Koehler
08/09/2023, 5:31 PMformat=raw. That way you’re not relying on the table api to handle the serialization, just producing the already serialized data.Ilya Sterin
08/09/2023, 6:02 PMIlya Sterin
08/09/2023, 6:03 PMBrian Koehler
08/09/2023, 6:04 PMYaniv Daniel
08/09/2023, 6:13 PMBrian Koehler
08/09/2023, 6:22 PMBrian Koehler
08/09/2023, 6:22 PMBrian Koehler
04/17/2024, 3:23 PM