[ https://issues.apache.org/jira/browse/FLINK-13703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Flink Jira Bot updated FLINK-13703: ----------------------------------- Labels: pull-request-available stale-assigned (was: pull-request-available) I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help the community manage its development. I see this issue is assigned but has not received an update in 30 days, so it has been labeled "stale-assigned". If you are still working on the issue, please remove the label and add a comment updating the community on your progress. If this issue is waiting on feedback, please consider this a reminder to the committer/reviewer. Flink is a very active project, and so we appreciate your patience. If you are no longer working on the issue, please unassign yourself so someone else may work on it. > AvroTypeInfo requires objects to be strict POJOs (mutable, with setters) > ------------------------------------------------------------------------ > > Key: FLINK-13703 > URL: https://issues.apache.org/jira/browse/FLINK-13703 > Project: Flink > Issue Type: Improvement > Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile) > Reporter: Alexander Fedulov > Assignee: Andrei Leib > Priority: Minor > Labels: pull-request-available, stale-assigned > > There exists an option to generate Avro sources which would represent > immutable objects (`createSetters` option set to false) > [\[1\]|https://github.com/commercehub-oss/gradle-avro-plugin] , > [\[2\]|https://avro.apache.org/docs/current/api/java/org/apache/avro/mojo/AbstractAvroMojo.html]. > Those objects still have full arguments constructors and are being correctly > dealt with by Avro. > `AvroTypeInfo` in Flink performs a check to verify if a Class complies to > the strict POJO requirements (including setters) and throws an > IllegalStateException("Expecting type to be a PojoTypeInfo") otherwise. Can > this check be relaxed to provide better immutability support? > +Steps to reproduce:+ > 1) Generate Avro sources from schema using `createSetters` option. > 2) Use generated class in > `ConfluentRegistryAvroDeserializationSchema.forSpecific(GeneratedClass.class, > schemaRegistryUrl)` -- This message was sent by Atlassian Jira (v8.20.10#820010)