-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-31663][SQL] Grouping sets with having clause returns the wrong result #28501
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
Changes from 10 commits
ced9568
ba97a6c
6f618ab
b48eb75
9d3dc8e
f2a2ad1
47a3b33
567ea7f
9b3dfb4
3b48e38
1de0c75
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -629,12 +629,7 @@ class AstBuilder(conf: SQLConf) extends SqlBaseBaseVisitor[AnyRef] with Logging | |
| case p: Predicate => p | ||
| case e => Cast(e, BooleanType) | ||
| } | ||
| plan match { | ||
| case aggregate: Aggregate => | ||
| AggregateWithHaving(predicate, aggregate) | ||
| case _ => | ||
| Filter(predicate, plan) | ||
| } | ||
| UnresolvedHaving(predicate, plan) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does global aggregate still work? e.g.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it still works, the |
||
| } | ||
|
|
||
| /** | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.