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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to