Array of Unions

2017-08-08 Thread Gill, John
Is it valid for the items in an array to be Union schema? { "type": "array", "items": { "type": [ "int", "boolean", "string" ] } } According to the spec it is ambiguous: * items: the schema of the array's items. I have tried this schema in both python and c and it generates exceptions f

Re: Array of Unions

2017-08-08 Thread Ryan Blue
John, I think your definition should be this: { "type": "array", "items": [ "int", "boolean", "string" ] } The difference is that when using the {"type": } syntax, you can only use one type. Unions are made using lists of types. The above uses a string (e.g., "int") as a stand-in for a full

[jira] [Updated] (AVRO-2061) Improve Invalid File Format Error Message

2017-08-08 Thread BELUGA BEHR (JIRA)
[ https://issues.apache.org/jira/browse/AVRO-2061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] BELUGA BEHR updated AVRO-2061: -- Attachment: AVRO-2061.2.patch > Improve Invalid File Format Error Message > -

[jira] [Commented] (AVRO-2061) Improve Invalid File Format Error Message

2017-08-08 Thread BELUGA BEHR (JIRA)
[ https://issues.apache.org/jira/browse/AVRO-2061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16118953#comment-16118953 ] BELUGA BEHR commented on AVRO-2061: --- [~nkollar] [~cutting] There ya go! Patch submitted.