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

Function make_rows

nodedb-query/src/window/eval.rs:67–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 use serde_json::json;
66
67 fn make_rows() -> Vec<(String, serde_json::Value)> {
68 vec![
69 (
70 "1".into(),
71 json!({"dept": "eng", "salary": 100, "name": "Alice"}),
72 ),
73 (
74 "2".into(),
75 json!({"dept": "eng", "salary": 120, "name": "Bob"}),
76 ),
77 (
78 "3".into(),
79 json!({"dept": "eng", "salary": 90, "name": "Carol"}),
80 ),
81 (
82 "4".into(),
83 json!({"dept": "sales", "salary": 80, "name": "Dave"}),
84 ),
85 (
86 "5".into(),
87 json!({"dept": "sales", "salary": 110, "name": "Eve"}),
88 ),
89 ]
90 }
91
92 fn numbered(n: usize) -> Vec<(String, serde_json::Value)> {
93 (1..=n)

Callers 3

row_number_partitionedFunction · 0.85
running_sumFunction · 0.85

Calls

no outgoing calls

Tested by 3

row_number_partitionedFunction · 0.68
running_sumFunction · 0.68