[
https://issues.apache.org/jira/browse/AVRO-4028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17871450#comment-17871450
]
Karyna Bilotska commented on AVRO-4028:
---------------------------------------
*Proposed solution:*
* *Fix:* C# ObjectCreator.FindType() was extended with additional if-check to
handle and parse nested Dictionaries correctly.
* *Testing:* new test cases were added for the existing unit tests to check
that an improvement resolves the issue and ensures smooth finding type without
exceptions.
Pull request will be added soon.
> Avro.AvroException: Unable to find type 'IDictionary<string, Foo>' in all
> loaded assemblies
> -------------------------------------------------------------------------------------------
>
> Key: AVRO-4028
> URL: https://issues.apache.org/jira/browse/AVRO-4028
> Project: Apache Avro
> Issue Type: Bug
> Reporter: Karyna Bilotska
> Priority: Major
>
> Here is an issue with Avro ISpecificRecord deserializing while using the
> Avro.Specific library.
> Scheme: *map in the map* (the simplified scheme example will be added in
> comments below)
> C# gererated property for ISpecificRecord:
> {code:java}
> IDictionary<string,IDictionary<string,Foo>> _changes;{code}
> {*}Problem{*}: Avro.Specific for .NET (C#) does not support nested
> IDictionary property deserializing (for example, IDictionary<string,
> IDictionary<string, Foo>>).
> The following error is raised when trying to deserialize the property I
> described above.
>
> {code:java}
> Avro.AvroException: Unable to find type 'IDictionary<string, Foo>' in all
> loaded assemblies{code}
>
> Here are also a couple of related *open* issues we found: *
> [https://stackoverflow.com/questions/56983940/how-to-handle-deserializing-avro-map-type-in-c-sharp]
> * [https://github.com/confluentinc/confluent-kafka-dotnet/issues/2019]
> *Additional info:*
> We use Confluent.SchemaRegistry.Serdes.Avro (Version="2.3.0), which use
> *Apache.Avro* *(Version="1.11.0")* under the hood.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)