bgjackma opened a new pull request, #12565:
URL: https://github.com/apache/datafusion/pull/12565

   ## Which issue does this PR close?
   
   Closes #5647.
   
   ## Rationale for this change
   
   Implements the GROUPING function as per Postgres.
   
   
https://www.postgresql.org/docs/15/functions-aggregate.html#FUNCTIONS-GROUPING-TABLE
   
   This is in contrast to other implementations including Databricks and Oracle 
where GROUPING takes only one column and there is a GROUPING_ID function that 
yields a similar bitfield.
   
   ## What changes are included in this PR?
   
   Implement the aggregate function in the Physical Planning stage.
   
   ## Are these changes tested?
   
   A few unit tests and an integration test provided by @
   JasonLi-cn in a previous unfinished PR. 
   
   Could always use more.
   
   ## Are there any user-facing changes?
   
   * Slight change to definition of unimplemented function.
   * Implementation of that function.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to