-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-41481][CORE][SQL] Reuse INVALID_TYPED_LITERAL instead of _LEGACY_ERROR_TEMP_0020
#39025
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
INVALID_TYPED_LITERAL instead of _LEGACY_ERROR_TEMP_1020INVALID_TYPED_LITERAL instead of _LEGACY_ERROR_TEMP_0020
| } catch { | ||
| case e: IllegalArgumentException => | ||
| val ex = QueryParsingErrors.cannotParseIntervalValueError(value, ctx) | ||
| val ex = QueryParsingErrors.cannotParseValueTypeError(valueType, value, ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MaxGekk do you think the valueType use INTERVAL is OK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, it is ok.
| } catch { | ||
| case e: IllegalArgumentException => | ||
| val ex = QueryParsingErrors.cannotParseIntervalValueError(value, ctx) | ||
| val ex = QueryParsingErrors.cannotParseValueTypeError(valueType, value, ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, it is ok.
|
@LuciferYang Is it ready? |
|
ready now |
|
+1, LGTM. Merging to master. |
|
Thanks @MaxGekk |
…EGACY_ERROR_TEMP_0020` ### What changes were proposed in this pull request? This pr aims to reuse error class `INVALID_TYPED_LITERAL` instead of `_LEGACY_ERROR_TEMP_1020`. ### Why are the changes needed? Proper names of error classes to improve user experience with Spark SQL. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass Github Actions. Closes apache#39025 from LuciferYang/SPARK-41481. Authored-by: yangjie01 <[email protected]> Signed-off-by: Max Gekk <[email protected]>
What changes were proposed in this pull request?
This pr aims to reuse error class
INVALID_TYPED_LITERALinstead of_LEGACY_ERROR_TEMP_1020.Why are the changes needed?
Proper names of error classes to improve user experience with Spark SQL.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Pass Github Actions.