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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Shang Yuanchun (Jira)
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)