Skip to content

Add support for grouping aggregate function in the SQL planner #2477

@andygrove

Description

@andygrove

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
I would like to be able to run queries with grouping sets (such as ROLLUP and CUBE) that also use the grouping aggregate function. As described in the Spark reference guide, grouping(col) indicates whether a specified column in a GROUP BY is aggregated or not, returns 1 for aggregated or 0 for not aggregated in the result set.",

Describe the solution you'd like
Implement the grouping() aggregate function in the SQL planner.

Describe alternatives you've considered
None

Additional context
None

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions