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

Function row_number_sequential

nodedb-query/src/window/value_eval.rs:513–519  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

511
512 #[test]
513 fn row_number_sequential() {
514 let mut rows = rows_v(&[5, 5, 5]);
515 let cols = ci(&["v"]);
516 let s = spec("row_number", vec![], vec![], vec![]);
517 evaluate_window_functions_value(&mut rows, &cols, &[s]).unwrap();
518 assert_eq!(out_int(&rows, 1), vec![1, 2, 3]);
519 }
520
521 #[test]
522 fn rank_handles_ties() {

Callers

nothing calls this directly

Calls 4

specFunction · 0.85
rows_vFunction · 0.70
ciFunction · 0.70

Tested by

no test coverage detected