avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiruvalluvan M. G. (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AVRO-258) Higher-level language for authoring schemata
Date Mon, 21 Dec 2009 02:56:18 GMT

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

Thiruvalluvan M. G. commented on AVRO-258:

The syntax looks fine for me. The only addition I'd like to add to the grammar is to support
optional fields in records. We use the idiom that a union of a "Type" and "null"  makes the
field optional. I'd like the language support it directly. That is I'd like something like:

record r {
    string name;
    optional string org;

as a shorthand for

record r {
    string name;
    union { null, string } org;

> Higher-level language for authoring schemata
> --------------------------------------------
>                 Key: AVRO-258
>                 URL: https://issues.apache.org/jira/browse/AVRO-258
>             Project: Avro
>          Issue Type: New Feature
>          Components: spec
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>         Attachments: AVRO-258.txt, simple-genned.avpr, simple.avpr
> Early users of Avro have noted that authoring schemas and especially protocols in JSON
feels unnatural. This JIRA is to work on a higher-level language that feels more like defining
interfaces and classes in Java/C/etc.

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

View raw message