datafusion icon indicating copy to clipboard operation
datafusion copied to clipboard

AggregateUDF expression API design

Open jayzhan211 opened this issue 1 year ago • 1 comments

File an issue to track the design of UDAF API

Perhaps something like

// form `FIRST_VALUE(a ORDER BY b)`
let agg_expr = AggregateUDF::call(first_value())
  .args(col("a"))
  .order_by(vec![col("b"))
  .build()?;

Originally posted by @alamb in https://github.com/apache/datafusion/pull/10492#discussion_r1599967446

jayzhan211 avatar May 16 '24 13:05 jayzhan211

related to https://github.com/apache/datafusion/issues/6747 (for window APIs)

alamb avatar May 16 '24 18:05 alamb

https://github.com/apache/datafusion/pull/10560 is looking sweet to me

alamb avatar Jun 08 '24 18:06 alamb