Module utils

Source

Structs§

LiteralGuarantee
Represents a guarantee that must be true for a boolean expression to evaluate to true.

Enums§

Guarantee
What is guaranteed about the values for a LiteralGuarantee?

Functions§

build_dag
collect_columns
Recursively extract referenced Columns within a PhysicalExpr.
conjunction
Create a conjunction of the given predicates. If the input is empty, return a literal true. If the input contains a single predicate, return the predicate. Otherwise, return a conjunction of the predicates (e.g. a AND b AND c).
conjunction_opt
Create a conjunction of the given predicates. If the input is empty or the return None. If the input contains a single predicate, return Some(predicate). Otherwise, return a Some(..) of a conjunction of the predicates (e.g. Some(a AND b AND c)).
convert_to_expr
This function returns all Arc<dyn PhysicalExpr>s inside the given PhysicalSortExpr sequence.
get_indices_of_exprs_strict
This function finds the indices of targets within items using strict equality.
map_columns_before_projection
This function maps back requirement after ProjectionExec to the Executor for its input.
merge_vectors
Merge left and right sort expressions, checking for duplicates.
reassign_predicate_columns
Re-assign column indices referenced in predicate according to given schema. This may be helpful when dealing with projections.
split_conjunction
Assume the predicate is in the form of CNF, split the predicate to a Vec of PhysicalExprs.
split_disjunction
Assume the predicate is in the form of DNF, split the predicate to a Vec of PhysicalExprs.

Type Aliases§

ExprTreeNode