-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-43914][SQL] Assign names to the error class _LEGACY_ERROR_TEMP_[2433-2437] #41476
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
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.
Can you trigger this errors from user space? Could you add some tests, please.
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.
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.
@MaxGekk I created test cases use SimpleAnalyzer.checkAnalysis directly.
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 see but if you cannot trigger the error from user space, we should convert the error to an internal one.
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.
@beliefer Could you try to trigger it by from SQL.
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.
@beliefer Could you try to trigger it by from SQL.
We can't trigger it by SQL. Let me convert it to internal error.
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.
cc @cloud-fan Just to double check that the errors are internal.
|
ping @MaxGekk |
|
ping @MaxGekk The GA failure is unrelate to this PR. |
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.
Internal errors have their own error class, could you use checkError(), please.
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 see.
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, use checkError
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.
cc @cloud-fan Just to double check that the errors are internal.
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.
is this really internal? does the analyzer split select explode(...), explode(...) ... into two Projects?
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.
Let me have a try.
|
@beliefer Could you resolve conflicts, please. |
|
ping @MaxGekk Rebased. |
MaxGekk
left a comment
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 Are you ok with the changes?
|
+1, LGTM. Merging to master. |
|
@MaxGekk @cloud-fan Thank you for all. |
What changes were proposed in this pull request?
The pr aims to assign names to the error class LEGACY_ERROR_TEMP[2433-2437].
Why are the changes needed?
Improve the error framework.
Does this PR introduce any user-facing change?
'No'.
How was this patch tested?
Exists test cases updated.