Skip to main content

Module window

Module window 

Source
Expand description

Window function specification and evaluation.

Evaluated after sort, before projection. Each spec produces a new column appended to every row (e.g., ROW_NUMBER, RANK, SUM OVER).

Re-exports§

pub use eval::evaluate_window_functions;
pub use spec::FrameBound;
pub use spec::WindowFrame;
pub use spec::WindowFuncSpec;

Modules§

aggregate
Aggregate functions used as windows: sum, count, avg, min, max, first_value, last_value.
eval
Top-level dispatch for window-function evaluation.
frame
Window frame bound resolution.
helpers
Shared helpers for window-function evaluation.
offset
Offset window functions: lag, lead, nth_value.
ranking
Ranking and distribution window functions: row_number, rank, dense_rank, ntile, percent_rank, cume_dist.
running
Peer-aware running-aggregate for RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW.
spec
Window function spec and frame types serialized over the SPSC bridge.