forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-49839][SQL] SPJ: Skip shuffles if possible for sorts
### What changes were proposed in this pull request? This is a proposal for skipping shuffles for ORDER BY or other sort operations, if on partition columns. ### Why are the changes needed? This could potentially optimize many jobs, where today all data is shuffled even if we have all the partition values and can sort them. This is a common scenario, for example Iceberg often requests data to be sorted by partition before write , to avoid small file issue. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Add test in KeyGroupedPartitioningSuite ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#48303 from szehon-ho/SPARK-49839. Authored-by: Szehon Ho <[email protected]> Signed-off-by: Chao Sun <[email protected]>
- Loading branch information
Showing
4 changed files
with
97 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters