-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add SQL planner support for grouping()
aggregate expressions
#2486
Conversation
grouping()
aggregate expressionsgrouping()
aggregate expressions
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.
TIL "GROUPING" 🤯
https://www.postgresql.org/docs/9.5/functions-aggregate.html (Table 9-53. Grouping Operations
) and https://docs.microsoft.com/en-us/sql/t-sql/functions/grouping-transact-sql?view=sql-server-ver15
} | ||
|
||
fn create_accumulator(&self) -> Result<Box<dyn Accumulator>> { | ||
Err(DataFusionError::NotImplemented( |
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 see -- I was going to suggest adding a test to sql_integ
but it isn't ready yet 👍
I hadn't seen this before either, but it is used in the TPC-DS benchmarks. |
Which issue does this PR close?
Closes #2477
Rationale for this change
Add support for planning SQL queries containing
grouping()
aggregate expressionsWhat changes are included in this PR?
Add support for planning SQL queries containing
grouping()
aggregate expressionsAre there any user-facing changes?
No