-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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-49941][CORE] Rename errorClass
to condition
in errors of the JSON format
#48431
base: master
Are you sure you want to change the base?
Conversation
@srielau @panbingkun @nchammas @cloud-fan Could you review the PR, please. |
errorClass
to condition
in errors of the JSON format
@panbingkun Thank you for review.
|
Yeah!
|
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.
LGTM, but is there a summary of why we are going with condition
rather than errorCondition
?
I remember seeing a discussion somewhere about this, but it's not on the ticket associated with this PR.
@nchammas Thank you for your comment. I have updated PR's description and added reasons for the name. |
What changes were proposed in this pull request?
In the PR, I propose to rename the
errorClass
tocondition
in errors in the JSON formats:MINIMAL
andSTANDARD
.For example:
The name
condition
was taken because it is used the SQL standard:and no need extra words as a suffix or prefix in the context of error message format.
Why are the changes needed?
To follow new naming convention introduced by #44902.
Does this PR introduce any user-facing change?
Yes.
How was this patch tested?
By running the affected tests:
Was this patch authored or co-authored using generative AI tooling?
No.