Skip to content

SQLite's real(float) datatype is not supported #12

@ccwang002

Description

@ccwang002

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions