Sam Schlegel created AVRO-2058: ---------------------------------- Summary: ReflectData#isNonStringMap returns true for org.apache.avro.util.Utf8 keys Key: AVRO-2058 URL: https://issues.apache.org/jira/browse/AVRO-2058 Project: Avro Issue Type: Bug Components: java Affects Versions: 1.8.2 Reporter: Sam Schlegel Priority: Critical
Since {{org.apache.avro.util.Utf8}} does not have an {{org.apache.reflect.Stringable}} notation, and is not in {{org.apache.avro.specific.SpecificData#stringableClasses}}, {{ReflectData#isNonStringMap}} returns true. This also causes {{ReflectData#isArray}} to return true for maps with Utf8 keys, and thus {{GenericData#resolveUnion}} fails as well. This ultimately causes {{ReflectData#write}} to fail for schemas that contain a union that contains a map, where the data uses Utf8 for strings. -- This message was sent by Atlassian JIRA (v6.4.14#64029)