Skip to content

[SPARK-47689][SQL][FOLLOWUP] More accurate file path in TASK_WRITE_FAILED error#45844

Closed
cloud-fan wants to merge 1 commit intoapache:masterfrom
cloud-fan:write-error
Closed

[SPARK-47689][SQL][FOLLOWUP] More accurate file path in TASK_WRITE_FAILED error#45844
cloud-fan wants to merge 1 commit intoapache:masterfrom
cloud-fan:write-error

Conversation

@cloud-fan
Copy link
Copy Markdown
Contributor

@cloud-fan cloud-fan commented Apr 3, 2024

What changes were proposed in this pull request?

This is a follow-up of #45797 . Instead of detecting query execution errors and not wrapping them, it's better to do the error wrapping only in the data writer, which has more context. We can provide the specific file path when the error happened, instead of the destination directory name.

Why are the changes needed?

better error message

Does this PR introduce any user-facing change?

no

How was this patch tested?

updated tests

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

No

@github-actions github-actions bot added the SQL label Apr 3, 2024
@cloud-fan cloud-fan force-pushed the write-error branch 2 times, most recently from 88be7d3 to e79c5a8 Compare April 4, 2024 03:03
@cloud-fan cloud-fan changed the title [WIP] more accurate file path in TASK_WRITE_FAILED error [SPARK-47689][SQL][FOLLOWUP] More accurate file path in TASK_WRITE_FAILED error Apr 4, 2024
@cloud-fan
Copy link
Copy Markdown
Contributor Author

cc @HyukjinKwon

@cloud-fan
Copy link
Copy Markdown
Contributor Author

the docker integration test failure is unrelated, thanks for the review, merging to master!

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.

2 participants