avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cristian Opris (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1157) Idl tool - parse properties as plain String OR expose the property as Json
Date Fri, 14 Sep 2012 10:57:07 GMT

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

Cristian Opris commented on AVRO-1157:

Personally I would go the whole way and add support for Json props to schema, protocol, etc.
I suggested the toString() solution as a quick solution only.

What I was trying to do is to have stuctured annotations and parse those against a schema
themselves (similar to how Java defines annotations as a kind of interface)

I could have a separate annotation for each piece of meta information as you suggest, but
this is kind of nasty if I have lots of stuff to put in there.

The same argument would go agains @aliases, why did you decide to go with an array of values
instead of multiple @alias annotations ??

My point is the current behaviour is inconsistent and rather odd...
> Idl tool - parse properties as plain String OR expose the property as Json
> --------------------------------------------------------------------------
>                 Key: AVRO-1157
>                 URL: https://issues.apache.org/jira/browse/AVRO-1157
>             Project: Avro
>          Issue Type: Improvement
>          Components: java, spec
>    Affects Versions: 1.7.1
>            Reporter: Cristian Opris
>            Priority: Minor
>         Attachments: AVRO-1157.patch
> The IDL Tool currently parses "annotations" as Json objects but only really supports
textual values.
> If one wants to have actual json annotations, they need to write json as an escaped json
> Proposed solutions:
> - expose the property as Json if it's parsed as Json
> - OR  parse the property as a string

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message