[
https://issues.apache.org/jira/browse/FLINK-18478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17161370#comment-17161370
]
Aljoscha Krettek commented on FLINK-18478:
------------------------------------------
Now you can actually try the Flink 1.11.1 release candiate:
https://lists.apache.org/thread.html/r29ca31ff17e213465f839b5d20c039412234f0fb0faae06897967db9%40%3Cdev.flink.apache.org%3E
You can build against the staged jars by putting this in a {{settings.xml}}:
{code}
<settings>
<activeProfiles>
<activeProfile>flink-1.11.1</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>flink-1.11.1</id>
<repositories>
<repository>
<id>flink-1.11.1</id>
<url>
https://repository.apache.org/content/repositories/orgapacheflink-1378/
</url>
</repository>
<repository>
<id>archetype</id>
<url>
https://repository.apache.org/content/repositories/orgapacheflink-1378/
</url>
</repository>
</repositories>
</profile>
</profiles>
</settings>
{code}
And reference that in you maven commands via --settings path/to/settings.xml.
> AvroDeserializationSchema does not work with types generated by avrohugger
> --------------------------------------------------------------------------
>
> Key: FLINK-18478
> URL: https://issues.apache.org/jira/browse/FLINK-18478
> Project: Flink
> Issue Type: Bug
> Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile)
> Reporter: Aljoscha Krettek
> Assignee: Aljoscha Krettek
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.10.2, 1.12.0, 1.11.1
>
>
> The main problem is that the code in {{SpecificData.createSchema()}} tries to
> reflectively read the {{SCHEMA$}} field, that is normally there in Avro
> generated classes. However, avrohugger generates this field in a companion
> object, which the reflective Java code will therefore not find.
> This is also described in these ML threads:
> *
> [https://lists.apache.org/thread.html/5db58c7d15e4e9aaa515f935be3b342fe036e97d32e1fb0f0d1797ee@%3Cuser.flink.apache.org%3E]
> *
> [https://lists.apache.org/thread.html/cf1c5b8fa7f095739438807de9f2497e04ffe55237c5dea83355112d@%3Cuser.flink.apache.org%3E]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)