Module datafusion_expr::expr_rewriter
source · Expand description
Expression rewriter
Enums
- Controls how the ExprRewriter recursion should proceed.
Traits
- A trait for marking types that are rewritable by ExprRewriter
- Trait for potentially recursively rewriting an
Exprexpression tree. When passed toExpr::rewrite,ExpressionVisitor::mutateis invoked recursively on all nodes of an expression tree.
Functions
- Returns plan with expressions coerced to types compatible with schema types
- Recursively call
Column::normalize_with_schemason allColumnexpressions in theexprexpression tree. - normalize_col_with_schemasDeprecatedRecursively call
Column::normalize_with_schemason allColumnexpressions in theexprexpression tree. - See
Column::normalize_with_schemas_and_ambiguity_checkfor usage - Recursively normalize all
Columnexpressions in a list of expression trees - Recursively replace all
Columnexpressions in a given expression tree withColumnexpressions provided by the hash map argument. - Recursively rewrite an
Exprvia a function. - Rewrite sort on aggregate expressions to sort on the column of aggregate output For example,
max(x)is written tocol("MAX(x)") - Recursively remove all the [‘OuterReferenceColumn’] and return the inside Column in the expression tree.
- Recursively ‘unnormalize’ (remove all qualifiers) from an expression tree.
- Recursively un-normalize all
Columnexpressions in a list of expression trees