File tree 1 file changed +10
-1
lines changed
datafusion/core/src/execution
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1475,9 +1475,18 @@ pub fn default_session_builder(config: SessionConfig) -> SessionState {
1475
1475
impl SessionState {
1476
1476
/// Returns new SessionState using the provided configuration and runtime
1477
1477
pub fn with_config_rt ( config : SessionConfig , runtime : Arc < RuntimeEnv > ) -> Self {
1478
+ let catalog_list = Arc :: new ( MemoryCatalogList :: new ( ) ) as Arc < dyn CatalogList > ;
1479
+ Self :: with_config_rt_and_catalog_list ( config, runtime, catalog_list)
1480
+ }
1481
+
1482
+ /// Returns new SessionState using the provided configuration, runtime and catalog list.
1483
+ pub fn with_config_rt_and_catalog_list (
1484
+ config : SessionConfig ,
1485
+ runtime : Arc < RuntimeEnv > ,
1486
+ catalog_list : Arc < dyn CatalogList > ,
1487
+ ) -> Self {
1478
1488
let session_id = Uuid :: new_v4 ( ) . to_string ( ) ;
1479
1489
1480
- let catalog_list = Arc :: new ( MemoryCatalogList :: new ( ) ) as Arc < dyn CatalogList > ;
1481
1490
if config. create_default_catalog_and_schema ( ) {
1482
1491
let default_catalog = MemoryCatalogProvider :: new ( ) ;
1483
1492
You can’t perform that action at this time.
0 commit comments