MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / aggregation_max

Function aggregation_max

crates/gitql-std/src/aggregation.rs:167–176  ·  view source on GitHub ↗
(group_values: &[Vec<Box<dyn Value>>])

Source from the content-addressed store, hash-verified

165}
166
167pub fn aggregation_max(group_values: &[Vec<Box<dyn Value>>]) -> Box<dyn Value> {
168 let mut max_value = &group_values[0][0];
169 for row_values in group_values {
170 let single_value = &row_values[0];
171 if max_value.compare(single_value) == Some(Ordering::Less) {
172 max_value = single_value;
173 }
174 }
175 max_value.clone()
176}
177
178pub fn aggregation_min(group_values: &[Vec<Box<dyn Value>>]) -> Box<dyn Value> {
179 let mut min_value = &group_values[0][0];

Callers

nothing calls this directly

Calls 1

compareMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…