You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/07/30 10:04:00 UTC

[jira] [Commented] (FLINK-9438) Add documentation for (Registry)AvroDeserializationSchema

    [ https://issues.apache.org/jira/browse/FLINK-9438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16561730#comment-16561730 ] 

ASF GitHub Bot commented on FLINK-9438:
---------------------------------------

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:
users@infra.apache.org


> Add documentation for (Registry)AvroDeserializationSchema
> ---------------------------------------------------------
>
>                 Key: FLINK-9438
>                 URL: https://issues.apache.org/jira/browse/FLINK-9438
>             Project: Flink
>          Issue Type: Improvement
>          Components: Documentation
>    Affects Versions: 1.6.0
>            Reporter: Dawid Wysakowicz
>            Assignee: Dawid Wysakowicz
>            Priority: Critical
>              Labels: pull-request-available
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)