maropu commented on a change in pull request #33212:
URL: https://github.com/apache/spark/pull/33212#discussion_r667665862
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/json/JsonSuite.scala
##########
@@ -2924,6 +2924,61 @@ abstract class JsonSuite
}
}
}
+
+ test("SPARK-35912: nullability with different parse mode -- struct") {
+ // JSON field is missing.
+ val missingFieldInput = """{"c1": 1}"""
+ // JSON filed is null.
+ val nullValueInput =
Review comment:
nit: `val nullValueInput = """{"c1": 1, "c2": null}"""`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]