Support update for Delta clustered tables [databricks]#13822
Merged
jihoonson merged 1 commit intoNVIDIA:release/25.12from Nov 21, 2025
Merged
Support update for Delta clustered tables [databricks]#13822jihoonson merged 1 commit intoNVIDIA:release/25.12from
jihoonson merged 1 commit intoNVIDIA:release/25.12from
Conversation
Collaborator
Author
|
build |
Signed-off-by: Jihoon Son <ghoonson@gmail.com>
e2e75d7 to
46a917d
Compare
Collaborator
Author
|
build |
Contributor
Greptile Summary
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant SparkSQL
participant UpdateCommandMetaBase
participant GpuUpdateCommandBase
participant DeltaLog
participant GPU
User->>SparkSQL: "UPDATE clustered_table SET e = e+1 WHERE a > 0"
SparkSQL->>UpdateCommandMetaBase: tagSelfForGpu()
UpdateCommandMetaBase->>UpdateCommandMetaBase: "Check if Delta write enabled"
UpdateCommandMetaBase->>UpdateCommandMetaBase: "Check deletion vectors"
Note over UpdateCommandMetaBase: Clustered table check removed
UpdateCommandMetaBase->>SparkSQL: "Tagged for GPU execution"
SparkSQL->>GpuUpdateCommandBase: "run()"
GpuUpdateCommandBase->>DeltaLog: "withNewTransaction()"
GpuUpdateCommandBase->>GpuUpdateCommandBase: "performUpdate()"
GpuUpdateCommandBase->>GPU: "rewriteFiles()"
GPU->>GpuUpdateCommandBase: "Updated files"
GpuUpdateCommandBase->>DeltaLog: "commitIfNeeded()"
DeltaLog->>GpuUpdateCommandBase: "Commit version"
GpuUpdateCommandBase->>User: "Return affected rows"
|
Contributor
There was a problem hiding this comment.
2 files reviewed, 1 comment
Edit Code Review Agent Settings | Greptile
React with 👍 or 👎 to share your feedback on this new summary format
gerashegalov
approved these changes
Nov 21, 2025
3 tasks
This was referenced Dec 9, 2025
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 #13547
Description
This PR adds support for updating clustered tables for Delta.
I ran some test on my workstation to compare the performance of the update operation between CPU and GPU. The selectivity of the match condition in the query was about 10%.
The query speedup was:
GPU configs:
CPU configs:
Checklists
(Please explain in the PR description how the new code paths are tested, such as names of the new/existing tests that cover them.)