-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DELTA-OSS-EXTERNAL] Added config option to enable parallel deletes f…
…or vacuum command Resolves #395 #416 hasn't been updated in over four months, and it would be a verify useful feature for us to have, so I took my own stab at it. - A new config value is added `vacuum.parallelDelete.enabled` that defaults to false - I updated the default behavior to be coalesce to 1 instead of iterate on the driver so that you can see something being done by spark in the UI/console instead of it just sitting there. I'm not sure if there's a reason this would cause issues, so happy to revert this back if you think it should be. - If `vacuum.parallelDelete.enabled` is set to true, it maintains the existing partitions from the `diff` calculation. Because this is the result of a `join`, your partitions are then based off your `spark.sql.shuffle.partitions`. So your parallelism will be min(number of executors, shuffle partitions), and you can tweak your shuffle partitions if you want more/less parallelism I removed the delete static method because the number of parameters that had to be passed to it made it seem like too much. Happy to move that back if that's not preferred. Also happy to make any updates to the name or description of the new config. Closes #522 Signed-off-by: Jose Torres <joseph.torres@databricks.com> Author: Jose Torres <joseph.torres@databricks.com> Author: Adam Binford <adamq43@gmail.com> #12941 is resolved by jose-torres/ee2ucyf3. GitOrigin-RevId: a73aa60a4820c4d6a37f0b21a0db31d72a09cfa5
- Loading branch information
1 parent
be42046
commit 40182f3
Showing
3 changed files
with
52 additions
and
5 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