[ 
https://issues.apache.org/jira/browse/FLINK-29921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fabian Paul updated FLINK-29921:
--------------------------------
    Affects Version/s: 1.15.3
                           (was: 1.15.2)

> Can't deserialize Avro type if schema contains a field with name `schema`.
> --------------------------------------------------------------------------
>
>                 Key: FLINK-29921
>                 URL: https://issues.apache.org/jira/browse/FLINK-29921
>             Project: Flink
>          Issue Type: Bug
>          Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile)
>    Affects Versions: 1.15.3
>            Reporter: Bill G
>            Priority: Major
>
> Flink's Avro deserializer can't deserialize messages with a schema including 
> a field named {{{}schema{}}}. It will throw an exception {{{}Expecting type 
> to be a PojoTypeInfo{}}}. The problem is that the Avro schema compiler 
> generates the getter {{getSchema$()}} because {{getSchema()}} is always 
> generated to return the field {{{}SCHEMA${}}}. This problem would probably 
> also occur for fields such as {{encoder}} and {{decoder}} as these also have 
> automatically generated getter functions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to