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

Not able to attach to .db file placed over azure blob storage using azure extension #70

Open
rupeshtej opened this issue Aug 5, 2024 · 3 comments

Comments

@rupeshtej
Copy link

i downloaded latest azure extension code and trying to attach to .db file using duckdb cli and .db file is placed over azure blob storage.

While attaching i am getting below issue -

ATTACH 'az://samplecontainer/sample.db' AS sample_test (READ_ONLY);
INTERNAL Error: Attempting to dereference an optional pointer that is not set
This error signals an assertion failure within DuckDB. This usually occurs due to unexpected conditions or errors in the program's logic.

To Reproduce

Below are the steps and commands to reproduce -

Run duckdb CLI and run below commands

CREATE SECRET secret (
TYPE AZURE,
CONNECTION_STRING '***********'
);

Attach .db file using below command -
ATTACH 'az://samplecontainer/sample.db' AS sample_test (READ_ONLY);

@djouallah
Copy link

same problem here :(

@rupeshtej
Copy link
Author

hi @Mytherin , can you please check this

@rupeshtej
Copy link
Author

rupeshtej commented Oct 21, 2024

hi @Mytherin , i checked again with your commit and it is working with single thread... but when i set max_threads to more than 1 then Database attach is working correctly but in query execution program is crashing with below error -

Error in executing query: IO Error: Corrupt database file: computed checksum 10704450356758579597 does not match stored checksum 8071570260309647359 in block at location 2371584

I used duckdb version - 1.1.2

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

2 participants