You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Robert Metzger (JIRA)" <ji...@apache.org> on 2019/02/27 19:44:00 UTC

[jira] [Updated] (FLINK-3966) AvroTypeInfo does not work with readonly avro specific records

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

Robert Metzger updated FLINK-3966:
----------------------------------
    Component/s:     (was: Batch Connectors and Input/Output Formats)
                 Formats (JSON, Avro, Parquet, ORC, SequenceFile)

> AvroTypeInfo does not work with readonly avro specific records
> --------------------------------------------------------------
>
>                 Key: FLINK-3966
>                 URL: https://issues.apache.org/jira/browse/FLINK-3966
>             Project: Flink
>          Issue Type: Bug
>          Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile)
>    Affects Versions: 1.0.2, 1.0.3
>            Reporter: Matthew Burghoffer
>            Priority: Minor
>
> When generating avro code, users will often supply createSetters=false and fieldVisibility=private for Avro specific records (for effectively immutable records).  This means that, according to TypeExtractor.isValidPojoField, the object is not a valid pojo (though is completely a valid avro object) and the TypeInformation factory will fail.
> Specific records are usually created using builders, so perhaps using this mechanism for when creating a new record / mutating an existing record is required.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)