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

Method is_sorted

datafusion/datasource/src/statistics.rs:270–275  ·  view source on GitHub ↗

Check if the min/max statistics are in order and non-overlapping (or touching at boundaries)

(&self)

Source from the content-addressed store, hash-verified

268 /// Check if the min/max statistics are in order and non-overlapping
269 /// (or touching at boundaries)
270 pub fn is_sorted(&self) -> bool {
271 self.max_by_sort_order
272 .iter()
273 .zip(self.min_by_sort_order.iter().skip(1))
274 .all(|(max, next_min)| max <= next_min)
275 }
276}
277
278fn sort_columns_from_physical_sort_exprs(

Calls 3

allMethod · 0.80
iterMethod · 0.45
skipMethod · 0.45

Tested by

no test coverage detected