maryannxue commented on a change in pull request #31712:
URL: https://github.com/apache/spark/pull/31712#discussion_r589585126
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/subquery.scala
##########
@@ -93,7 +93,8 @@ object RewritePredicateSubquery extends Rule[LogicalPlan]
with PredicateHelper {
}
def apply(plan: LogicalPlan): LogicalPlan = plan transform {
- case Filter(condition, child) =>
+ case Filter(condition, child)
+ if SubqueryExpression.hasInOrCorrelatedExistsSubquery(condition) =>
Review comment:
Nit: can we pay attention to the indent here? should go 2 spaces further
in.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]