Recursively call `LogicalPlanBuilder::normalize` on all [`Column`] expressions in the `expr` expression tree.
(expr: Expr, plan: &LogicalPlan)
| 67 | /// Recursively call `LogicalPlanBuilder::normalize` on all [`Column`] expressions |
| 68 | /// in the `expr` expression tree. |
| 69 | pub 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 |
| 84 | pub fn normalize_col_with_schemas_and_ambiguity_check( |
no test coverage detected
searching dependent graphs…