Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
ExecutionConfig in datafusion::execution::context - Rust
[go: Go Back, main page]

Struct datafusion::execution::context::ExecutionConfig[][src]

pub struct ExecutionConfig {
    pub target_partitions: usize,
    pub batch_size: usize,
    pub physical_optimizers: Vec<Arc<dyn PhysicalOptimizerRule + Send + Sync>>,
    pub repartition_joins: bool,
    pub repartition_aggregations: bool,
    pub repartition_windows: bool,
    // some fields omitted
}
Expand description

Configuration options for execution context

Fields

target_partitions: usize

Number of partitions for query execution. Increasing partitions can increase concurrency.

batch_size: usize

Default batch size when reading data sources

physical_optimizers: Vec<Arc<dyn PhysicalOptimizerRule + Send + Sync>>

Responsible for optimizing a physical execution plan

repartition_joins: bool

Should DataFusion repartition data using the join keys to execute joins in parallel using the provided target_partitions level

repartition_aggregations: bool

Should DataFusion repartition data using the aggregate keys to execute aggregates in parallel using the provided target_partitions level

repartition_windows: bool

Should DataFusion repartition data using the partition keys to execute window functions in parallel using the provided target_partitions level

Implementations

Create an execution config with default setting

Customize target_partitions

Customize batch size

Replace the default query planner

Replace the optimizer rules

Replace the physical optimizer rules

Adds a new OptimizerRule

Selects a name for the default catalog and schema

Controls whether the default catalog and schema will be automatically created

Enables or disables the inclusion of information_schema virtual tables

Enables or disables the use of repartitioning for joins to improve parallelism

Enables or disables the use of repartitioning for aggregations to improve parallelism

Enables or disables the use of repartitioning for window functions to improve parallelism

Enables or disables the use of pruning predicate for parquet readers to skip row groups

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.