Expand description
re-export of datafusion_physical_plan
crate
Modules§
- Aggregates functionalities
- Defines the ANALYZE operator
CoalesceBatchesExec
combines small batches into larger batches.- Defines the merge plan for executing partitions in parallel and then merging the results into a single partition
- Defines common code used in execution plans
- Implementation of physical plan display. See
crate::displayable
for examples of how to format - EmptyRelation with produce_one_row=false execution plan
- Defines the EXPLAIN operator
- Execution plan for writing data to
DataSink
s - DataFusion Join implementations
- Defines the LIMIT plan
- Execution plan for reading in-memory batches of data
- Metrics for recording information about execution
- EmptyRelation produce_one_row=true execution plan
- Defines the projection execution plan. A projection determines which columns or expressions are returned from a query. The SQL statement
SELECT a, b, a+b FROM t1
is an example of a projection on tablet1
where the expressionsa
,b
, anda+b
are the projection expressions.SELECT
withoutFROM
will only evaluate expressions. - Defines the recursive query plan
- This file implements the
RepartitionExec
operator, which maps N input partitions to M output partitions based on a partitioning scheme, optionally maintaining the order of the input rows in the output. - Sort functionalities
- Defines the spilling functions
- Stream wrappers for physical operators
- Generic plans for deferred execution:
StreamingTableExec
andPartitionStream
- This module provides common traits for visiting or rewriting tree nodes easily.
- The Union operator combines multiple inputs with the same schema
- Define a plan for unnesting values in columns that contain a list type.
- Values execution plan
- Physical expressions for window functions
- Defines the work table query plan
Macros§
- The
handle_state
macro is designed to process the result of a state-changing operation. It operates on aStatefulStreamResult
by matching its variants and executing corresponding actions. This macro is used to streamline code that deals with state transitions, reducing boilerplate and improving readability. - Macro wraps Err(
$ERR
) to add backtrace feature
Structs§
- Statistics for a column within a relation
- A newtype wrapper to display
T
implementingDisplayAs
using theDefault
mode EmptyRecordBatchStream
can be used to create aRecordBatchStream
that will produce no results- Something that tracks a value of interest (metric) of a DataFusion
ExecutionPlan
execution. - 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.
- Global TopK
- A newtype wrapper to display
T
implementingDisplayAs
using theVerbose
mode
Enums§
- The result of evaluating an expression.
- Options for controlling how each
ExecutionPlan
should format itself - 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.
- Trait for types which could have additional details when formatted in
Verbose
mode - Represent nodes in the DataFusion Physical Plan.
- Extension trait provides an easy API to fetch various properties of
ExecutionPlan
objects based onExecutionPlan::properties
. - Trait that implements the Visitor pattern for a depth first walk of
ExecutionPlan
nodes.pre_visit
is called before any children are visited, and thenpost_visit
is called after all children have been visited. - Trait for types that stream RecordBatch
- Common trait for window function implementations
Functions§
- Visit all children of this plan, according to the order defined on
ExecutionPlanVisitor
. - 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
. - Applies an optional projection to a
SchemaRef
, returning the projected schema - Recursively calls
pre_visit
andpost_visit
for this node and all of its children, as described onExecutionPlanVisitor
- 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