allisonwang-db opened a new pull request #30373: URL: https://github.com/apache/spark/pull/30373
### What changes were proposed in this pull request? This PR is a follow-up for #30093. It 1. Swiched the order for the rule `RemoveRedundantSorts` and `EnsureRequirements` so that `EnsureRequirements` will be invoked before `RemoveRedundantSorts`. This change will be backported to 3.0 and 2.4 as well. 2. Updated the config `spark.sql.execution.removeRedundantSorts` version to 2.4.8. ### Why are the changes needed? 1. To avoid IllegalArgumentException when instantiating `PartitioningCollection` before `EnsureRequirements`: ``` IllegalArgumentException: requirement failed: PartitioningCollection requires all of its partitionings have the same numPartitions. ``` 2. To update the rule version it has been backported to 2.4. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit test ---------------------------------------------------------------- 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]
