Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/22237#discussion_r223703894
--- 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 --
the new parameter can be named as `allowArrayAsStructs`
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]