Karl-WangSK commented on a change in pull request #29360:
URL: https://github.com/apache/spark/pull/29360#discussion_r467552369



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
##########
@@ -2690,6 +2690,18 @@ object SQLConf {
       .booleanConf
       .createWithDefault(true)
 
+  val GROUPING_WITH_UNION = buildConf("spark.sql.optimizer.grouping")
+    .doc("When true, enable grouping with union.")
+    .booleanConf
+    .createWithDefault(false)

Review comment:
       yes. The default spark.sql.optimizer.projections.size=4,but if your 
sql's projections excceed 4,and you still don't want to turn on this function. 
you can set spark.sql.optimizer.grouping=false




----------------------------------------------------------------
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to