-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-41228][SQL] Rename & Improve error message for COLUMN_NOT_IN_GROUP_BY_CLAUSE.
#38769
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
|
Fixed the Python test first since we have unresolved discussion #38769 (comment) |
|
@itholic Please, rebase on the recent master. |
|
@itholic Could you fix the test failure. It seems it is related to your changes: |
|
|
||
| with QuietTest(self.sc): | ||
| with self.assertRaisesRegex(AnalysisException, "nor.*aggregate function"): | ||
| with self.assertRaisesRegex(AnalysisException, "[MISSING_AGGREGATION]"): |
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.
I think maybe we should test this with similar logic to checkError in Scala side.
Let me create the JIRA and update soon after getting some feedback from community.
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.
@itholic Please, construct AnyValue.
|
+1, LGTM. Merging to master. |
…GROUP_BY_CLAUSE` ### What changes were proposed in this pull request? This PR proposes to rename `COLUMN_NOT_IN_GROUP_BY_CLAUSE` to `MISSING_AGGREGATION`. Also, improve its error message. ### Why are the changes needed? The current error class name and its error message doesn't illustrate the error cause and resolution correctly. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? ``` ./build/sbt “sql/testOnly org.apache.spark.sql.SQLQueryTestSuite*” ``` Closes apache#38769 from itholic/SPARK-41128. Authored-by: itholic <haejoon.lee@databricks.com> Signed-off-by: Max Gekk <max.gekk@gmail.com>
What changes were proposed in this pull request?
This PR proposes to rename
COLUMN_NOT_IN_GROUP_BY_CLAUSEtoMISSING_AGGREGATION.Also, improve its error message.
Why are the changes needed?
The current error class name and its error message doesn't illustrate the error cause and resolution correctly.
Does this PR introduce any user-facing change?
No.
How was this patch tested?