cloud-fan commented on code in PR #39170:
URL: https://github.com/apache/spark/pull/39170#discussion_r1162828030
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/InjectRuntimeFilter.scala:
##########
@@ -159,6 +182,24 @@ object InjectRuntimeFilter extends Rule[LogicalPlan] with
PredicateHelper with J
REGEXP_EXTRACT_FAMILY, REGEXP_REPLACE)
}
+ private def isLeftSideSuperset(
+ joinType: JoinType,
+ left: LogicalPlan,
+ filterCreationSideExp: Expression): Boolean = joinType match {
+ case Inner | LeftSemi | LeftAnti | LeftOuter | RightOuter =>
Review Comment:
```suggestion
case Inner | LeftSemi | LeftAnti | LeftOuter =>
```
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/InjectRuntimeFilter.scala:
##########
@@ -159,6 +182,24 @@ object InjectRuntimeFilter extends Rule[LogicalPlan] with
PredicateHelper with J
REGEXP_EXTRACT_FAMILY, REGEXP_REPLACE)
}
+ private def isLeftSideSuperset(
+ joinType: JoinType,
+ left: LogicalPlan,
+ filterCreationSideExp: Expression): Boolean = joinType match {
+ case Inner | LeftSemi | LeftAnti | LeftOuter | RightOuter =>
+ left.output.exists(_.semanticEquals(filterCreationSideExp))
+ case _ => false
+ }
+
+ private def isRightSideSuperset(
+ joinType: JoinType,
+ right: LogicalPlan,
+ filterCreationSideExp: Expression): Boolean = joinType match {
+ case Inner | LeftOuter | RightOuter =>
Review Comment:
```suggestion
case Inner | RightOuter =>
```
--
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]