You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Eduard Schleining (Jira)" <ji...@apache.org> on 2023/09/01 14:03:00 UTC

[jira] [Created] (AVRO-3848) MessageDeserializer uses wrong type for map fields

Eduard Schleining created AVRO-3848:
---------------------------------------

             Summary: MessageDeserializer uses wrong type for map fields
                 Key: AVRO-3848
                 URL: https://issues.apache.org/jira/browse/AVRO-3848
             Project: Apache Avro
          Issue Type: Bug
            Reporter: Eduard Schleining


When using the avro-maven-plugin to generate classes with map fields, the MessageDeserializer will disregard the "stringType" setting and always provide a map with entries of type UTF8 instead of String.

You can see the behavior in the unit test here:
[https://github.com/eschleining/avroMapDeserialization]

Expected Behavior:
The MessageDeserializer should use keys and values of type String for classes with fields of type Map<String,String>.

Actual Behavior:
The MessageDeserializer puts Map<Utf8,Utf8> into fields that are generated as Map<String,String>



--
This message was sent by Atlassian Jira
(v8.20.10#820010)