jayzhan211 commented on PR #10560: URL: https://github.com/apache/datafusion/pull/10560#issuecomment-2154683624
And, I think we need `fn agg_builder(self) -> AggregateBuilder;` to get `AggregateBuilder` from Expr ```rust fn agg_builder(self) -> AggregateBuilder { match self { Expr::AggregateFunction(udaf) => { AggregateBuilder::new(Some(udaf)) } _ => AggregateBuilder::new(None) } } ``` The API is like `udaf.call(args).agg_builder().filter().order_by().build()?` `udaf.call(args)` is `Expr::AggregateFunction` -- 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