Github user MaxGekk commented on a diff in the pull request: https://github.com/apache/spark/pull/22237#discussion_r223833101 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/json/JacksonParser.scala --- @@ -90,6 +91,10 @@ class JacksonParser( // in such an array as a row, this case is possible. if (array.numElements() == 0) { Nil + } else if (array.numElements() > 1 && !explodeArray) { --- End diff -- > ... but I think it's ok to drop it in from_json > ... the new parameter can be named as allowArrayAsStructs Is it ok if I'll do: ``` case START_ARRAY if allowArrayAsStructs => ```
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org