Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
datafusion::optimizer::utils - Rust
[go: Go Back, main page]

[][src]Module datafusion::optimizer::utils

Collection of utility functions that are leveraged by the query optimizer rules

Functions

expr_sub_expressions

Returns all direct children Expressions of expr. E.g. if the expression is "(a + 1) + 1", it returns ["a + 1", "1"] (as Expr objects)

expr_to_column_names

Recursively walk an expression tree, collecting the unique set of column names referenced in the expression

expressions

returns all expressions (non-recursively) in the current logical plan node.

exprlist_to_column_names

Recursively walk a list of expression trees, collecting the unique set of column names referenced in the expression

from_plan

Returns a new logical plan based on the original one with inputs and expressions replaced

inputs

returns all inputs in the logical plan

optimize_explain

Create a LogicalPlan::Explain node by running optimizer on the input plan and capturing the resulting plan string

rewrite_expression

returns a new expression where the expressions in expr are replaced by the ones in expressions. This is used in conjunction with expr_expressions to re-write expressions.