You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2020/07/26 13:25:08 UTC

[GitHub] [arrow] jorgecarleitao commented on a change in pull request #7833: ARROW-7903: [Rust] [DataFusion] Migrated to sqlparser 0.6.1

jorgecarleitao commented on a change in pull request #7833:
URL: https://github.com/apache/arrow/pull/7833#discussion_r460527604



##########
File path: rust/datafusion/src/execution/context.rs
##########
@@ -140,10 +142,10 @@ impl ExecutionContext {
 
     /// Creates a logical plan
     pub fn create_logical_plan(&mut self, sql: &str) -> Result<LogicalPlan> {
-        let ast = DFParser::parse_sql(sql)?;
+        let statements = DFParser::parse_sql(sql)?;
 
-        match ast {
-            DFASTNode::ANSI(ansi) => {
+        match &statements[0] {

Review comment:
       Well spotted. Fixed




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org