anlinc commented on code in PR #14553: URL: https://github.com/apache/datafusion/pull/14553#discussion_r1953514141
########## datafusion/expr/src/logical_plan/builder.rs: ########## @@ -1090,11 +1090,31 @@ impl LogicalPlanBuilder { group_expr: impl IntoIterator<Item = impl Into<Expr>>, aggr_expr: impl IntoIterator<Item = impl Into<Expr>>, ) -> Result<Self> { - let group_expr = normalize_cols(group_expr, &self.plan)?; + self._aggregate(group_expr, aggr_expr, true) + } + + pub fn aggregate_without_implicit_group_by_exprs( + self, + group_expr: impl IntoIterator<Item = impl Into<Expr>>, + aggr_expr: impl IntoIterator<Item = impl Into<Expr>>, + ) -> Result<Self> { + self._aggregate(group_expr, aggr_expr, false) + } + + fn _aggregate( Review Comment: I renamed the function to `aggregate_inner` :) -- 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...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org