-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-38985][SQL] Add sub error classes #36307
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
33c8d42
to
f1bb2f7
Compare
53f9637
to
ab7b64a
Compare
Can one of the admins verify this patch? |
c5a3736
to
645bcec
Compare
6d8f694
to
ae80a6f
Compare
@cloud-fan @MaxGekk Other than that this is ready to go. |
ae80a6f
to
c9b723c
Compare
c9b723c
to
a4eb0b6
Compare
@MaxGekk @cloud-fan All clean now, can you please review and merge it if you agree. |
sql/core/src/test/scala/org/apache/spark/sql/errors/QueryParsingErrorsSuite.scala
Show resolved
Hide resolved
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala
Outdated
Show resolved
Hide resolved
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala
Outdated
Show resolved
Hide resolved
Co-authored-by: Wenchen Fan <cloud0fan@gmail.com>
…xecutionErrors.scala Co-authored-by: Wenchen Fan <cloud0fan@gmail.com>
…xecutionErrors.scala Co-authored-by: Wenchen Fan <cloud0fan@gmail.com>
sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala
Outdated
Show resolved
Hide resolved
…tionErrorsSuite.scala
thanks, merging to master! |
What changes were proposed in this pull request?
We support nesting an optional map of "sub error classes" in error-classes.json.
Each sub class has a distinct message and independent parameters.
Why are the changes needed?
A select subset of error classes have a large variety of error messages which cannot be easily tokenized.
But we do not want to split them because the conditions are often temporary. An example is UNSUPPORTED_FEATURE.
Supporting nested error classes allows us to keep the variety of messages without exploding the number of error classes.
Does this PR introduce any user-facing change?
Yes, we will change the error message texts
How was this patch tested?
Run all affected error test suites.