/// Generate a logic plan from an SQL query
Generate a logic plan from an SQL query
Generate a logic plan from an SQL query
pub fn query_to_plan(&self, query: &sqlparser::ast::Query) -> Result<PlanNode> {
        match &query.body {
            sqlparser::ast::SetExpr::Select(s) => self.select_to_plan(s.as_ref(), &query.limit),
            _ => bail!("Query {} not implemented yet", query.body),
        }
    }
pub fn query_to_plan ( & self , query : & sqlparser :: ast :: Query ) -> Result < PlanNode > { match & query . body { sqlparser :: ast :: SetExpr :: Select ( s ) => self . select_to_plan ( s . as_ref ( ) , & query . limit ) , _ => bail ! ( " " query body ) , } }
Generate a logic plan from an SQL query
Generate a logic plan from an SQL query
&self
query
&sqlparser::ast::Query