dongjoon-hyun opened a new pull request, #60692: URL: https://github.com/apache/spark/pull/60692
### What changes were proposed in this pull request? This PR aims to make `CombineFilters` use `PredicateHelper.splitMovable`, which SPARK-61930 (#60677) added, instead of doing the same split of the outer filter condition inline. ```scala val (movable, rest) = splitMovable(splitConjunctivePredicates(fc), Seq(grandChild)) ``` `CombineFilters` has split the outer condition inline since SPARK-60980 (#60157) and SPARK-61886 (#60631): it combines the conjuncts up to the first non-deterministic or throwable one, and the later conjuncts that `ExprUtils.canEvaluateUnconditionally` accepts and that read no column of `grandChild` that can fail (`failableOutput`), into the filter below. `splitMovable` does exactly this for `plans = Seq(grandChild)`. This PR also updates the Scaladoc of `splitMovable` to mention combining into the filter below, and the comment of `CombineFilters` to point to `splitMovable`. This was suggested by @viirya in the review of #60677. - https://github.com/apache/spark/pull/60677#pullrequestreview-5964023356 ### Why are the changes needed? To keep a single implementation of the rule that decides which conjuncts may be evaluated ahead of the others, shared by `CombineFilters`, `PushPredicateThroughJoin` and `ReorderJoin`. ### Does this PR introduce _any_ user-facing change? No. This is a refactoring without any behavior change. ### How was this patch tested? Pass the CIs with the existing tests, which cover this code path. - `FilterPushdownSuite`: `SPARK-60980` and `SPARK-61886` test cases - `DataFrameSuite`: `SPARK-60980` and `SPARK-61886` test cases ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Opus 5.5 -- 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]
