[SPARK-49941][CORE] Rename errorClass to condition in errors of the JSON format#48431
[SPARK-49941][CORE] Rename errorClass to condition in errors of the JSON format#48431MaxGekk wants to merge 8 commits into
errorClass to condition in errors of the JSON format#48431Conversation
|
@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!
|
|
@nchammas Thank you for your comment. I have updated PR's description and added reasons for the name. |
| val g = generator.useDefaultPrettyPrinter() | ||
| g.writeStartObject() | ||
| g.writeStringField("errorClass", "LEGACY") | ||
| g.writeStringField("condition", "LEGACY") |
There was a problem hiding this comment.
How about errorCondition? The name condition makes confusion for developers who not read the document common/utils/src/main/resources/error/README.md.
|
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |

What changes were proposed in this pull request?
In the PR, I propose to rename the
errorClasstoconditionin errors in the JSON formats:MINIMALandSTANDARD.For example:
{ "condition" : "DIVIDE_BY_ZERO", "sqlState" : "22012", "messageParameters" : { "config" : "CONFIG"} }The name

conditionwas 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.