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

Method min_values

datafusion/common/src/pruning.rs:245–256  ·  view source on GitHub ↗
(&self, column: &Column)

Source from the content-addressed store, hash-verified

243#[expect(deprecated)]
244impl PruningStatistics for PartitionPruningStatistics {
245 fn min_values(&self, column: &Column) -> Option<ArrayRef> {
246 let index = self.partition_schema.index_of(column.name()).ok()?;
247 self.partition_values.get(index).and_then(|v| {
248 if v.is_empty() || v.null_count() == v.len() {
249 // If the array is empty or all nulls, return None
250 None
251 } else {
252 // Otherwise, return the array as is
253 Some(Arc::clone(v))
254 }
255 })
256 }
257
258 fn max_values(&self, column: &Column) -> Option<ArrayRef> {
259 self.min_values(column)

Calls 6

null_countMethod · 0.80
nameMethod · 0.45
getMethod · 0.45
is_emptyMethod · 0.45
lenMethod · 0.45