andygrove commented on code in PR #3739: URL: https://github.com/apache/arrow-datafusion/pull/3739#discussion_r989351576
########## datafusion/expr/src/logical_plan/plan.rs: ########## @@ -1338,6 +1341,21 @@ impl Aggregate { input: Arc<LogicalPlan>, group_expr: Vec<Expr>, aggr_expr: Vec<Expr>, + ) -> datafusion_common::Result<Self> { + let grouping_expr: Vec<Expr> = grouping_set_to_exprlist(group_expr.as_slice())?; + let all_expr = grouping_expr.iter().chain(aggr_expr.iter()); + validate_unique_names("Aggregations", all_expr.clone())?; + let schema = DFSchema::new_with_metadata( + exprlist_to_fields(all_expr, &input)?, + input.schema().metadata().clone(), + )?; Review Comment: This is the code moved from `LogicalPlanBuilder::aggregate` -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org