Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.11.0
Description
The background
I found SQL Kafka connector can not consume avro data that was serialized by `KafkaAvroSerializer` and only can consume Row data with avro schema because we use `AvroRowDeserializationSchema/AvroRowSerializationSchema` to se/de data in `AvroRowFormatFactory`.
I think we should support this because `KafkaAvroSerializer` is very common in Kafka.
and someone met same question in stackoverflow[1].
The format details
The factory identifier (or format id)
There are 2 candidates now ~
- avro-sr: the pattern borrowed from KSQL JSON_SR format [1]
- avro-confluent: the pattern borrowed from Clickhouse AvroConfluent [2]
Personally i would prefer avro-sr because it is more concise and the confluent is a company name which i think is not that suitable for a format name.
The format attributes
Options | required | Remark |
---|---|---|
schema-registry.url | true | URL to connect to schema registry service |
schema-registry.subject | false | Subject name to write to the Schema Registry service, required for sink |
Attachments
Issue Links
- causes
-
FLINK-19495 Add documentation for avro-confluent format
- Resolved
- Is contained by
-
FLINK-16146 Improve end-to-end usability of Flink Table API & SQL
- Closed
- links to