Create `ExprBoundaries` that represent no known bounds for all the columns in `schema`
(schema: &Schema)
| 131 | /// Create `ExprBoundaries` that represent no known bounds for all the |
| 132 | /// columns in `schema` |
| 133 | pub fn try_new_unbounded(schema: &Schema) -> Result<Vec<Self>> { |
| 134 | schema |
| 135 | .fields() |
| 136 | .iter() |
| 137 | .enumerate() |
| 138 | .map(|(i, field)| { |
| 139 | Ok(Self { |
| 140 | column: Column::new(field.name(), i), |
| 141 | interval: Some(Interval::make_unbounded(field.data_type())?), |
| 142 | distinct_count: Precision::Absent, |
| 143 | }) |
| 144 | }) |
| 145 | .collect() |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | /// Attempts to refine column boundaries and compute a selectivity value. |