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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Shang Yuanchun (Jira)
Matthew Burghoffer created FLINK-3966:
-----------------------------------------

             Summary: 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: Avro Support
    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
(v6.3.4#6332)