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

Matt Massie commented on AVRO-18:
---------------------------------

That seems reasonable.

The current Avro spec still has an explicit discriminant: the zero-based 
position within the union.  

The nice thing about using enums when defining unions is that you don't have to 
make sure that your union schema order is maintained as schemas evolve.  Not 
using enums means that a [foo,bar,baz] union != a [bar,baz,foo] union on the 
wire/disk.  That is different than the way most people understand unions.  
Users just need to be made aware in the docs.

I'll use the schema offset as the discriminant unless I hear otherwise.



> add enum type
> -------------
>
>                 Key: AVRO-18
>                 URL: https://issues.apache.org/jira/browse/AVRO-18
>             Project: Avro
>          Issue Type: New Feature
>          Components: spec
>            Reporter: Doug Cutting
>
> Avro schemas should support enum types.

-- 
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