Module datafusion_python::datafusion_expr::expr_rewriter
source · Expand description
Expression rewriter
Traits§
- Trait for rewriting
Exprs into function calls.
Functions§
- Returns plan with expressions coerced to types compatible with schema types
- Create a Column from the Scalar Expr
- Recursively 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. - Rewrites
exprusingrewriter, ensuring that the output has the same name asexprprior to rewrite, adding an alias if necessary. - 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 un-alias an expressions
- Recursively ‘unnormalize’ (remove all qualifiers) from an expression tree.
- Recursively un-normalize all
Columnexpressions in a list of expression trees