Skip to main content

Module aggregate

Module aggregate 

Source
Expand description

Aggregate functions used as windows: sum, count, avg, min, max, first_value, last_value.

Dispatch logic:

  • RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW → fast running path (preserves SIMD accumulation).
  • All other frame combinations → per-row frame evaluator that computes the concrete [start_idx, end_idx] slice for every row and aggregates over it.