spark icon indicating copy to clipboard operation
spark copied to clipboard

[SPARK-46956][SQL] Improve the error prompt when `SaveMode` is null in API `DataFrameWriter.mode`

Open panbingkun opened this issue 1 year ago • 0 comments

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: image

  • After: image

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.

panbingkun avatar Feb 02 '24 09:02 panbingkun