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

Function numbered

nodedb-query/src/window/eval.rs:92–96  ·  view source on GitHub ↗
(n: usize)

Source from the content-addressed store, hash-verified

90 }
91
92 fn numbered(n: usize) -> Vec<(String, serde_json::Value)> {
93 (1..=n)
94 .map(|i| (i.to_string(), json!({ "n": i })))
95 .collect()
96 }
97
98 #[test]
99 fn row_number_single_partition() {

Calls 2

collectMethod · 0.80
to_stringMethod · 0.80

Tested by 3

cume_dist_distinct_keysFunction · 0.56