Is your feature request related to a problem or challenge?
Currently the window expressions use Accumulator to generate the output values.
This should be relatively inefficient as each individual value will generate a ScalarValue, leading to many allocations, high memory usage and limited vectorization.
Describe the solution you'd like
Write more efficient code moving away from Accumulator and producing the values more directly.
Describe alternatives you've considered
No response
Additional context
If we don't use Accumulator in window functions anymore, we can remove count from SumAccumulator, making conventional sums slightly more efficient.
Is your feature request related to a problem or challenge?
Currently the window expressions use
Accumulatorto generate the output values.This should be relatively inefficient as each individual value will generate a
ScalarValue, leading to many allocations, high memory usage and limited vectorization.Describe the solution you'd like
Write more efficient code moving away from
Accumulatorand producing the values more directly.Describe alternatives you've considered
No response
Additional context
If we don't use
Accumulatorin window functions anymore, we can removecountfromSumAccumulator, making conventional sums slightly more efficient.