This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new 3b77b6b8e8 chore: add function to set prefer_existing_union (#10322)
3b77b6b8e8 is described below
commit 3b77b6b8e884a1bda7579891935466561c235a97
Author: Nga Tran <[email protected]>
AuthorDate: Tue Apr 30 17:49:14 2024 -0400
chore: add function to set prefer_existing_union (#10322)
---
datafusion/execution/src/config.rs | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/datafusion/execution/src/config.rs
b/datafusion/execution/src/config.rs
index 28275d484e..2ddad77f99 100644
--- a/datafusion/execution/src/config.rs
+++ b/datafusion/execution/src/config.rs
@@ -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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]