-
Notifications
You must be signed in to change notification settings - Fork 28.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-49244][SQL] Further exception improvements for parser/interpreter
### What changes were proposed in this pull request? Improved SQL scripting exceptions, by removing duplicate line numbers from error messages and adding backquotes to label identifiers. Additionally, expanded exception tests so they also check if the correct line numbers are being shown. ### Why are the changes needed? They are needed in order to make error messages for sql scripting more readable. ### Does this PR introduce _any_ user-facing change? Yes, sql scripting error messages will now be more readable. ### How was this patch tested? Existing exception tests were improved to check for correct line numbers. ### Was this patch authored or co-authored using generative AI tooling? No Closes #47803 from dusantism-db/sql-scripting-further-exception-improvements. Authored-by: Dušan Tišma <[email protected]> Signed-off-by: Max Gekk <[email protected]>
- Loading branch information
1 parent
f92e948
commit b9b64fe
Showing
6 changed files
with
52 additions
and
42 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