-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADAM-864] Don't force shuffle if reducing partition count.
Resolves #864. In Spark, coalescing will reduce the number of partitions in an RDD without performing a shuffle, but coalescing will only increase the number of partitions if a shuffle is performed. This PR modifies Transform and Vcf2ADAM to check whether the coalesce option will increase or decrease the partition count. Additionally, it adds a flag that allows the user to force a shuffle; this may be desirable as this causes a HashPartitioned shuffle, which may improve the balance of records across partitions. Additionally, we modify ADAM2Fasta to support similar options.
- Loading branch information
Showing
3 changed files
with
30 additions
and
9 deletions.
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