MCPcopy Create free account
hub / github.com/apache/datafusion / min_values

Method min_values

datafusion-examples/examples/query_planning/pruning.rs:151–160  ·  view source on GitHub ↗
(&self, column: &Column)

Source from the content-addressed store, hash-verified

149 }
150
151 fn min_values(&self, column: &Column) -> Option<ArrayRef> {
152 // The pruning predicate evaluates the bounds for multiple expressions
153 // at once, so return an array with an element for the minimum value in
154 // each file
155 match column.name.as_str() {
156 "x" => Some(i32_array(self.x_values.iter().map(|(min, _)| min))),
157 "y" => Some(i32_array(self.y_values.iter().map(|(min, _)| min))),
158 name => panic!("unknown column name: {name}"),
159 }
160 }
161
162 fn max_values(&self, column: &Column) -> Option<ArrayRef> {
163 // similarly to min_values, return an array with an element for the

Callers

nothing calls this directly

Calls 4

i32_arrayFunction · 0.85
as_strMethod · 0.45
mapMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected