-
Notifications
You must be signed in to change notification settings - Fork 28k
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
[SPARK-44004][SQL] Assign name & improve error message for frequent LEGACY errors. #41504
Conversation
cc @MaxGekk @srielau @cloud-fan could you take a look when you find some time? |
Thanks @cloud-fan for review. Just adjusted the comments. |
…top_error_class
…top_error_class
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveInlineTables.scala
Outdated
Show resolved
Hide resolved
@@ -1754,6 +1779,11 @@ | |||
], | |||
"sqlState" : "42826" | |||
}, | |||
"OPERATION_NOT_ALLOWED" : { | |||
"message" : [ | |||
"Operation not allowed: <message>. This error occurs when attempting an operation that is not currently supported. Please check the documentation for the list of allowable operations." |
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.
Instead of the generic message
. Please, add sub-classes.
I told you about this in your PR #39965
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.
Oh,,, I didn't realized that the PR was closed. Let me revisit my PR and revert the change here in this PR.
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
Outdated
Show resolved
Hide resolved
…top_error_class
…top_error_class
…top_error_class
…top_error_class
…top_error_class
…top_error_class
@MaxGekk I adjusted the comments, but CI keep failing that I can't get the reason from the log below:
Could you happen to help me resolving CI failure when you find some time? also cc @cloud-fan FYI |
…top_error_class
CI passed. cc @MaxGekk @cloud-fan |
sql/core/src/test/scala/org/apache/spark/sql/execution/SQLViewTestSuite.scala
Outdated
Show resolved
Hide resolved
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala
Outdated
Show resolved
Hide resolved
…top_error_class
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.
Waiting for CI.
+1, LGTM. Merging to master. |
What changes were proposed in this pull request?
This PR proposes to assign name & improve error message for frequent LEGACY errors.
Why are the changes needed?
To improve the errors that most frequently occurring.
Does this PR introduce any user-facing change?
No API changes, it's only for errors.
How was this patch tested?
The existing CI should passed.