We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad89ff8 commit 0b95577Copy full SHA for 0b95577
datafusion/execution/src/config.rs
@@ -22,7 +22,10 @@ use std::{
22
sync::Arc,
23
};
24
25
-use datafusion_common::{config::ConfigOptions, Result, ScalarValue};
+use datafusion_common::{
26
+ config::{ConfigExtension, ConfigOptions},
27
+ Result, ScalarValue,
28
+};
29
30
/// Configuration options for [`SessionContext`].
31
///
@@ -198,6 +201,12 @@ impl SessionConfig {
198
201
self
199
202
}
200
203
204
+ /// Insert new [ConfigExtension]
205
+ pub fn with_option_extension<T: ConfigExtension>(mut self, extension: T) -> Self {
206
+ self.options_mut().extensions.insert(extension);
207
+ self
208
+ }
209
+
210
/// Get [`target_partitions`]
211
212
/// [`target_partitions`]: datafusion_common::config::ExecutionOptions::target_partitions
0 commit comments