tzulitai commented on a change in pull request #6078: [FLINK-9438] Add 
documentation for AvroDeserializationSchema
URL: https://github.com/apache/flink/pull/6078#discussion_r206077589
 
 

 ##########
 File path: docs/dev/connectors/kafka.md
 ##########
 @@ -166,6 +166,39 @@ For convenience, Flink provides the following schemas:
     The KeyValue objectNode contains a "key" and "value" field which contain 
all fields, as well as
     an optional "metadata" field that exposes the offset/partition/topic for 
this message.
     
+3. `AvroDeserializationSchema` which reads data serialized with Avro format 
using statically provided schema. It can
+    infer the schema from avro generated classes 
(`AvroDeserializationSchema.forSpecific(...)`) or it can work with 
`GenericRecords`
+    with manually provided schema (with 
`AvroDeserializationSchema.forGeneric(...)`). This deserialization schema 
expects that
+    the serialized records DO NOT contain embedded schema.
+
+    - There is also version of this schema available that can lookup writers 
schema (schema which was used to write the record) in
+      [Confluent Schema 
Registry](https://docs.confluent.io/current/schema-registry/docs/index.html). 
Using these deserialization schema
+      record will be read with the schema that was retrieved from Schema 
Registry and transformed to statically provided( either through 
+      `ConfluentRegistryAvroDeserializationSchema.forGeneric(...)` or 
`ConfluentRegistryAvroDeserializationSchema.forSpecific(...)`).
+
+    <br>To use this deserialization schema one has to add additional 
dependency:
 
 Review comment:
   ... one has to add the following additional dependencies ...

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to