-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-41478][SQL] Assign a name to the error class _LEGACY_ERROR_TEMP_1234 #39018
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
| }, | ||
| "ANALYZE_TABLE_VIEW_NOT_CACHED" : { | ||
| "message" : [ | ||
| "Temporary view <tableName> is not cached for analyzing columns." |
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.
Could you improve the error message by following the common structure as in other errors in error-classes.json:
- State the issue
- Give a suggestion how to solve it.
The error could be:
| "Temporary view <tableName> is not cached for analyzing columns." | |
| "The ANALYZE TABLE FOR COLUMNS command can operate on temporary views that have been cached already. Consider to cache the view <viewName>." |
| "AES-<mode> with the padding <padding> by the <functionName> function." | ||
| ] | ||
| }, | ||
| "ANALYZE_TABLE_VIEW_NOT_CACHED" : { |
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.
| "ANALYZE_TABLE_VIEW_NOT_CACHED" : { | |
| "ANALYZE_UNCACHED_TEMP_VIEW" : { |
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
|
Can one of the admins verify this patch? |
|
+1, LGTM. Merging to master. |
…P_1234 ### What changes were proposed in this pull request? In the PR, I propose to assign the name ANALYZE_UNCACHED_TEMP_VIEW to the error class _LEGACY_ERROR_TEMP_1234. ### 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? Add new UT. Pass GA. Closes apache#39018 from panbingkun/LEGACY_ERROR_TEMP_1234. 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 the name ANALYZE_UNCACHED_TEMP_VIEW to the error class _LEGACY_ERROR_TEMP_1234.
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?
Add new UT.
Pass GA.