fn grouping_function_on_id( function: &AggregateFunction, group_by_expr: &HashMap<&Expr, usize>, is_grouping_set: bool, ) -> Result<Expr>