Swinky commented on a change in pull request #31712:
URL: https://github.com/apache/spark/pull/31712#discussion_r585854270
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/subquery.scala
##########
@@ -98,55 +98,59 @@ object RewritePredicateSubquery extends Rule[LogicalPlan]
with PredicateHelper {
splitConjunctivePredicates(condition)
.partition(SubqueryExpression.hasInOrCorrelatedExistsSubquery)
- // Construct the pruned filter condition.
- val newFilter: LogicalPlan = withoutSubquery match {
- case Nil => child
- case conditions => Filter(conditions.reduce(And), child)
Review comment:
@cloud-fan do we want to update `conditions.reduce(And)` as well?
similar to the review suggestion
[here](https://github.com/apache/spark/pull/31318#discussion_r579979610)
----------------------------------------------------------------
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]