tanelk commented on a change in pull request #29650:
URL: https://github.com/apache/spark/pull/29650#discussion_r483756190
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
##########
@@ -882,7 +882,7 @@ object InferFiltersFromConstraints extends Rule[LogicalPlan]
}
}
- private def inferFilters(plan: LogicalPlan): LogicalPlan = plan transform {
+ private def inferFilters(plan: LogicalPlan): LogicalPlan = plan transformUp {
Review comment:
This fixed the SQLQueryTestSuite failure:
https://github.com/apache/spark/pull/29650/checks?check_run_id=1071934445
It is a very complex query, I'm still figuring out how to cover it in a
simplified unit test in `InferFiltersFromConstraintsSuite`.
Other failures are covered by the "Infer all constraints from a chain of
filters" UT.
----------------------------------------------------------------
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]