Skip to content

Commit e5e7636

Browse files
authored
export SessionState::register_catalog_list(...) (apache#19925)
## Rationale for this change In our project we use some base `SessionState` (not managed by `SessionContext`) to implement some DDL operations, dynamically replacing its catalog to an actual one. So it would be good to have this function as a `pub` one. ## What changes are included in this PR? Export `SessionState::register_catalog_list(...)` method.
1 parent c135236 commit e5e7636

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

datafusion/core/src/execution/session_state.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -878,11 +878,8 @@ impl SessionState {
878878
&self.catalog_list
879879
}
880880

881-
/// set the catalog list
882-
pub(crate) fn register_catalog_list(
883-
&mut self,
884-
catalog_list: Arc<dyn CatalogProviderList>,
885-
) {
881+
/// Set the catalog list
882+
pub fn register_catalog_list(&mut self, catalog_list: Arc<dyn CatalogProviderList>) {
886883
self.catalog_list = catalog_list;
887884
}
888885

0 commit comments

Comments
 (0)