Github user MaxGekk commented on a diff in the pull request: https://github.com/apache/spark/pull/22226#discussion_r212995984 --- 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 -- Changed here and above
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org