Skip to main content

expand_group_by

Function expand_group_by 

Source
pub fn expand_group_by(
    group_by: &GroupByExpr,
) -> Result<Option<GroupingSetsExpansion>>
Expand description

Expand the GROUP BY clause if it contains ROLLUP/CUBE/GROUPING SETS.

Returns None when the GROUP BY is a plain expression list with no extensions — callers fall back to the existing single-set path.