[prev in list] [next in list] [prev in thread] [next in thread] 

List:       avro-dev
Subject:    [jira] [Commented] (AVRO-1582) Json serialization of nullable fileds and fields with default values 
From:       "Mark Grey (JIRA)" <jira () apache ! org>
Date:       2017-06-21 18:03:00
Message-ID: JIRA.12739954.1410205729000.72254.1498068180277 () Atlassian ! JIRA
[Download RAW message or body]


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

Mark Grey commented on AVRO-1582:
---------------------------------

[~cutting] thanks!  That clears up a lot actually.

> Json serialization of nullable fileds and fields with default values 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
> 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
(v6.4.14#64029)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic