Skip to content

Commit

Permalink
[SPARK-46576][SQL][FOLLOWUP] Improve error messages for unsupported d…
Browse files Browse the repository at this point in the history
…ata source save mode

### What changes were proposed in this pull request?

This PR is a follow up for apache#44576 to change the single quotes to double quotes for data source name.

### Why are the changes needed?

To make the error message format consistent.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Existing tests

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

No

Closes apache#44790 from allisonwang-db/spark-46576-follow-up.

Authored-by: allisonwang-db <allison.wang@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
  • Loading branch information
allisonwang-db authored and HyukjinKwon committed Jan 19, 2024
1 parent 01bb1b1 commit c0939fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/utils/src/main/resources/error/error-classes.json
Original file line number Diff line number Diff line change
Expand Up @@ -3619,7 +3619,7 @@
},
"UNSUPPORTED_DATA_SOURCE_SAVE_MODE" : {
"message" : [
"The data source '<source>' cannot be written in the <createMode> mode. Please use either the \"Append\" or \"Overwrite\" mode instead."
"The data source \"<source>\" cannot be written in the <createMode> mode. Please use either the \"Append\" or \"Overwrite\" mode instead."
],
"sqlState" : "0A000"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/sql-error-conditions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2360,7 +2360,7 @@ Unsupported data type `<typeName>`.

[SQLSTATE: 0A000](sql-error-conditions-sqlstates.html#class-0A-feature-not-supported)

The data source '`<source>`' cannot be written in the `<createMode>` mode. Please use either the "Append" or "Overwrite" mode instead.
The data source "`<source>`" cannot be written in the `<createMode>` mode. Please use either the "Append" or "Overwrite" mode instead.

### UNSUPPORTED_DATA_TYPE_FOR_DATASOURCE

Expand Down

0 comments on commit c0939fa

Please sign in to comment.