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: [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]
