tshauck commented on code in PR #11371: URL: https://github.com/apache/datafusion/pull/11371#discussion_r1671441361
########## datafusion/expr/src/planner.rs: ########## @@ -161,6 +162,28 @@ pub trait ExprPlanner: Send + Sync { ) -> Result<PlannerResult<Vec<Expr>>> { Ok(PlannerResult::Original(args)) } + + /// Plans a `RawAggregateUDF` based on the given input expressions. + /// + /// Returns a `PlannerResult` containing either the planned aggregate function or the original + /// input expressions if planning is not possible. + fn plan_aggregate_udf( + &self, + aggregate_function: RawAggregateUDF, + ) -> Result<PlannerResult<RawAggregateUDF>> { + Ok(PlannerResult::Original(aggregate_function)) Review Comment: I'm not sure what the path is after that to getting from `count(1)` to `count()` as we're talking about in https://github.com/apache/datafusion/pull/11229 (that also works in `.select`). I think until there's a clear path to that, I'm hesitant to expand the scope of this PR. -- 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