You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/05/28 17:16:35 UTC
[GitHub] [spark] sigmod commented on a change in pull request #32643: [SPARK-35538][SQL] Migrate transformAllExpressions call sites to use transformAllExpressionsWithPruning
sigmod commented on a change in pull request #32643:
URL: https://github.com/apache/spark/pull/32643#discussion_r641700281
##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/subquery.scala
##########
@@ -138,11 +138,12 @@ object SubExprUtils extends PredicateHelper {
* of the input logical plan.
*/
def stripOuterReferences(p: LogicalPlan): LogicalPlan = {
- p.transformAllExpressions {
+ p.transformAllExpressionsWithPruning(_.containsPattern(OUTER_REFERENCE)) {
case OuterReference(a) => a
}
}
+
Review comment:
Done.
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/ReuseAdaptiveSubquery.scala
##########
@@ -20,6 +20,7 @@ package org.apache.spark.sql.execution.adaptive
import scala.collection.concurrent.TrieMap
import org.apache.spark.sql.catalyst.rules.Rule
+import org.apache.spark.sql.catalyst.trees.TreePattern._
Review comment:
Done.
--
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org