Expand description
re-export of datafusion_physical_expr crate
Modules§
- aggregate
- analysis
- Interval and selectivity in
AnalysisContext - async_
scalar_ function - binary_
map - equivalence
- execution_
props - expressions
- Defines physical expressions that can evaluated at runtime during query execution
- intervals
- Interval arithmetic and constraint propagation library
- planner
- projection
- simplifier
- Simplifier for Physical Expressions
- statistics
- Statistics and constraint propagation library
- tree_
node - utils
- window
Macros§
Structs§
- Analysis
Context - The shared context used during the analysis of an expression. Includes the boundaries for all known columns.
- Const
Expr - A structure representing a expression known to be constant in a physical execution plan.
- Equivalence
Properties EquivalencePropertiesstores information about the output of a plan node that can be used to optimize the plan. Currently, it keeps track of:- Expr
Boundaries - Represents the boundaries (e.g. min and max values) of a particular column
- Groups
Accumulator Adapter - An adapter that implements
GroupsAccumulatorfor anyAccumulator - LexOrdering
- This object represents a lexicographical ordering and contains a vector
of
PhysicalSortExprobjects. - LexRequirement
- This object represents a lexicographical ordering requirement and contains
a vector of
PhysicalSortRequirementobjects. - Null
State - Track the accumulator null state per row: if any values for that group were null and if any values have been seen at all for that group.
- Physical
Expr Simplifier - Simplifies physical expressions by applying various optimizations
- Physical
Sort Expr - Represents Sort operation for a column in a RecordBatch
- Physical
Sort Requirement - Represents sort requirement associated with a plan
- Scalar
Function Expr - Physical expression of a scalar function
Enums§
- Across
Partitions - Represents whether a constant expression’s value is uniform or varies across partitions. Has two variants:
- Distribution
- How data is distributed amongst partitions. See
Partitioningfor more details. - Ordering
Requirements - Represents a plan’s input ordering requirements. Vector elements represent alternative ordering requirements in the order of preference. The list of alternatives can be either hard or soft, depending on whether the operator can work without an input ordering.
- Partitioning
- Output partitioning supported by
ExecutionPlans.
Traits§
- Physical
Expr PhysicalExprs represent expressions such asA + 1orCAST(c1 AS int).- Physical
Expr Ext
Functions§
- add_
offset_ to_ expr - Adds the
offsetvalue toColumnindices insideexpr. This function is generally used during the update of the right table schema in join operations. - add_
offset_ to_ physical_ sort_ exprs - analyze
- Attempts to refine column boundaries and compute a selectivity value.
- calculate_
union - Calculates the union (in the sense of
UnionExec)EquivalencePropertiesof the givenEquivalencePropertiesineqpsaccording to the given outputschema(which need not be the same with those oflhsandrhsas details such as nullability may be different). - 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)). - create_
lex_ ordering - Creates a vector of LexOrdering from a vector of logical expression
- create_
ordering - Converts logical sort expressions to physical sort expressions.
- create_
physical_ expr - PhysicalExpr evaluate DataFusion expressions such as
A + 1, orCAST(c1 AS int). - create_
physical_ exprs - Create vector of Physical Expression from a vector of logical expression
- create_
physical_ sort_ expr - Create a physical sort expression from a logical expression
- create_
physical_ sort_ exprs - Create vector of physical sort expression from a vector of logical expression
- physical_
exprs_ bag_ equal - Checks whether the given physical expression slices are equal in the sense of bags (multi-sets), disregarding their orderings.
- physical_
exprs_ contains - This function is similar to the
containsmethod ofVec. It finds whetherexpris amongphysical_exprs. - physical_
exprs_ equal - Checks whether the given physical expression slices are equal.
- split_
conjunction - Assume the predicate is in the form of CNF, split the predicate to a Vec of PhysicalExprs.
Type Aliases§
- Physical
Expr Ref - Shared
PhysicalExpr.