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

Function normalize_cols

datafusion/expr/src/expr_rewriter/mod.rs:114–122  ·  view source on GitHub ↗

Recursively normalize all [`Column`] expressions in a list of expression trees

(
    exprs: impl IntoIterator<Item = impl Into<Expr>>,
    plan: &LogicalPlan,
)

Source from the content-addressed store, hash-verified

112
113/// Recursively normalize all [`Column`] expressions in a list of expression trees
114pub fn normalize_cols(
115 exprs: impl IntoIterator<Item = impl Into<Expr>>,
116 plan: &LogicalPlan,
117) -> Result<Vec<Expr>> {
118 exprs
119 .into_iter()
120 .map(|e| normalize_col(e.into(), plan))
121 .collect()
122}
123
124pub fn normalize_sorts(
125 sorts: impl IntoIterator<Item = impl Into<Sort>>,

Callers 4

try_newMethod · 0.85
windowMethod · 0.85
aggregateMethod · 0.85
rewriteMethod · 0.85

Calls 9

normalize_colFunction · 0.85
collectMethod · 0.80
colFunction · 0.50
mapMethod · 0.45
into_iterMethod · 0.45
intoMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…