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]

pub struct ExecutionConfig {
    pub target_partitions: usize,
    pub physical_optimizers: Vec<Arc<dyn PhysicalOptimizerRule + Send + Sync>>,
    pub repartition_joins: bool,
    pub repartition_aggregations: bool,
    pub repartition_windows: bool,
    pub runtime: RuntimeConfig,
    /* private fields */
}
Expand description

Configuration options for execution context

Fields

target_partitions: usize

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

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

runtime: RuntimeConfig

Runtime configurations such as memory threshold and local disk for spill

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

Customize runtime config

Use an an existing MemoryManager

Specify the total memory to use while running the DataFusion plan to max_memory * memory_fraction in bytes.

Note DataFusion does not yet respect this limit in all cases.

Use an an existing DiskManager

Use the specified path to create any needed temporary files

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)

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.