adriangb commented on code in PR #18739:
URL: https://github.com/apache/datafusion/pull/18739#discussion_r2560764590
##########
datafusion/execution/src/config.rs:
##########
@@ -100,22 +100,53 @@ pub struct SessionConfig {
/// references to the same options.
options: Arc<ConfigOptions>,
/// Opaque extensions.
- extensions: AnyMap,
+ extensions: Arc<Extensions>,
}
impl Default for SessionConfig {
fn default() -> Self {
Self {
options: Arc::new(ConfigOptions::new()),
// Assume no extensions by default.
- extensions: HashMap::with_capacity_and_hasher(
- 0,
- BuildHasherDefault::default(),
- ),
+ extensions: Arc::new(Extensions::default()),
}
}
}
+#[derive(Clone, Debug)]
+pub struct Extensions {
Review Comment:
Needs docstrings!
--
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]