You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "andygrove (via GitHub)" <gi...@apache.org> on 2026/07/03 14:56:39 UTC
[I] Support grouping() and grouping_id() indicator functions [datafusion-comet]
andygrove opened a new issue, #4814:
URL: https://github.com/apache/datafusion-comet/issues/4814
The `grouping()` and `grouping_id()` indicator functions used with `ROLLUP`, `CUBE`, and `GROUPING SETS` are currently marked as unsupported (🔜) in the expressions guide.
These are `Unevaluable` expressions that Spark's analyzer rewrites before physical planning:
- `grouping(col)` becomes `Cast(BitwiseAnd(ShiftRight(spark_grouping_id, n-1-i), 1L), ByteType)`
- `grouping_id()` becomes a reference to the `spark_grouping_id` virtual column
All of the constituent pieces (the `ExpandExec` operator plus `Cast`, `BitwiseAnd`, `ShiftRight`, and `Literal`) are already supported by Comet, so these queries already run natively end-to-end. This issue tracks adding test coverage and marking the functions as supported.
--
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: github-unsubscribe@datafusion.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Support grouping() and grouping_id() indicator functions [datafusion-comet]
Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove closed issue #4814: Support grouping() and grouping_id() indicator functions
URL: https://github.com/apache/datafusion-comet/issues/4814
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org