viirya commented on a change in pull request #29950:
URL: https://github.com/apache/spark/pull/29950#discussion_r509035787
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
##########
@@ -1926,6 +1926,23 @@ object SQLConf {
.booleanConf
.createWithDefault(true)
+ val MAX_COMMON_EXPRS_IN_COLLAPSE_PROJECT =
+ buildConf("spark.sql.optimizer.maxCommonExprsInCollapseProject")
+ .doc("An integer number indicates the maximum allowed number of common
input expression " +
+ "from lower Project when being collapsed into upper Project by
optimizer rule " +
+ "`CollapseProject`. Normally `CollapseProject` will collapse adjacent
Project " +
Review comment:
Yeah, but currently if we exclude `CollapseProject`, `ScanOperation`
will work and collapse projections. Maybe update this doc?
----------------------------------------------------------------
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]