Crate datafusion_physical_expr
source ·Re-exports
pub use aggregate::AggregateExpr;
pub use analysis::analyze;
pub use analysis::AnalysisContext;
pub use analysis::ExprBoundaries;
pub use equivalence::EquivalenceProperties;
pub use planner::create_physical_expr;
pub use utils::reverse_order_bys;
pub use utils::split_conjunction;
Modules
- Interval and selectivity in
AnalysisContext
- Array expressions
- Crypto expressions
- DateTime expressions
- Encoding expressions
- Defines physical expressions that can evaluated at runtime during query execution
- Declaration of built-in (scalar) functions. This module contains built-in functions’ enumeration and metadata.
- Interval arithmetic and constraint propagation library
- Math expressions
- Regex expressions
- String expressions
- Struct expressions
- This module provides common traits for visiting or rewriting tree nodes easily.
- UDF support
- Unicode expressions
- Variable provider
Structs
- An adapter that implements
GroupsAccumulator
for anyAccumulator
- Represents Sort operation for a column in a RecordBatch
- Represents sort requirement associated with a plan
- Physical expression of a scalar function
Enums
- How data is distributed amongst partitions. See
Partitioning
for more details. - Describes how many rows should be emitted during grouping.
- Output partitioning supported by
ExecutionPlan
s.
Traits
GroupAccumulator
implements a single aggregate (e.g. AVG) and stores the state for all groups internally.- Expression that can be evaluated against a RecordBatch A Physical expression knows its type, nullability and how to evaluate itself.
Functions
- Checks whether the given physical expression slices are equal in the sense of bags (multi-sets), disregarding their orderings.
- This function is similar to the
contains
method ofVec
. It finds whetherexpr
is amongphysical_exprs
. - Checks whether the given physical expression slices are equal.
Type Aliases
LexOrdering
is an alias for the typeVec<PhysicalSortExpr>
, which represents a lexicographical ordering.LexOrderingRef
is an alias for the type &[PhysicalSortExpr]
, which represents a reference to a lexicographical ordering.LexRequirement
is an alias for the typeVec<PhysicalSortRequirement>
, which represents a lexicographical ordering requirement.LexRequirementRef
is an alias for the type &[PhysicalSortRequirement]
, which represents a reference to a lexicographical ordering requirement.- Shared
PhysicalExpr
.