Skip to main content

evaluate_window_functions

Function evaluate_window_functions 

Source
pub fn evaluate_window_functions(
    rows: &mut [(String, Value)],
    specs: &[WindowFuncSpec],
)
Expand description

Evaluate window functions over sorted, partitioned rows.

rows is the sorted result set. Each row is a (doc_id, serde_json::Value). Returns the same rows with window columns appended to each document.