-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-38126][SQL][TESTS] Check the whole message of error classes #35416
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
|
@cloud-fan @imback82 @ivoson @SaurabhChawla100 @yutoacts @leesf Could you review this PR, please. |
| Dataset.ofRows(spark, plan) | ||
| }.message | ||
| assert(msg.contains("The feature is not supported: " + | ||
| assert(msg.matches("The feature is not supported: " + |
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 a user-facing error? The test constructs logical plan directly which is not user-facing.
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.
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.
Opened SPARK-38131 for the task.
|
Merging to master. Thank you, @cloud-fan for review. |
HyukjinKwon
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.
LGTM2
What changes were proposed in this pull request?
In the PR, I propose to check the whole error messages of error classes in the test suites
Query.*ErrorsSuite.Why are the changes needed?
Does this PR introduce any user-facing change?
No.
How was this patch tested?
By running the modified test suites: