[
https://issues.apache.org/jira/browse/AVRO-2254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17766716#comment-17766716
]
ASF subversion and git services commented on AVRO-2254:
-------------------------------------------------------
Commit 1faa9f1994c954e935fd8f5f12e5906a3b278ece in avro's branch
refs/heads/master from Christophe Le Saec
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=1faa9f199 ]
AVRO-2254: [java] fix unresolved schema name (#2365)
* AVRO-2254: fix unresolved shema name
> 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
> Assignee: Christophe Le Saec
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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
(v8.20.10#820010)