Philip Sanetra created AVRO-3047:
------------------------------------
Summary: SpecificDatumReader fails to deserialze Records with
mapped namespaces
Key: AVRO-3047
URL: https://issues.apache.org/jira/browse/AVRO-3047
Project: Apache Avro
Issue Type: Bug
Components: csharp
Affects Versions: 1.10.1
Reporter: Philip Sanetra
The SpecificDatumReader is unable to deserialize schemas, which should be
deserialized to SpecificRecord implementations when the SpecifcRecord namespace
was mapped by the avrogen tool. In this case the namespace of the schema does
not match the namespace of the C# class (as expected), but the
SpecificRecordAccess class tries to instanciate that SpecificRecord class via
the namespace from the Schema instead of the mapped namespace, provided to the
avrogen tool:
https://github.com/apache/avro/blob/b90278af3446fe82b061c08076d61b7d1ecaa445/lang/csharp/src/apache/main/Specific/SpecificDatumReader.cs#L112
--
This message was sent by Atlassian Jira
(v8.3.4#803005)