datafusion_expr::utils

Function grouping_set_expr_count

Source
pub fn grouping_set_expr_count(group_expr: &[Expr]) -> Result<usize>
Expand description

Count the number of distinct exprs in a list of group by expressions. If the first element is a GroupingSet expression then it must be the only expr.