[ 
https://issues.apache.org/jira/browse/AVRO-1582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14246138#comment-14246138
 ] 

Sean Busbey commented on AVRO-1582:
-----------------------------------

{quote}
case, and also an optimization to omit at serialization time the fields that 
are equal with the default value, and infer them at deserialization time from 
the schema....
{quote}

How does this deal with the reader schema having a different default than the 
writer schema? It seems like if you want "default of reader's schema" as a 
serialized value it's less surprising to implement that as a special case in 
the application layer.

> Json serialization of nullable fileds improvement.
> --------------------------------------------------
>
>                 Key: AVRO-1582
>                 URL: https://issues.apache.org/jira/browse/AVRO-1582
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>    Affects Versions: 1.8.0
>            Reporter: Zoltan Farkas
>            Priority: Minor
>         Attachments: AVRO-1582-PATCH
>
>
> Currently serializing a nullable field of type union like:
> "type" : ["null","some type"]
> when serialized as JSON results in:  
> "field":{"some type":"value"}
> when it could be:
> "field":"value"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to