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

[SPARK-48458][SQL] Data loss in dynamic override fix #49295

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

akupchinskiy
Copy link

What changes were proposed in this pull request?

In the run of InsertIntoHadoopFsRelationCommand, we should proactively detect if the spark session was stopped and fail fast in such cases, before any cleaning directories actions start.

Why are the changes needed?

When the dynamic partition override mode is turned on, there is a data corruption risk if a spark session is stopped in unlucky time for any reason.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Run the exemplary gist on the top a local build:

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the SQL label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant