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

Function cmp_values

nodedb-query/src/window/value_eval.rs:134–141  ·  view source on GitHub ↗
(a: &Value, b: &Value)

Source from the content-addressed store, hash-verified

132// ── Value comparison helpers (pub(super) for value_agg) ───────────────────────
133
134pub(super) fn cmp_values(a: &Value, b: &Value) -> std::cmp::Ordering {
135 match (a, b) {
136 (Value::Null, Value::Null) => std::cmp::Ordering::Equal,
137 (Value::Null, _) => std::cmp::Ordering::Less,
138 (_, Value::Null) => std::cmp::Ordering::Greater,
139 (va, vb) => compare_values(va, vb),
140 }
141}
142
143pub(super) fn order_keys_equal_v(
144 rows: &[Vec<Value>],

Callers

nothing calls this directly

Calls 1

compare_valuesFunction · 0.50

Tested by

no test coverage detected