Closed
Description
Is your feature request related to a problem or challenge?
Follow on to #5781
There are at least three things named WindowFunction
in DataFusion -- Expr::WindowFunction
, window_function::WindowFunction
and expr::WindowFunction
https://docs.rs/datafusion-expr/26.0.0/datafusion_expr/index.html?search=WindowFunction
Constructing an Expr::WindowFunction to pass to LogicalPlanBuilder::window
is quite challenging
Describe the solution you'd like
I would like to make this process easier with a builder style:
for lead(foo) OVER(PARTITION BY bar)
for example:
let expr = lead(col("foo"))
.with_partition_by(col("bar"))
Describe alternatives you've considered
No response
Additional context
No response