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

Nisarg commented on AVRO-1582:
------------------------------

I believe this is not going to be part of 1.9.0 release. We are planning to use 
Zoltan Farkas's forked encoder/decoder for the following features: -
1) Able to serialize decimal from JSON numbers. 1.8.2 throws Expected bytes, 
got FLOAT exception. 
2) The need for standard JSON format serialization, instead of the embedded 
types, in case of default nulls.  

Was just wondering what's the reason behind this not making it to 1.9.0 release?

> Json serialization of nullable fileds and fields with default values 
> improvement.
> ---------------------------------------------------------------------------------
>
>                 Key: AVRO-1582
>                 URL: https://issues.apache.org/jira/browse/AVRO-1582
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: java
>    Affects Versions: 1.8.0
>            Reporter: Zoltan Farkas
>            Priority: Major
>         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"
> Also fields that equal the the default value can be omitted from the 
> serialized data. This is possible because the reader will have the writer's 
> schema and can infer the field values. This reduces the size of the json 
> messages.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to