datafusion icon indicating copy to clipboard operation
datafusion copied to clipboard

INTEGER type does't work while importing csv

Open waitingkuo opened this issue 3 years ago • 0 comments

Describe the bug A clear and concise description of what the bug is.

it works at v10.0.0, but doesn't work at master branch

To Reproduce Steps to reproduce the behavior:

echo "a\n1" > b.csv

➜  datafusion-cli git:(master) ✗ cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.26s
     Running `target/debug/datafusion-cli`
DataFusion CLI v10.0.0
❯ create external table b (a INTEGER) stored as csv with header row location 'b.csv';
NotImplemented("The SQL data type Integer(None) is not implemented")

while this works

❯ create external table b (a INT) stored as csv with header row location 'b.csv';
0 rows in set. Query took 0.016 seconds.

Expected behavior A clear and concise description of what you expected to happen.

Additional context Add any other context about the problem here.

waitingkuo avatar Aug 06 '22 19:08 waitingkuo