Skip to content

Commit

Permalink
chore: add function to set prefer_existing_union (apache#10322)
Browse files Browse the repository at this point in the history
  • Loading branch information
NGA-TRAN authored and appletreeisyellow committed May 1, 2024
1 parent 0f588e9 commit 0f0d2a3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions datafusion/execution/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,14 @@ impl SessionConfig {
self
}

/// Prefer existing union (true). See [prefer_existing_union] for more details
///
/// [prefer_existing_union]: datafusion_common::config::OptimizerOptions::prefer_existing_union
pub fn with_prefer_existing_union(mut self, enabled: bool) -> Self {
self.options.optimizer.prefer_existing_union = enabled;
self
}

/// Enables or disables the use of pruning predicate for parquet readers to skip row groups
pub fn with_parquet_pruning(mut self, enabled: bool) -> Self {
self.options.execution.parquet.pruning = enabled;
Expand Down

0 comments on commit 0f0d2a3

Please sign in to comment.