forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-43028][SQL] Add error class SQL_CONF_NOT_FOUND
### What changes were proposed in this pull request? This PR adds a new error class `SQL_CONF_NOT_FOUND`. ### Why are the changes needed? To make the error message more user-friendly when getting a non-existing SQL config. For example: ``` spark.conf.get("some.conf") ``` Before this PR, it will throw this error: ``` java.util.NoSuchElementException: some.conf ``` After this PR: ``` [SQL_CONF_NOT_FOUND] The SQL config "some.conf" cannot be found. Please verify that the config exists. ``` ### Does this PR introduce _any_ user-facing change? Yes. The error message will be changed. ### How was this patch tested? Added a new UT. Closes apache#40660 from allisonwang-db/SPARK-43028-conf-error. Authored-by: allisonwang-db <[email protected]> Signed-off-by: Max Gekk <[email protected]>
- Loading branch information
1 parent
0a63a49
commit d4134a8
Showing
6 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters