Module expr_rewriter

Source
Expand description

Expression rewriter

Structs§

NamePreserver
Handles ensuring the name of rewritten expressions is not changed.

Enums§

SavedName
If the qualified name of an expression is remembered, it will be preserved when rewriting the expression

Traits§

FunctionRewrite
Trait for rewriting Exprs 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 all Column expressions in the expr 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 with Column 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 to col("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