You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/05/22 12:00:00 UTC
[jira] [Commented] (AVRO-2639) SpecificCompiler option to generate
Optionals only when nullable
[ https://issues.apache.org/jira/browse/AVRO-2639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17113966#comment-17113966 ]
ASF subversion and git services commented on AVRO-2639:
-------------------------------------------------------
Commit 734ea36dfe00fb70b506b4e987f0ad8341bcad94 in avro's branch refs/heads/master from Daniel Kulp
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=734ea36 ]
[AVRO-2639] Grab unit test from #726, Rest was already done as part of #817
Closes #726
> SpecificCompiler option to generate Optionals only when nullable
> ----------------------------------------------------------------
>
> Key: AVRO-2639
> URL: https://issues.apache.org/jira/browse/AVRO-2639
> Project: Apache Avro
> Issue Type: New Feature
> Components: java
> Affects Versions: 1.9.1
> Reporter: Mike Roberts
> Priority: Minor
>
> When `gettersReturnOptional` all getters return `Optional`, not just the getters for nullable fields.
> It would be nice to add a configuration option (`gettersReturnOptionalOnlyForNullable`?) that made `SpecificCompiler` do this. It would make the Java code more accurately reflect the underlying schema.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)