cloud-fan commented on code in PR #44367:
URL: https://github.com/apache/spark/pull/44367#discussion_r1432463558
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/rules/Rule.scala:
##########
@@ -33,4 +33,31 @@ abstract class Rule[TreeType <: TreeNode[_]] extends
SQLConfHelper with Logging
}
def apply(plan: TreeType): TreeType
+
+ def apply(plan: TreeType, ruleContext: Option[RuleContextBase]): TreeType =
apply(plan)
+}
+
+trait RuleContextBase {
+ def isSubquery: Boolean
+
+ private[sql] def withSubquery(isSubquery: Boolean): RuleContextBase
Review Comment:
shall we make it public as well? Third-party rules may need to process
subqueries and propagate rule context as well .
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]