Open alamb opened 6 months ago
I'd like to try a small POC and migrate ROW_NUMBER
to WindowUDF
trait
I'd like to try a small POC and migrate
ROW_NUMBER
toWindowUDF
trait
That would be awesome. Thank you
I recommend trying to put it in its own crate if possible (datfusion-window-functions
perhaps?) but that doesn't have to be part of the POC
Is your feature request related to a problem or challenge?
For many of the same reasons as listed on https://github.com/apache/arrow-datafusion/issues/8045, having two types of aggregate functions ("built in" --BuiltInWindowFunction and WindowUDF is problematic for two reasons:
FIRST_VALUE
andLAST_VALUE
)Describe the solution you'd like
I propose moving DataFusion to only use
WindowURF
s and remove BuiltInWindowFunction for the same reasons as https://github.com/apache/arrow-datafusion/issues/8045We will keep the existing
WindowUDF
interface as much as possible, while also potentially providing an easier way to define them.Describe alternatives you've considered
Additional context
Proposed implementation steps: