[
https://issues.apache.org/jira/browse/AVRO-2369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16811207#comment-16811207
]
Hudson commented on AVRO-2369:
------------------------------
SUCCESS: Integrated in Jenkins build AvroJava #644 (See
[https://builds.apache.org/job/AvroJava/644/])
[AVRO-2369] Add a way to specify a null default for unions with a null. (dkulp:
[https://github.com/apache/avro/commit/fa1a8ef805111c4bb0d6e5fc59e635cf72d33d14])
* (edit) lang/java/avro/src/main/java/org/apache/avro/SchemaBuilder.java
* (edit)
lang/java/avro/src/test/java/org/apache/avro/TestCircularReferences.java
* (edit)
lang/java/avro/src/test/java/org/apache/avro/file/TestSeekableByteArrayInput.java
* (edit) lang/java/avro/src/test/java/org/apache/avro/TestSchemaBuilder.java
* (edit) lang/java/avro/src/main/java/org/apache/avro/Protocol.java
* (edit) lang/java/avro/src/main/java/org/apache/avro/Schema.java
> Provide external way to construct Schema.Field with default value of 'null'
> ---------------------------------------------------------------------------
>
> Key: AVRO-2369
> URL: https://issues.apache.org/jira/browse/AVRO-2369
> Project: Apache Avro
> Issue Type: Task
> Components: java
> Reporter: Ivan Greene
> Assignee: Daniel Kulp
> Priority: Blocker
> Fix For: 1.9.0
>
>
> After making the Schema.Field constructor which takes the default value as a
> JsonNode was made package private, there is no external way to construct a
> field that has a default value of 'null'. Internally that constructor will
> call {{JacksonUtils.toJsonNode(defaultValue)}}, which will return 'null' when
> passed null, and the resulting Field will not have a default value (the json
> node would need to be NullNode instead of simply null itself). This will
> affect projects that need a way to dynamically build schemas and their fields.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)