dongjoon-hyun commented on a change in pull request #30047:
URL: https://github.com/apache/spark/pull/30047#discussion_r505162258
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
##########
@@ -1458,6 +1458,15 @@ object SQLConf {
.booleanConf
.createWithDefault(true)
+ val JSON_EXPRESSION_OPTIMIZATION =
+ buildConf("spark.sql.optimizer.jsonExpressionOptimization")
+ .doc("Whether to optimize Json expressions in SQL optimizer. It includes
pruning " +
+ "unnecessary columns from from_json, simplifing from_json + to_json,
to_json + " +
+ "named_struct(from_json.col1, from_json.col2, ....).")
+ .version("3.1.0")
+ .booleanConf
+ .createWithDefault(true)
Review comment:
Thank you for adding this, @viirya .
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]