avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AVRO-494) the genavro format should support defaults
Date Wed, 07 Apr 2010 16:29:35 GMT

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

Doug Cutting commented on AVRO-494:

> it's actually adding them as properties to the attributes type object.

If we want to use attributes, then we'd need to special-case the type attributes "order" and
"default", which would mean that you couldn't also have a type attribute named "order" or

Another syntax to consider for default values might be something like:

string foo = "foo";

Ordering might be done with keywords in the record field definitition, like:

decreasing string foo = "foo";
unordered string bar = "bar";

As for including JSON, I think we need to add grammar rules for Json to the parser.  Todd,
is that what you tried?

> the genavro format should support defaults
> ------------------------------------------
>                 Key: AVRO-494
>                 URL: https://issues.apache.org/jira/browse/AVRO-494
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>    Affects Versions: 1.3.2
>            Reporter: Eric Evans
>            Priority: Minor
>         Attachments: v1-0001-AVRO-494.-teach-genavro-about-defaults-and-fix-order.txt
> It would be great if the genavro format also supported assigning default values.

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

View raw message