forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-45614][SQL] Assign names to error _LEGACY_ERROR_TEMP_215[6,7,8]
### What changes were proposed in this pull request? Replace the legacy error class `_LEGACY_ERROR_TEMP_2156` with an internal error. Assign the name `INVALID_PARAMETER_VALUE.START` to the legacy error class `_LEGACY_ERROR_TEMP_2157`. Assign the name `INVALID_PARAMETER_VALUE.LENGTH` to the legacy error class `_LEGACY_ERROR_TEMP_2158`. ### Why are the changes needed? To assign proper name as a part of activity in SPARK-37935. ### Does this PR introduce _any_ user-facing change? Yes, the error message will include the error class name. ### How was this patch tested? `_LEGACY_ERROR_TEMP_2156` can't be produced from user code since it's an internal error, so I added a unit test in `CollectionExpressionsSuite.scala`. `INVALID_PARAMETER_VALUE.START` and `INVALID_PARAMETER_VALUE.LENGTH` can be produced from user code so I add 2 tests in `QueryExecutionErrorsSuite.scala` to validate them. ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#43481 from dengziming/SPARK-45614. Authored-by: dengziming <[email protected]> Signed-off-by: Max Gekk <[email protected]>
- Loading branch information
1 parent
e1dc571
commit 23c4cce
Showing
6 changed files
with
94 additions
and
33 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