Skip to content

Commit dacfed3

Browse files
committed
session state: make register_catalog_list public
For now this function is accessiable only from `SessionContext`, which may be inconvenient if you already rw locked an inner session state.
1 parent 3f62492 commit dacfed3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

datafusion/core/src/execution/session_state.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ use uuid::Uuid;
104104
/// # #[tokio::main]
105105
/// # async fn main() -> Result<()> {
106106
/// let state = SessionStateBuilder::new()
107-
/// .with_config(SessionConfig::new())
107+
/// .with_config(SessionConfig::new())
108108
/// .with_runtime_env(Arc::new(RuntimeEnv::default()))
109109
/// .with_default_features()
110110
/// .build();
111-
/// Ok(())
111+
/// Ok(())
112112
/// # }
113113
/// ```
114114
///
@@ -876,10 +876,7 @@ impl SessionState {
876876
}
877877

878878
/// set the catalog list
879-
pub(crate) fn register_catalog_list(
880-
&mut self,
881-
catalog_list: Arc<dyn CatalogProviderList>,
882-
) {
879+
pub fn register_catalog_list(&mut self, catalog_list: Arc<dyn CatalogProviderList>) {
883880
self.catalog_list = catalog_list;
884881
}
885882

0 commit comments

Comments
 (0)