gengliangwang commented on code in PR #37431:
URL: https://github.com/apache/spark/pull/37431#discussion_r944861189
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/json/JSONOptions.scala:
##########
@@ -84,6 +84,12 @@ private[sql] class JSONOptions(
val ignoreNullFields = parameters.get("ignoreNullFields").map(_.toBoolean)
.getOrElse(SQLConf.get.jsonGeneratorIgnoreNullFields)
+ // If this is true, when writing NULL values to columns of JSON tables with
explicit DEFAULT
+ // values, never skip writing the NULL values to storage, overriding
'ignoreNullFields' above.
+ // This can be useful to enforce that inserted NULL values are present in
storage to differentiate
+ // from missing data.
+ val defaultColumnsForceNullFields =
SQLConf.get.defaultColumnJsonWriteNullIfWithDefaultValue
Review Comment:
```suggestion
val writeNullIfWithDefaultValue =
SQLConf.get.jsonWriteNullIfWithDefaultValue
```
--
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]