-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-40663][SQL](Final) Migrate execution errors onto error classes #38177
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
|
This is ready for review, @MaxGekk FYI |
| }, | ||
| "_LEGACY_ERROR_TEMP_2277" : { | ||
| "message" : [ | ||
| "Number of dynamic partitions created is <numWrittenParts>\", which is more than <maxDynamicPartitions>\". To solve this try to set <maxDynamicPartitionsKey> to at least <numWrittenParts>." |
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.
Could you remove " around \", which is more than <maxDynamicPartitions>\"
| }, | ||
| "_LEGACY_ERROR_TEMP_2278" : { | ||
| "message" : [ | ||
| "The input $valueType '<input>' does not match the given number format: '<format>'" |
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.
$valueType -> <valueType>
|
Thanks for the review, @MaxGekk ! Just adjusted the comments |
|
@itholic Could you re-trigger GAs and remove |
|
Thanks! Just re-triggered the GA and fix the title! |
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.
Waiting for CI.
|
@itholic Please, fix the test failure: |
|
ping @itholic |
| checkExceptionInExpression[SparkException]( | ||
| toNumberExpr, "[INTERNAL_ERROR] Undefined error message parameter") |
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.
Sorry for late responding, @MaxGekk .
I've been thinking about if there is better way to test expression with error class here.
Please let me know if there is better way to test this ? 🙏
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.
See #38177 (review)
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.
Seems like I should also fix the test & generated golden files.
Let me fix soon!
| "input" -> input, | ||
| "format" -> format)) |
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.
Missed valueType, see the format of the error class _LEGACY_ERROR_TEMP_2278.
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.
Oops, I missed it... Thanks for figuring out!
|
Fixed & re-gened the golden files! |
|
+1, LGTM. All GAs passed. Merging to master. |
### What changes were proposed in this pull request? This the final PR that proposes to migrate the execution errors onto temporary error classes with the prefix `_LEGACY_ERROR_TEMP` The error classes are prefixed with `_LEGACY_ERROR_TEMP_` indicates the dev-facing error messages, and won't be exposed to end users. ### Why are the changes needed? To speed-up the error class migration. The migration on temporary error classes allow us to analyze the errors, so we can detect the most popular error classes. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? ``` $ build/sbt "sql/testOnly org.apache.spark.sql.SQLQueryTestSuite" $ build/sbt "test:testOnly *SQLQuerySuite" $ build/sbt -Phive-thriftserver "hive-thriftserver/testOnly org.apache.spark.sql.hive.thriftserver.ThriftServerQueryTestSuite" ``` Closes apache#38177 from itholic/SPARK-40540-2276-2300. Authored-by: itholic <[email protected]> Signed-off-by: Max Gekk <[email protected]>
What changes were proposed in this pull request?
This the final PR that proposes to migrate the execution errors onto temporary error classes with the prefix
_LEGACY_ERROR_TEMPThe error classes are prefixed with
_LEGACY_ERROR_TEMP_indicates the dev-facing error messages, and won't be exposed to end users.Why are the changes needed?
To speed-up the error class migration.
The migration on temporary error classes allow us to analyze the errors, so we can detect the most popular error classes.
Does this PR introduce any user-facing change?
No
How was this patch tested?