Skip to content

Commit

Permalink
Debug print as many fields as possible for SessionState (apache#10818)
Browse files Browse the repository at this point in the history
* Print as many fields as possible for SessionState

* Apply review suggestion
  • Loading branch information
lewiszlw authored and findepi committed Jul 16, 2024
1 parent 57f66ff commit 28ea3a7
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions datafusion/core/src/execution/session_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,23 @@ impl Debug for SessionState {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("SessionState")
.field("session_id", &self.session_id)
// TODO should we print out more?
.finish()
.field("analyzer", &"...")
.field("optimizer", &"...")
.field("physical_optimizers", &"...")
.field("query_planner", &"...")
.field("catalog_list", &"...")
.field("table_functions", &"...")
.field("scalar_functions", &self.scalar_functions)
.field("aggregate_functions", &self.aggregate_functions)
.field("window_functions", &self.window_functions)
.field("serializer_registry", &"...")
.field("config", &self.config)
.field("table_options", &self.table_options)
.field("execution_props", &self.execution_props)
.field("table_factories", &"...")
.field("runtime_env", &self.runtime_env)
.field("function_factory", &"...")
.finish_non_exhaustive()
}
}

Expand Down

0 comments on commit 28ea3a7

Please sign in to comment.