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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to