jayzhan211 commented on code in PR #10560: URL: https://github.com/apache/datafusion/pull/10560#discussion_r1626750687
########## datafusion-examples/examples/advanced_udaf.rs: ########## @@ -412,7 +412,7 @@ async fn main() -> Result<()> { let df = ctx.table("t").await?; // perform the aggregation - let df = df.aggregate(vec![], vec![geometric_mean.call(vec![col("a")])])?; + let df = df.aggregate(vec![], vec![geometric_mean.call(vec![col("a")]).build()])?; Review Comment: It looks good to me to have both style for function call. We can also have builder for `expr_fn` API expr_fn::first_value(args).agg_builder().filter().builder() -- 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