[
https://issues.apache.org/jira/browse/FLINK-19339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17201420#comment-17201420
]
Dawid Wysakowicz commented on FLINK-19339:
------------------------------------------
A note: this union with logical types works only with Avro >= 1.9.x. Flink <
1.12 uses Avro 1.8.2, by default, but can be upgraded by users manually.
> 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
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.12.0, 1.10.3, 1.11.3
>
>
> 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)