Github user maropu commented on a diff in the pull request:
https://github.com/apache/spark/pull/22226#discussion_r212917164
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/json/JacksonGenerator.scala
---
@@ -65,6 +66,8 @@ private[sql] class JacksonGenerator(
(arr: SpecializedGetters, i: Int) => {
writeObject(writeMapData(arr.getMap(i), mt, mapElementWriter))
}
+ case _ => throw new UnsupportedOperationException(
+ s"Initial type ${dataType.catalogString} must be an array, a struct
or a map")
--- End diff --
nit: `s"Initial type ${dataType.catalogString} must be an array, a struct
or a map")` -> `s"Initial type ${dataType.catalogString} must be an
${ArrayType.simpleString}, a ${StructType.simpleString} or a
${MapType.simpleString}")`?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]