MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / agg_spec

Function agg_spec

nodedb-query/src/window/value_agg.rs:435–444  ·  view source on GitHub ↗
(func: &str, frame: WindowFrame, order_by: Vec<(SqlExpr, bool)>)

Source from the content-addressed store, hash-verified

433 }
434
435 fn agg_spec(func: &str, frame: WindowFrame, order_by: Vec<(SqlExpr, bool)>) -> WindowFuncSpec {
436 WindowFuncSpec {
437 alias: format!("w_{func}"),
438 func_name: func.to_string(),
439 args: vec![col("v")],
440 partition_by: vec![],
441 order_by,
442 frame,
443 }
444 }
445
446 /// Drive `apply_v_aggregate` over the whole single-partition row set the
447 /// same way `evaluate_window_functions_value` does (push a Null cell, then

Callers 6

rows_frame_sliding_sumFunction · 0.85
rows_frame_count_and_avgFunction · 0.85
rows_frame_min_maxFunction · 0.85
first_and_last_valueFunction · 0.85

Calls 1

to_stringMethod · 0.80

Tested by 6

rows_frame_sliding_sumFunction · 0.68
rows_frame_count_and_avgFunction · 0.68
rows_frame_min_maxFunction · 0.68
first_and_last_valueFunction · 0.68