pub struct SqlToRel<'a, S: ContextProvider> { /* private fields */ }
Expand description
SQL query planner
Implementations
sourceimpl<'a, S: ContextProvider> SqlToRel<'a, S>
impl<'a, S: ContextProvider> SqlToRel<'a, S>
sourcepub fn statement_to_plan(&self, statement: &DFStatement) -> Result<LogicalPlan>
pub fn statement_to_plan(&self, statement: &DFStatement) -> Result<LogicalPlan>
Generate a logical plan from an DataFusion SQL statement
sourcepub fn sql_statement_to_plan(&self, sql: &Statement) -> Result<LogicalPlan>
pub fn sql_statement_to_plan(&self, sql: &Statement) -> Result<LogicalPlan>
Generate a logical plan from an SQL statement
sourcepub fn query_to_plan(&self, query: &Query) -> Result<LogicalPlan>
pub fn query_to_plan(&self, query: &Query) -> Result<LogicalPlan>
Generate a logic plan from an SQL query
sourcepub fn query_to_plan_with_alias(
&self,
query: &Query,
alias: Option<String>,
ctes: &mut HashMap<String, LogicalPlan>
) -> Result<LogicalPlan>
pub fn query_to_plan_with_alias(
&self,
query: &Query,
alias: Option<String>,
ctes: &mut HashMap<String, LogicalPlan>
) -> Result<LogicalPlan>
Generate a logic plan from an SQL query with optional alias
sourcepub fn external_table_to_plan(
&self,
statement: &CreateExternalTable
) -> Result<LogicalPlan>
pub fn external_table_to_plan(
&self,
statement: &CreateExternalTable
) -> Result<LogicalPlan>
Generate a logical plan from a CREATE EXTERNAL TABLE statement
sourcepub fn explain_statement_to_plan(
&self,
verbose: bool,
analyze: bool,
statement: &Statement
) -> Result<LogicalPlan>
pub fn explain_statement_to_plan(
&self,
verbose: bool,
analyze: bool,
statement: &Statement
) -> Result<LogicalPlan>
Generate a plan for EXPLAIN … that will print out a plan
Auto Trait Implementations
impl<'a, S> RefUnwindSafe for SqlToRel<'a, S> where
S: RefUnwindSafe,
impl<'a, S> Send for SqlToRel<'a, S> where
S: Sync,
impl<'a, S> Sync for SqlToRel<'a, S> where
S: Sync,
impl<'a, S> Unpin for SqlToRel<'a, S>
impl<'a, S> UnwindSafe for SqlToRel<'a, S> where
S: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more