You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "armanm (via GitHub)" <gi...@apache.org> on 2023/05/03 10:21:39 UTC

[GitHub] [arrow-datafusion] armanm opened a new issue, #6198: Why does the parse refuse to parse this statement?

armanm opened a new issue, #6198:
URL: https://github.com/apache/arrow-datafusion/issues/6198

   I have these two lines of code:
   
   ```rust
   let sql = "CREATE EXTERNAL TABLE t(c1 int) STORED AS CSV DELIMITER '|' LOCATION 'foo.csv'";
   Parser::parse_sql(&dialect::GenericDialect {}, sql).unwrap();
   ```
   and the second line is panicking like so:
   
   ```
   thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParserError("Expected fileformat, found: CSV")', src/sql.rs:24:57
   ```
   
   I'm on the current version of the these packages:
   
   ```
   datafusion = { version = "23.0.0", features = ["default", "avro"]}
   datafusion-sql = { version = "23.0.0", features = ["default"]}
   ```
   
   I grabbed this statement from the tests I see here:
   
   https://github.com/apache/arrow-datafusion/blob/cda00b545e1b4492269f76f65545c82264f79b88/datafusion/sql/src/parser.rs#L589-L604
   
   Would anyone know why this fails here?


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org

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


[GitHub] [arrow-datafusion] armanm closed issue #6198: Why does the parser refuse to parse this statement?

Posted by "armanm (via GitHub)" <gi...@apache.org>.
armanm closed issue #6198: Why does the parser refuse to parse this statement?
URL: https://github.com/apache/arrow-datafusion/issues/6198


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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


[GitHub] [arrow-datafusion] armanm commented on issue #6198: Why does the parser refuse to parse this statement?

Posted by "armanm (via GitHub)" <gi...@apache.org>.
armanm commented on issue #6198:
URL: https://github.com/apache/arrow-datafusion/issues/6198#issuecomment-1532807689

   I realised I needed to use `parser::DFParser`


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

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