Github user lindblombr commented on a diff in the pull request:
https://github.com/apache/spark/pull/21847#discussion_r206691928
--- Diff:
external/avro/src/main/scala/org/apache/spark/sql/avro/AvroSerializer.scala ---
@@ -120,7 +133,7 @@ class AvroSerializer(rootCatalystType: DataType,
rootAvroType: Schema, nullable:
case MapType(kt, vt, valueContainsNull) if kt == StringType =>
val valueConverter = newConverter(
- vt, resolveNullableType(avroType.getValueType,
valueContainsNull))
+ vt, resolveUnionType(avroType.getValueType, vt,
valueContainsNull))
--- End diff --
Done.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]