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 2022/11/18 02:58:17 UTC

[GitHub] [arrow-datafusion] HaoYang670 commented on issue #4262: `create external table` should fail to parse if syntax is incorrect

HaoYang670 commented on issue #4262:
URL: https://github.com/apache/arrow-datafusion/issues/4262#issuecomment-1319480983

   These queries also fail to parse
   ```sql
   ❯ create external table t2 stored as csv with location "../datafusion/core/tests/example.csv";
   ❯ select * from t2;
   +----------+----------+----------+
   | column_1 | column_2 | column_3 |
   +----------+----------+----------+
   | a        | b        | c        |
   | 1        | 2        | 3        |
   +----------+----------+----------+
   
   ❯ create external table t3 stored as csv header location "../datafusion/core/tests/example.csv";
   ❯ select * from t3;
   +----------+----------+----------+
   | column_1 | column_2 | column_3 |
   +----------+----------+----------+
   | a        | b        | c        |
   | 1        | 2        | 3        |
   +----------+----------+----------+
   
   ❯ create external table t4 stored as csv row location "../datafusion/core/tests/example.csv";
   ❯ select * from t4;
   +----------+----------+----------+
   | column_1 | column_2 | column_3 |
   +----------+----------+----------+
   | a        | b        | c        |
   | 1        | 2        | 3        |
   +----------+----------+----------+
   
   ❯ create external table t5 stored as csv header row location "../datafusion/core/tests/example.csv";
   ❯ select * from t5;
   +----------+----------+----------+
   | column_1 | column_2 | column_3 |
   +----------+----------+----------+
   | a        | b        | c        |
   | 1        | 2        | 3        |
   +----------+----------+----------+
   ```


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