duckdb / duckdb-wasm

WebAssembly version of DuckDB
https://shell.duckdb.org
MIT License
1.02k stars 110 forks source link

Error handling of incorrect URL in select statement. #1758

Open mtb0x1 opened 3 weeks ago

mtb0x1 commented 3 weeks ago

What happens?

I think there are few issues regarding the handling of different HTTP errors that might occur.

To Reproduce

1) This should yield something like 404 not found error.

SELECT count(*) FROM 'https://shell.duckdb.org/data/something.parquet';
Invalid Error: [object WebAssembly.Exception]

2) This yield a correct "404 not found" message.

SELECT count(*) FROM 'https://shell.duckdb.org/data/tpch/0_01/parquet/customer.parquett';
Catalog Error: Table with name https://shell.duckdb.org/data/tpch/0_01/parquet/customer.parquett does not exist!
Did you mean "duckdb_databases"?
LINE 1:  SELECT count(*) FROM 'https://shell.duckdb.org/data/tpch/0_0...

Browser/Environment:

Firefox 126

Device:

Desktop

DuckDB-Wasm Version:

@duckdb/duckdb-wasm@1.28.1-dev215.0

DuckDB-Wasm Deployment:

https://shell.duckdb.org

Full Name:

mtb0x1

Affiliation:

None