-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting "IO Error: GDAL Error (4): `<file>.xlsx' not recognized as a supported file format." when calling st_read on registered .xlsx file #1870
Comments
I should have included: I can open the file fine using duckdb cli:
|
Question, can the file be opened when queried from an http endpoint? Something like:
while having a local http-server? Question is basically whether this problem is with reading the format at all in Wasm (possibly due to different config in DuckDB-Wasm spatial) or this is a filesystem mismatch within duckdb-wasm. |
Actually this seems to work, at least on the shell, from a remote endpoint: |
Hi @carlopi - I only just noticed you had two replies. I can confirm that I can read it with DuckDB WASM when I call st_read explicitly and pass in the http url. Interestingly, the example with the http url currently fails in the CLI (no WASM) with DuckDB 1.1.0 GA and the nightly build v1.1.2-dev44: |
I think in the CLI explicitly loading httpfs is needed:
then works on my end. |
And @rpbouman, on your previous comment: I was trying to test (with very low effort) whether this was supported at all by spatial in wasm / find where things go wrong, and it appears it's connected to the File-based filesystem. I will need to dig there, log system calls, and find where stuff start to differ (and why / how to fix it). |
Ah! Ok, I thought that was enabled by default. After installing it explicitly, it works for me too. THanks for clearing that up! |
What happens?
SELECT * FROM st_read( '<filename>' )
fails withError: IO Error: GDAL Error (4):
test.xlsx' not recognized as a supported file format.`To Reproduce
I'm running this page locally:
Sample xlsx file is attached.
test.xlsx
Browser/Environment:
Chrome 129.0.6668.71, MS Edge 129.0.2792.65
Device:
Windows 11 Desktop
DuckDB-Wasm Version:
using https://cdn.jsdelivr.net/npm/@duckdb/[email protected]/+esm
DuckDB-Wasm Deployment:
https://cdn.jsdelivr.net/npm/@duckdb/[email protected]/+esm
Full Name:
Roland Bouman
Affiliation:
EPAM Systems BV Netherlands
The text was updated successfully, but these errors were encountered: