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

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

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

Doug Cutting commented on AVRO-1376:
------------------------------------

Can you please provide a complete code example that reproduces this?  Thanks!
                
> 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
>
> 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