[ 
https://issues.apache.org/jira/browse/AVRO-251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Doug Cutting updated AVRO-251:
------------------------------

    Attachment: AVRO-251.patch

Here's a new, complete version of this.  It directly encodes and decodes 
schemas.

JsonNode#equals() doesn't seem to do what I expect, so I had to modify 
Schema.Field.equals() to use string comparison of default values.  I wonder if 
we even need to serialize default values.  The typical application of this code 
is to efficiently store the schema used to write data with that data.  In this 
case, the default value is never used and just adds baggage.  (Default values 
are only used when reading data written by a schema that lacks that value.)  
This patch would also be simplified somewhat if we didn't need to read/write 
arbitrary json for default values, although it might be a shame to discard this 
json-in-avro implementation.


> add schema for schemas
> ----------------------
>
>                 Key: AVRO-251
>                 URL: https://issues.apache.org/jira/browse/AVRO-251
>             Project: Avro
>          Issue Type: New Feature
>          Components: java
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>             Fix For: 1.3.0
>
>         Attachments: AVRO-251.patch, AVRO-251.patch
>
>
> A schema for schemas would permits schemas to be written in binary.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to