You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Mike Roberts (Jira)" <ji...@apache.org> on 2019/11/26 14:53:00 UTC

[jira] [Created] (AVRO-2639) SpecificCompiler option to generate Optionals only when nullable

Mike Roberts created AVRO-2639:
----------------------------------

             Summary: 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


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)