Skip to content
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

crash when reading wrong format excel #357

Open
zeroxaa opened this issue Jul 15, 2024 · 2 comments
Open

crash when reading wrong format excel #357

zeroxaa opened this issue Jul 15, 2024 · 2 comments

Comments

@zeroxaa
Copy link

zeroxaa commented Jul 15, 2024

I use the following code in my server:
db.execute(format!("CREATE TABLE

AS SELECT * FROM st_read('{}');", xlsx).as_str(), [])?;
xlsx is the local path to excel file, if provided with a random file, rust throws something like:

fatal runtime error: Rust cannot catch foreign exceptions

so the whole server crashes. I believe it also happens on read_json

attached is a file that causes the error.

1030__tttttt__25e02eca-268a-4915-9ea7-ae8bec2c53eb.xlsx

@zeroxaa
Copy link
Author

zeroxaa commented Jul 15, 2024

i am duckdb-rs in 'bundled' way.

@zeroxaa
Copy link
Author

zeroxaa commented Jul 15, 2024

when using same file in duckdb cli, it outputs
Invalid Input Error: Malformed JSON in file "/tmp/1030__tttttt__25e02eca-268a-4915-9ea7-ae8bec2c53eb", at byte 1 in record/value 2: unexpected character.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant