You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
user-defined aggregate function as window function #4552
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Currently DataFusion only supports window functions that are either pre-defined in BuiltInWindowFunction, or other built-in aggregate functions in AggregateFunction. It'll be better if people could use "user-defined aggregate function (UDAF)" as window function.
Describe the solution you'd like
Make window function accepts udaf like this:
enumWindowFunction{AggregateFunction(AggregateFunction),BuiltInWindowFunction(BuiltInWindowFunction),// new enum variant, define the udaf that is being used as window functionAggregateUDF(Arc<AggregateUDF>),}
And trying to find the corresponding udaf from context(ContextProvider) when interpreting window logical plan.
Activity