alamb commented on code in PR #3822: URL: https://github.com/apache/arrow-datafusion/pull/3822#discussion_r998288936
########## datafusion/core/src/config.rs: ########## @@ -255,8 +289,16 @@ impl ConfigOptions { Self { options } } - /// Create new ConfigOptions struct, taking values from environment variables where possible. - /// For example, setting `DATAFUSION_EXECUTION_BATCH_SIZE` to control `datafusion.execution.batch_size`. + /// Create a new [`ConfigOptions`] wrapped in an RwLock and Arc + pub fn into_shareable(self) -> Arc<RwLock<Self>> { + Arc::new(RwLock::new(self)) + } + + /// Create new ConfigOptions struct, taking values from + /// environment variables where possible. + /// + /// For example, setting `DATAFUSION_EXECUTION_BATCH_SIZE` will Review Comment: https://github.com/apache/arrow-datafusion/pull/3825 -- 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...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org