forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-47637][SQL] Use errorCapturingIdentifier in more places
### What changes were proposed in this pull request? errorCapturingIdentifier parses identifier with included '-' to raise INVALID_IDENTIFIER errors instead of SYNTAX_ERROR for non-delimited identifiers containing a hyphen. It is meant to be used wherever the context is not that of an expression This PR replaces a few missed identifiers with that rule. ### Why are the changes needed? Improve error messages for undelimited identifiers with a hyphen. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Added unit tests in ErrorParserSuite.scala ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#45764 from srielau/SPARK-47637-errorCapturingIdentifier. Authored-by: Serge Rielau <serge@rielau.com> Signed-off-by: Gengliang Wang <gengliang@apache.org>
- Loading branch information
1 parent
d182810
commit db14be8
Showing
5 changed files
with
40 additions
and
19 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