Struct datafusion_sql::planner::SqlToRel
source · [−]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, statement: Statement) -> Result<LogicalPlan>
pub fn sql_statement_to_plan(&self, statement: Statement) -> Result<LogicalPlan>
Generate a logical plan from an SQL statement
sourcepub fn query_to_plan(
&self,
query: Query,
ctes: &mut HashMap<String, LogicalPlan>
) -> Result<LogicalPlan>
pub fn query_to_plan(
&self,
query: Query,
ctes: &mut HashMap<String, LogicalPlan>
) -> Result<LogicalPlan>
Generate a logical plan from an SQL query
sourcepub fn subquery_to_plan(
&self,
query: Query,
ctes: &mut HashMap<String, LogicalPlan>,
outer_query_schema: &DFSchema
) -> Result<LogicalPlan>
pub fn subquery_to_plan(
&self,
query: Query,
ctes: &mut HashMap<String, LogicalPlan>,
outer_query_schema: &DFSchema
) -> Result<LogicalPlan>
Generate a logical plan from a SQL subquery
sourcepub fn query_to_plan_with_alias(
&self,
query: Query,
alias: Option<String>,
ctes: &mut HashMap<String, LogicalPlan>,
outer_query_schema: Option<&DFSchema>
) -> Result<LogicalPlan>
pub fn query_to_plan_with_alias(
&self,
query: Query,
alias: Option<String>,
ctes: &mut HashMap<String, LogicalPlan>,
outer_query_schema: Option<&DFSchema>
) -> Result<LogicalPlan>
Generate a logic plan from an SQL query with optional alias
pub fn describe_table_to_plan(
&self,
statement: DescribeTable
) -> Result<LogicalPlan>
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
sourcepub fn sql_to_rex(
&self,
sql: SQLExpr,
schema: &DFSchema,
ctes: &mut HashMap<String, LogicalPlan>
) -> Result<Expr>
pub fn sql_to_rex(
&self,
sql: SQLExpr,
schema: &DFSchema,
ctes: &mut HashMap<String, LogicalPlan>
) -> Result<Expr>
Generate a relational expression from a SQL expression
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more