-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-41176][SQL] Assign a name to the error class _LEGACY_ERROR_TEMP_1042 #38707
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
|
Can one of the admins verify this patch? |
| "The operation <statement> is not allowed on the <objectType>: <objectName>" | ||
| ] | ||
| }, | ||
| "FUNCTION_WRONG_NUM_ARGS" : { |
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.
@cloud-fan @srielau Are you ok with the name or maybe just WRONG_NUM_ARGS? Later we will merge DATATYPE_MISMATCH.WRONG_NUM_ARGS into it.
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.
WRONG_NUM_ARGs is fine. If we want to keep a longer name I'd prefer ROUTINE over FUNCTIOn for future proofing.
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.
@panbingkun Please, rename it to WRONG_NUM_ARGS.
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.
Done
| "name" -> name, | ||
| "expectedInfo" -> expectedInfo, | ||
| "actualNumber" -> actualNumber.toString)) | ||
| "functionName" -> name, |
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.
Please, wrap functionName by toSQLId().
|
+1, LGTM. Merging to master. |
…P_1042 ### What changes were proposed in this pull request? In the PR, I propose to assign a name to the error class _LEGACY_ERROR_TEMP_1042. ### Why are the changes needed? Proper names of error classes should improve user experience with Spark SQL. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass GA. Closes apache#38707 from panbingkun/SPARK-41176. Authored-by: panbingkun <[email protected]> Signed-off-by: Max Gekk <[email protected]>
…P_1042 ### What changes were proposed in this pull request? In the PR, I propose to assign a name to the error class _LEGACY_ERROR_TEMP_1042. ### Why are the changes needed? Proper names of error classes should improve user experience with Spark SQL. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass GA. Closes apache#38707 from panbingkun/SPARK-41176. Authored-by: panbingkun <[email protected]> Signed-off-by: Max Gekk <[email protected]>
What changes were proposed in this pull request?
In the PR, I propose to assign a name to the error class _LEGACY_ERROR_TEMP_1042.
Why are the changes needed?
Proper names of error classes should improve user experience with Spark SQL.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass GA.