You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Thiruvalluvan M. G. (JIRA)" <ji...@apache.org> on 2018/12/30 05:21:00 UTC

[jira] [Updated] (AVRO-2254) Unions with 2 records declared downward fail

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

Thiruvalluvan M. G. updated AVRO-2254:
--------------------------------------
    Component/s: java

> Unions with 2 records declared downward fail
> --------------------------------------------
>
>                 Key: AVRO-2254
>                 URL: https://issues.apache.org/jira/browse/AVRO-2254
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.9.0
>            Reporter: Zoltan Farkas
>            Priority: Major
>
> The following IDL will fail complaining that 2 same type is declared twice in the union:
> {code}
> @namespace("org.apache.avro.gen")
> protocol UnionFwd {
>     record TestRecord {
>       union {SR1, SR2} unionField;
>     }
>     record SR1 {
>       string field;
>     }
>     record SR2 {
>       string field;
>     }
> }
> {code}
> the fix for this can be pretty simple:
> https://github.com/zolyfarkas/avro/commit/56b215f73f34cc80d505875c90217916b271abb5



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)