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

Function normalize_col

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

Recursively call `LogicalPlanBuilder::normalize` on all [`Column`] expressions in the `expr` expression tree.

(expr: Expr, plan: &LogicalPlan)

Source from the content-addressed store, hash-verified

67/// Recursively call `LogicalPlanBuilder::normalize` on all [`Column`] expressions
68/// in the `expr` expression tree.
69pub fn normalize_col(expr: Expr, plan: &LogicalPlan) -> Result<Expr> {
70 expr.transform(|expr| {
71 Ok({
72 if let Expr::Column(c) = expr {
73 let col = LogicalPlanBuilder::normalize(plan, c)?;
74 Transformed::yes(Expr::Column(col))
75 } else {
76 Transformed::no(expr)
77 }
78 })
79 })
80 .data()
81}
82
83/// See [`Column::normalize_with_schemas_and_ambiguity_check`] for usage
84pub fn normalize_col_with_schemas_and_ambiguity_check(

Callers 8

filterMethod · 0.85
havingMethod · 0.85
add_missing_columnsMethod · 0.85
project_with_validationFunction · 0.85
normalize_colsFunction · 0.85
normalize_sortsFunction · 0.85
select_to_planMethod · 0.85

Calls 3

ColumnClass · 0.50
dataMethod · 0.45
transformMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…