/// Builds plan from AST statement.
Builds plan from AST statement.
Builds plan from AST statement .
pub fn sql_statement_to_plan(&self, statement: &sqlparser::ast::Statement) -> Result<PlanNode> {
        match statement {
            Statement::Query(query) => self.query_to_plan(query),
            Statement::SetVariable {
                variable, value, ..
            } => self.set_variable_to_plan(variable, value),
            _ => bail!("Unsupported statement {:?}", statement),
        }
    }
pub fn sql_statement_to_plan ( & self , statement : & sqlparser :: ast :: Statement ) -> Result < PlanNode > { match statement { Statement :: Query ( query ) => self . query_to_plan ( query ) , Statement :: SetVariable { variable , value , .. } => self . set_variable_to_plan ( variable , value ) , _ => bail ! ( " " statement ) , } }
Builds plan from AST statement.
Builds plan from AST statement .
&self
statement
&sqlparser::ast::Statement