Skip to content

Commit 66933cc

Browse files
Add debug logging for default catalog overwrite in SessionState build (#15251)
Co-authored-by: Kermit <[email protected]>
1 parent 1d0c9cb commit 66933cc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

datafusion/core/src/execution/session_state.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,10 +1415,14 @@ impl SessionStateBuilder {
14151415
&state.runtime_env,
14161416
);
14171417

1418-
state.catalog_list.register_catalog(
1418+
let existing_default_catalog = state.catalog_list.register_catalog(
14191419
state.config.options().catalog.default_catalog.clone(),
14201420
Arc::new(default_catalog),
14211421
);
1422+
1423+
if existing_default_catalog.is_some() {
1424+
debug!("Overwrote the default catalog");
1425+
}
14221426
}
14231427

14241428
if let Some(analyzer_rules) = analyzer_rules {

0 commit comments

Comments
 (0)