Skip to content

Commit e3b0d7d

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 e3b0d7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

datafusion/core/src/execution/session_state.rs

+3-3
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,7 +876,7 @@ impl SessionState {
876876
}
877877

878878
/// set the catalog list
879-
pub(crate) fn register_catalog_list(
879+
pub fn register_catalog_list(
880880
&mut self,
881881
catalog_list: Arc<dyn CatalogProviderList>,
882882
) {

0 commit comments

Comments
 (0)