diff --git a/datafusion/core/src/execution/session_state.rs b/datafusion/core/src/execution/session_state.rs index 19d0fae207be..f9ec4ea25ba1 100644 --- a/datafusion/core/src/execution/session_state.rs +++ b/datafusion/core/src/execution/session_state.rs @@ -572,7 +572,8 @@ impl SessionState { query.statement_to_plan(statement) } - fn get_parser_options(&self) -> ParserOptions { + /// Get the parser options + pub fn get_parser_options(&self) -> ParserOptions { let sql_parser_options = &self.config.options().sql_parser; ParserOptions { @@ -1657,9 +1658,11 @@ impl From for SessionStateBuilder { /// /// This is used so the SQL planner can access the state of the session without /// having a direct dependency on the [`SessionState`] struct (and core crate) -struct SessionContextProvider<'a> { - state: &'a SessionState, - tables: HashMap>, +pub struct SessionContextProvider<'a> { + /// The session state + pub state: &'a SessionState, + /// The tables available in the session + pub tables: HashMap>, } impl ContextProvider for SessionContextProvider<'_> {