Indrani Boppana created AVRO-2760:
-------------------------------------
Summary: Avro 1.9.2 - Reading nested AVRO created by earlier
versions is failing
Key: AVRO-2760
URL: https://issues.apache.org/jira/browse/AVRO-2760
Project: Apache Avro
Issue Type: Bug
Components: java
Affects Versions: 1.9.2, 1.9.1
Reporter: Indrani Boppana
Say we have a schema with nestedStructure, for business reasons the schema
structure was left intact but the namespaces have changed.
schema1 - namespace1
schema2 - namespace2
We have data generated with 1.8.2, with schema1. lets call it Data1.
When we read the Data1 as SpecificRecord with schema2 using 1.9.x avro library.
We did notice that when its getting deserialized the top level structures are
getting interpreted fine, but nested record structures are getting interpreted
as namespace1 classes instead of namespace2. And thats causing Runtime class
cast exceptions.
When we read that Data1 as SpecificRecord with schema2 using 1.8.2 avro
library. We did notice that when its getting deserialized the nested record
structures are getting interpreted as namespace2 classes as expected... no
issues.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)