Adding support for DML writes to DV enabled tables - #15869
Open
sdrp713 wants to merge 5 commits into
Open
Conversation
Contributor
|
sdrp713
force-pushed
the
delta-dml-dv
branch
from
September 1, 2026 20:45
6281b8f to
e80cc77
Compare
Signed-off-by: Rahul Prabhu <raprabhu@nvidia.com>
Signed-off-by: Rahul Prabhu <raprabhu@nvidia.com>
sdrp713
force-pushed
the
delta-dml-dv
branch
from
September 10, 2026 20:00
27985b3 to
2084918
Compare
Collaborator
|
Could you add performance benchmark result for Delta-4.x as well. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #12577.
Description
This PR adds GPU acceleration for Apache Delta Lake DELETE, UPDATE, and MERGE commands on deletion vector enabled tables.
With deletion vectors, existing Parquet rows are logically removed by recording their physical row indexes in a DV. Updated or inserted rows are written to new Parquet files. This PR accelerates the data intensive parts of that workflow on the GPU while retaining Delta’s existing transaction and deletion vector semantics.
Implementation
The implementation accelerates:
MERGE.Collision free dictionary IDs are used in GPU aggregations instead of carrying full file paths or relying on hashes. This reduces GPU memory and shuffle overhead while preserving an exact mapping back to each Delta
AddFile.Candidate files that already have deletion vectors are also supported. The GPU scan returns physical row indexes after applying the existing DV, and newly modified positions are combined with the existing deleted positions before the updated DV is written.
Sparse RoaringBitmap construction, DV serialization, Delta action construction, and optimistic transaction commit remain on the CPU. These are relatively smaller operations compared to the larger scans, joins, aggregations, and Parquet writes that remain GPU accelerated.
Performance
Performance was measured on the Spark2A A100 cluster using Spark 3.5.7 and Delta Lake 3.3.1.
The benchmark used approximately 365 days of the SF3000 NDS
store_salesdataset. Deterministic predicates modified approximately 10% of the target rows. Each command was measured using five independent CPU runs and five independent GPU runs, with zero warmup iterations and cluster reuse.Checklists
Documentation
Testing
(Please provide the names of the existing tests in the PR description.)
Performance