| 243 | #[expect(deprecated)] |
| 244 | impl 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) |