You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "peter liu (JIRA)" <ji...@apache.org> on 2015/08/30 21:55:46 UTC

[jira] [Commented] (AVRO-522) the rule on unions containing identical types are not enforced

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

peter liu commented on AVRO-522:
--------------------------------

seems the issue has been fixed

{noformat}
LiuYanbos-MacBook:build liuyanbo$ cat test.json 
{ "type" : "array", "name" : "optionals", "items" : [ "long", "long" ] } 
LiuYanbos-MacBook:build liuyanbo$ ./avrogencpp -i test.json -o test.hh 
Failed to parse or compile schema: Schema is invalid, due to bad node of type union
{noformat}


> the rule on unions containing identical types are not enforced
> --------------------------------------------------------------
>
>                 Key: AVRO-522
>                 URL: https://issues.apache.org/jira/browse/AVRO-522
>             Project: Avro
>          Issue Type: Bug
>          Components: c++
>            Reporter: John Plevyak
>
> {
>     "type" : "array",
>     "name" : "optionals",
>     "items" : [ "long", "long" ]
> }
> is accepted despite being illegal by the combination of precompile and gen-cppcode.py



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)