rekbun opened a new pull request, #60721: URL: https://github.com/apache/spark/pull/60721
### What changes were proposed in this pull request? This is a backport of #60256 to branch-4.x. The cherry-pick conflicted only in `GroupPartitionsExecSuite`. On master that file ends with `InterpretedYears`, a test helper from SPARK-60541 (#59866), which is not in branch-4.x, so this PR adds only the `LocationCountingRDD` helper from #60256. `GroupedPartitionCoalescer` is the same as on master. ### Why are the changes needed? See #60256. Large groupings no longer add to the task binary of every task, and storage-partitioned groups of several partitions over a scan prefer the host that more of their inputs prefer than any other. ### Does this PR introduce _any_ user-facing change? The same as #60256; its description lists the cases. ### How was this patch tested? The tests from #60256. Locally on branch-4.x, with JDK 21: `GroupPartitionsExecSuite`, `KeyGroupedPartitioningSuite` and its three runtime-filter variants, `EnsureRequirementsSuite`, the six `DynamicPartitionPruningV2*` suites and the `DataSourceV2FileSourceDPPSuite` variants (713 tests passed, 9 ignored when AQE is on), and SQL scalastyle. ### Was this patch authored or co-authored using generative AI tooling? Co-authored with Claude Code. -- 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]
