You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Dawid Wysakowicz (Jira)" <ji...@apache.org> on 2020/09/22 06:54:00 UTC

[jira] [Created] (FLINK-19339) Support Avro's unions with logical types

Dawid Wysakowicz created FLINK-19339:
----------------------------------------

             Summary: Support Avro's unions with logical types
                 Key: FLINK-19339
                 URL: https://issues.apache.org/jira/browse/FLINK-19339
             Project: Flink
          Issue Type: Improvement
          Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile)
            Reporter: Dawid Wysakowicz
            Assignee: Dawid Wysakowicz
             Fix For: 1.12.0


Avro 1.9.x introduced yet another mechanism for registering/looking up conversions for logical types. See https://issues.apache.org/jira/browse/AVRO-1891

If a logical type is part of a union a static field {{MODEL$}} of type {{SpecificData}} will be added to the generated Avro class with registered conversions for a logical type. We should use that {{SpecificData}} in {{AvroSerializer}} and {{Avro(De)SerializationSchema}} whenever available.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)