You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Bob Kwiencien (JIRA)" <ji...@apache.org> on 2013/09/11 19:03:54 UTC

[jira] [Updated] (AVRO-1376) not in union ["string","null"]

     [ https://issues.apache.org/jira/browse/AVRO-1376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bob Kwiencien updated AVRO-1376:
--------------------------------

    Attachment: bobo.avsc
                bobo.java

bobo.avsc is the avro schema definotionfile, and bobo.java is a silly little java program that will produce the issue.
                
> not in union ["string","null"]
> ------------------------------
>
>                 Key: AVRO-1376
>                 URL: https://issues.apache.org/jira/browse/AVRO-1376
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.7.1
>            Reporter: Bob Kwiencien
>            Priority: Minor
>         Attachments: bobo.avsc, bobo.java
>
>
> Caused by: org.apache.avro.AvroTypeException: Not in union ["string","null"]: "hello lizard lips" in field desco of avro.bobo_types
> The string "hello lizard lips" is rejected. The schema definition is:
> {
>    "type": "record",
>    "namespace": "avro",
>    "name": "bobo_types",
>    "fields": [
>     {"name": "desco","type": ["string", "null"]}
>      ]
> }

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