[
https://issues.apache.org/jira/browse/AVRO-3047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17554204#comment-17554204
]
Sean Griffin commented on AVRO-3047:
------------------------------------
I wonder if this still happens on the latest code now that AVRO-2883 is
resolved.
> 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
> Priority: Major
>
> 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.20.7#820007)