You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experiencing an error when trying to read tables from SQLite database files using DuckDB WASM in my application. When attempting to query a table from an attached SQLite database, I get errors indicating the table doesn't exist, even though it's present in the SQLite file.
To Reproduce
Steps to Reproduce
Attach a SQLite database to DuckDB WASM:
ATTACH 'sakila.db' (TYPE sqlite);
Try to read a table directly:
SELECT * FROM sakila.actor;
3.Get the following error:
-- Catalog Error: Table with name actor does not exist!
-- Did you mean "system.information_schema.table_constraints"?
-- LINE 1: select * from sakila.actor LIMIT 100 OFFSET 0
Failed to run query: Error: Error: INTERNAL Error: GetTableInfo - table "actor" not found
This error signals an assertion failure within DuckDB. This usually occurs due to unexpected conditions or errors in the program's logic.`
Alternative Approach Attempted
I also tried using the sqlite_scanner extension:
INSTALL sqlite_scanner FROM 'https://extensions.duckdb.org';
LOAD sqlite_scanner;
FROM duckdb_extensions() WHERE loaded; -- confirms sqlite_scanner is loaded
FROM duckdb_databases; -- confirms sakila.db is in the list of databases
SELECT * FROM sqlite_scan('sakila.db', 'actor');
This results in the same error:
INTERNAL Error: GetTableInfo - table "actor" not found
This error signals an assertion failure within DuckDB. This usually occurs due to unexpected conditions or errors in the program's logic.
After this error occurs, the database connection becomes invalid and cannot be accessed anymore.
I expect to be able to read tables from SQLite database files using DuckDB WASM, either through direct attachment or using the sqlite_scanner extension.
What happens?
I'm experiencing an error when trying to read tables from SQLite database files using DuckDB WASM in my application. When attempting to query a table from an attached SQLite database, I get errors indicating the table doesn't exist, even though it's present in the SQLite file.
To Reproduce
Steps to Reproduce
ATTACH 'sakila.db' (TYPE sqlite);
SELECT * FROM sakila.actor;
3.Get the following error:
Failed to run query: Error: Error: INTERNAL Error: GetTableInfo - table "actor" not found
This error signals an assertion failure within DuckDB. This usually occurs due to unexpected conditions or errors in the program's logic.`
Alternative Approach Attempted
After this error occurs, the database connection becomes invalid and cannot be accessed anymore.
I expect to be able to read tables from SQLite database files using DuckDB WASM, either through direct attachment or using the sqlite_scanner extension.
Browser/Environment:
Chrome 133.0.6943.142
Device:
MacBook Pro M
DuckDB-Wasm Version:
1.29.0
DuckDB-Wasm Deployment:
https://shell.duckdb.org/
Full Name:
Andrii Butko
Affiliation:
T1A
The text was updated successfully, but these errors were encountered: