alamb commented on code in PR #13527:
URL: https://github.com/apache/datafusion/pull/13527#discussion_r1997561888
##########
datafusion/common/src/config.rs:
##########
@@ -777,7 +778,20 @@ impl ConfigField for ConfigOptions {
}
}
+static CONFIG_OPTIONS_SINGLETON: LazyLock<Arc<ConfigOptions>> =
+ LazyLock::new(|| Arc::new(ConfigOptions::default()));
+
impl ConfigOptions {
+ /// this is a static singleton to be used for testing only where the
default values are sufficient
+ pub fn default_singleton() -> &'static ConfigOptions {
+ CONFIG_OPTIONS_SINGLETON.as_ref()
+ }
+
+ /// this is a static singleton to be used for testing only where the
default values are sufficient
Review Comment:
💯
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]