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
SessionConfig in datafusion::execution::context - Rust
[go: Go Back, main page]

pub struct SessionConfig {
    pub batch_size: usize,
    pub target_partitions: usize,
    pub repartition_joins: bool,
    pub repartition_aggregations: bool,
    pub repartition_windows: bool,
    pub parquet_pruning: bool,
    /* private fields */
}
Expand description

Configuration options for session context

Fields

batch_size: usize

Default batch size while creating new batches, it’s especially useful for buffer-in-memory batches since creating tiny batches would results in too much metadata memory consumption.

target_partitions: usize

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

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

parquet_pruning: bool

Should DataFusion parquet reader using the predicate to prune data

Implementations

Create an execution config with default setting

Customize batch size

Customize target_partitions

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

Convert configuration to name-value pairs

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.