Github user maropu commented on a diff in the pull request:
https://github.com/apache/spark/pull/21439#discussion_r191298844
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/jsonExpressions.scala
---
@@ -523,6 +523,8 @@ case class JsonToStructs(
// can generate incorrect files if values are missing in columns
declared as non-nullable.
val nullableSchema = if (forceNullableSchema) schema.asNullable else
schema
+ val unpackArray: Boolean =
options.get("unpackArray").map(_.toBoolean).getOrElse(false)
--- End diff --
private? (This is not related to this pr though, `nullableSchema` also can
be private?)
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]