spark
spark copied to clipboard
[SPARK-46956][SQL] Improve the error prompt when `SaveMode` is null in API `DataFrameWriter.mode`
What changes were proposed in this pull request?
The pr aims to improve the error prompt
when SaveMode is null
in API DataFrameWriter.mode
.
Why are the changes needed?
When mode is null
in API DataFrameWriter.mode
, the prompt information is more reasonable and will not cause misunderstandings.
-
Before:
-
After:
Does this PR introduce any user-facing change?
Yes, make more reasonable error prompts to reduce misunderstandings.
How was this patch tested?
- Update existed UT.
- Pass GA.
Was this patch authored or co-authored using generative AI tooling?
No.