-
Notifications
You must be signed in to change notification settings - Fork 28k
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
[SPARK-28279][PYTHON][SQL][TESTS][FOLLOW-UP] Add UDF cases into group by clause in 'udf-group-analytics.sql' #25362
Conversation
@HyukjinKwon fyi. One thing I noticed is that:
Shouldnt this be allowed? |
hm, shouldn't it be: SELECT udf(a), b, udf(SUM(b)) FROM testData GROUP BY udf(a), b WITH ROLLUP ? |
ah, so you did in this way. Yes, I think what you did is the correct way. other attributes not in grouping expressions cannot appear in select IIRC. |
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.
LGTM if tests pass
@HyukjinKwon yes seems reasonable, just was not sure about the syntax requirements there. |
Test build #108665 has finished for PR 25362 at commit
|
Merged to master. |
Whoever checks the JIRA number in the future: The JIRA has to be |
Thanks @HyukjinKwon didnt notice the new jira, sorry for the inconvenience. |
What changes were proposed in this pull request?
This PR is a followup of a fix as described in here: #25215 (comment)
Diff comparing to 'group-analytics.sql'
How was this patch tested?
Tested as instructed in SPARK-27921.