duckdb / sqlite_scanner

DuckDB extension to read and write to SQLite databases

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQLite's real(float) datatype is not supported

ccwang002 opened this issue · comments

I got an invalid error Invalid Error: FLOAT while trying to read an attached SQLite table with a real/float column. Here are the steps to reproduce:

Create a SQLite database:

echo "CREATE TABLE my (a REAL); INSERT INTO my VALUES (10.34), (0.042);" | sqlite3 my.db

Attach it from DuckDB (./build/release/duckdb -unsigned):

D LOAD 'build/release/extension/sqlite_scanner/sqlite_scanner.duckdb_extension';
D CALL sqlite_attach('my.db');
D SELECT * FROM my;
Error: Invalid Error: FLOAT

I was able to load tables of other data types (e.g., text, integer).

Also, thank you for making this extension. Now it's much easier to transfer/load data from existing SQLite databases to DuckDB.

commented

I've encountered the same error, hopefully this will get fixed soon.

commented

Thanks for the report! This should be fixed by #18 now.