Module datafusion_optimizer::utils
source · Expand description
Utility functions leveraged by the query optimizer rules
Structs§
- Handles ensuring the name of rewritten expressions is not changed.
- If the name of an expression is remembered, it will be preserved when rewriting the expression
Functions§
- add_
filter Deprecated returns a new LogicalPlan that wrapsplan
in a LogicalPlan::Filter with its predicate be allpredicates
ANDed. - conjunction
Deprecated Combines an array of filter expressions into a single filter expression consisting of the input filter expressions joined with logical AND. - disjunction
Deprecated Combines an array of filter expressions into a single filter expression consisting of the input filter expressions joined with logical OR. - find_
join_ exprs Deprecated Looks for correlating expressions: for example, a binary expression with one field from the subquery, and one not in the subquery (closed upon from outer scope) - Log the plan in debug/tracing mode after some part of the optimizer runs
- merge_
schema Deprecated merge inputs schema into a single schema. - only_
or_ err Deprecated Returns the first (and only) element in a slice, or an error - optimize_
children Deprecated Convenience rule for writing optimizers: recursively invoke optimize on plan’s children and then return a node of the same type. Useful for optimizer rules which want to leave the type of plan unchanged but still apply to the children. This also handles the case when theplan
is aLogicalPlan::Explain
. - split_
binary Deprecated - split_
binary_ owned Deprecated - split_
conjunction Deprecated - split_
conjunction_ owned Deprecated