HyukjinKwon commented on code in PR #37431:
URL: https://github.com/apache/spark/pull/37431#discussion_r949741781
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala:
##########
@@ -2924,6 +2924,18 @@ object SQLConf {
.stringConf
.createWithDefault("csv,json,orc,parquet")
+ val JSON_GENERATOR_WRITE_NULL_IF_WITH_DEFAULT_VALUE =
+ buildConf("spark.sql.jsonGenerator.writeNullIfWithDefaultValue")
+ .internal()
+ .doc("When true, when writing NULL values to columns of JSON tables with
explicit DEFAULT " +
+ "values using INSERT, UPDATE, or MERGE commands, never skip writing
the NULL values to " +
+ "storage, overriding spark.sql.jsonGenerator.ignoreNullFields or the
ignoreNullFields " +
Review Comment:
nit but we could use `JSON_GENERATOR_IGNORE_NULL_FIELDS.key` instead of
`spark.sql.jsonGenerator.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]