Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions datafusion/core/src/execution/session_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -1657,9 +1658,11 @@ impl From<SessionState> 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<ResolvedTableReference, Arc<dyn TableSource>>,
pub struct SessionContextProvider<'a> {
/// The session state
pub state: &'a SessionState,
/// The tables available in the session
pub tables: HashMap<ResolvedTableReference, Arc<dyn TableSource>>,
}

impl ContextProvider for SessionContextProvider<'_> {
Expand Down