[ 
https://issues.apache.org/jira/browse/AVRO-3047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17506313#comment-17506313
 ] 

Kyle Schoonover commented on AVRO-3047:
---------------------------------------

[~PSanetra] Can you provide an example of the schema and namespace mapping?

> 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.1#820001)

Reply via email to