HyukjinKwon commented on code in PR #37431:
URL: https://github.com/apache/spark/pull/37431#discussion_r939745224
##########
sql/core/src/test/scala/org/apache/spark/sql/sources/InsertSuite.scala:
##########
@@ -1657,6 +1656,28 @@ class InsertSuite extends DataSourceTest with
SharedSparkSession {
}
}
+ test("SPARK-40001 JSON DEFAULT columns require
JSON_GENERATOR_IGNORE_NULL_FIELDS off") {
+ val error = "DEFAULT values are not supported for JSON tables"
+ withTable("t") {
+ assert(intercept[AnalysisException] {
+ sql("create table t (a int default 42) using json")
Review Comment:
Hm, should we take `ignoreNullFields` option into account too? e.g.( create
table t ... using json options (ignoreNullFields ... )
--
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]