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

Method try_new_unbounded

datafusion/physical-expr/src/analysis.rs:133–146  ·  view source on GitHub ↗

Create `ExprBoundaries` that represent no known bounds for all the columns in `schema`

(schema: &Schema)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 7

newFunction · 0.85
collectMethod · 0.80
mapMethod · 0.45
iterMethod · 0.45
fieldsMethod · 0.45
nameMethod · 0.45
data_typeMethod · 0.45

Tested by

no test coverage detected