ahshahid opened a new pull request, #53985:
URL: https://github.com/apache/spark/pull/53985
### What changes were proposed in this pull request?
The order of application of 3 rules is changed from
```
BooleanSimplification,
SimplifyConditionals,
PushFoldableIntoBranches,
SimplifyBinaryComparison,
```
to
```
SimplifyConditionals,
SimplifyBinaryComparison,
BooleanSimplification,
PushFoldableIntoBranches,
```
### Why are the changes needed?
This would help achieve idempotency in plan optimization faster, in some
cases for eg
`($"a" > 1000 && $"c" =!= false)`
can achieve idempotency in one pass to
`$"a" > 1000 && $"c"`
with the modified order, as BooleanSimplification rule becomes more
efficient due to preprocessing by SimplifyBinaryComparison
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Added bugtest
### Was this patch authored or co-authored using generative AI tooling?
No
--
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]