Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Delta Lake atomic table operations on spark341db [databricks] #9729

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

jlowe
Copy link
Member

@jlowe jlowe commented Nov 15, 2023

Fixes #9676. Databricks 13.3 includes the changes from SPARK-43088 where atomic operations do not include the query at the point where the staged table is created but instead create then append the data. For Delta Lake, this manifests as a subplan being executed which contains an AppendDataExecV1 using the table and WriteBuilder created to handle the original atomic table operation. That explains why the issue reported seeing a tagging attempt on a RAPIDS Accelerator class.

The fix is relatively straightforward. We go ahead and let the AppendDataExecV1 use the RAPIDS Accelerator classes, but we recognize these classes in the tagging code and skip the CPU extraction code when that is the case. This keeps the append operation on the GPU because we're already using a table and writer geared to the GPU.

@jlowe jlowe self-assigned this Nov 15, 2023
@jlowe
Copy link
Member Author

jlowe commented Nov 15, 2023

build

1 similar comment
@jlowe
Copy link
Member Author

jlowe commented Nov 15, 2023

build

@jlowe
Copy link
Member Author

jlowe commented Nov 16, 2023

Build failed due to an unrelated test, posted fix for that test at #9745

@jlowe
Copy link
Member Author

jlowe commented Nov 16, 2023

build

1 similar comment
@jlowe
Copy link
Member Author

jlowe commented Nov 17, 2023

build

@jlowe jlowe merged commit 94b25db into NVIDIA:branch-23.12 Nov 17, 2023
37 checks passed
@jlowe jlowe deleted the fix-delta-atomic-341db branch November 17, 2023 22:00
@sameerz sameerz added the bug Something isn't working label Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants