HyukjinKwon commented on a change in pull request #23556: [SPARK-26626][SQL]
Maximum size for repeatedly substituted aliases in SQL expressions
URL: https://github.com/apache/spark/pull/23556#discussion_r267676810
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
##########
@@ -1717,6 +1717,15 @@ object SQLConf {
"and java.sql.Date are used for the same purpose.")
.booleanConf
.createWithDefault(false)
+
+ val MAX_REPEATED_ALIAS_SIZE =
+ buildConf("spark.sql.maxRepeatedAliasSize")
+ .internal()
+ .doc("The maximum size of alias expression that will be substituted
multiple times " +
+ "(size defined by the number of nodes in the expression tree). " +
+ "Used by the CollapseProject optimizer, and PhysicalOperation.")
+ .intConf
+ .createWithDefault(100)
Review comment:
It does add something automatic stuff but I don't think this is so much
worth since we already have a general mechanism. Note that you can also
increases the driver side's memory. How does it relate with this configuration?
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]