manuzhang opened a new pull request #29797: URL: https://github.com/apache/spark/pull/29797
### What changes were proposed in this pull request? Do not change number of partitions on RepartitionByExpression when `spark.sql.adaptive.coalescePartitions.enabled=false`. ### Why are the changes needed? Users usually repartition with partition column on dynamic partition overwrite. AQE could break it when changing number of partitions in coalescing shuffle partitions or using local shuffle reader. That could lead to a large number of output files, even exceeding the file system limit. A simple fix is to allow users to disable it by setting coalescingPartitions to false. ### Does this PR introduce _any_ user-facing change? Yes. ### How was this patch tested? Add 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]
