You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Bill G (Jira)" <ji...@apache.org> on 2022/11/07 23:46:00 UTC
[jira] [Created] (FLINK-29921) Can't deserialize Avro type if schema contains a field with name `schema`.
Bill G created FLINK-29921:
------------------------------
Summary: 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.2
Reporter: Bill G
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)