Expand description
Expression rewriter
Structs§
- Name
Preserver - Handles ensuring the name of rewritten expressions is not changed.
Enums§
- Saved
Name - If the qualified name of an expression is remembered, it will be preserved when rewriting the expression
Traits§
- Function
Rewrite - Trait for rewriting
Expr
s into function calls.
Functions§
- coerce_
plan_ expr_ for_ schema - Returns plan with expressions coerced to types compatible with schema types
- create_
col_ from_ scalar_ expr - Create a Column from the Scalar Expr
- normalize_
col - Recursively call
LogicalPlanBuilder::normalize
on allColumn
expressions in theexpr
expression tree. - normalize_
col_ with_ schemas_ and_ ambiguity_ check - See
Column::normalize_with_schemas_and_ambiguity_check
for usage - normalize_
cols - Recursively normalize all
Column
expressions in a list of expression trees - normalize_
sorts - replace_
col - Recursively replace all
Column
expressions in a given expression tree withColumn
expressions provided by the hash map argument. - rewrite_
sort_ cols_ by_ aggs - Rewrite sort on aggregate expressions to sort on the column of aggregate output
For example,
max(x)
is written tocol("max(x)")
- strip_
outer_ reference - Recursively remove all the [‘OuterReferenceColumn’] and return the inside Column in the expression tree.
- unalias
- Recursively un-alias an expressions
- unnormalize_
col - Recursively ‘unnormalize’ (remove all qualifiers) from an expression tree.
- unnormalize_
cols - Recursively un-normalize all
Column
expressions in a list of expression trees