[
https://issues.apache.org/jira/browse/AVRO-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nandor Kollar resolved AVRO-2415.
---------------------------------
Resolution: Fixed
> Regression: Schema evolution of union containing array fails in 1.9.0
> ---------------------------------------------------------------------
>
> Key: AVRO-2415
> URL: https://issues.apache.org/jira/browse/AVRO-2415
> Project: Apache Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.9.0
> Reporter: Martin Jubelgas
> Assignee: Martin Jubelgas
> Priority: Major
> Fix For: 1.10.0, 1.9.1
>
>
> I've come across another example that does not resolve in 1.9.0 but did in
> 1.8.2:
> {code:java}
> public void testArrayInUnion() throws Exception {
> Schema writerSchema = SchemaBuilder.array().items().intType();
> Schema readerSchema = SchemaBuilder.unionOf()
> .nullType()
> .and()
> .array().items().intType().endUnion();
> ResolvingDecoder.resolve(writerSchema, readerSchema );
> }
> {code}
> results in just the same kind of exception (even with pull request #526
> applied)
> {code:java}
> java.lang.ClassCastException: org.apache.avro.Resolver$ReaderUnion cannot be
> cast to org.apache.avro.Resolver$Container
> at
> org.apache.avro.io.parsing.ResolvingGrammarGenerator.generate(ResolvingGrammarGenerator.java:95)
> at
> org.apache.avro.io.parsing.ResolvingGrammarGenerator.generate(ResolvingGrammarGenerator.java:65)
> at org.apache.avro.io.ResolvingDecoder.resolve(ResolvingDecoder.java:85)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)