Re-exports§
pub use crate::display::DefaultDisplay;
pub use crate::display::DisplayAs;
pub use crate::display::DisplayFormatType;
pub use crate::display::VerboseDisplay;
pub use crate::metrics::Metric;
pub use crate::stream::EmptyRecordBatchStream;
Modules§
- Defines physical expressions that can evaluated at runtime during query execution
- Functionality used both on logical and physical plans
Macros§
- Macro wraps Err(
$ERR
) to add backtrace feature
Structs§
- Statistics for a column within a relation
- Stores certain, often expensive to compute, plan properties used in query optimization.
- Statistics for a relation Fields are optional and can be inexact because the sources sometimes provide approximate estimates for performance reasons and the transformations output are not always predictable.
Enums§
- Indicates the effect an execution plan operator will have on the cardinality of its input stream
- The result of evaluating an expression.
- How data is distributed amongst partitions. See
Partitioning
for more details. - Describes the execution mode of the result of calling
ExecutionPlan::execute
with respect to its size and behavior. - Specifies how the input to an aggregation or window operator is ordered relative to their
GROUP BY
orPARTITION BY
expressions. - Output partitioning supported by
ExecutionPlan
s.
Traits§
- Tracks an aggregate function’s state.
- Represent nodes in the DataFusion Physical Plan.
- Extension trait provides an easy API to fetch various properties of
ExecutionPlan
objects based onExecutionPlan::properties
. - Trait for types that stream RecordBatch
- Common trait for window function implementations
Functions§
- Checks a
RecordBatch
fornot null
constraints on specified columns. - Execute the ExecutionPlan and collect the results in memory
- Execute the ExecutionPlan and collect the results in memory
- Return a wrapper around an
ExecutionPlan
which can be displayed in various easier to understand ways. - Executes an input stream and ensures that the resulting stream adheres to the
not null
constraints specified in thesink_schema
. - Execute the ExecutionPlan and return a single stream of
RecordBatch
es. - Execute the ExecutionPlan and return a vec with one stream per output partition
- Utility function yielding a string representation of the given
ExecutionPlan
. - Indicate whether a data exchange is needed for the input of
plan
, which will be very helpful especially for the distributed engine to judge whether need to deal with shuffling. Currently there are 3 kinds of execution plan which needs data exchange 1. RepartitionExec for changing the partition number between twoExecutionPlan
s 2. CoalescePartitionsExec for collapsing all of the partitions into one without ordering guarantee 3. SortPreservingMergeExec for collapsing all of the sorted partitions into one with ordering guarantee - Applies an optional projection to a
SchemaRef
, returning the projected schema - Returns a copy of this plan if we change any child according to the pointer comparison. The size of
children
must be equal to the size ofExecutionPlan::children()
.
Type Aliases§
- Trait for a
Stream
ofRecordBatch
es that can be passed between threads