Closed mmaitre314 closed 4 months ago
Thanks! That did the trick. Somehow the logs were not getting displayed in VSCode Notebook but it worked running a plain py file. I'll see if I can expand the docs to mention logging.
For future reference:
import os
import duckdb
os.environ['AZURE_LOG_LEVEL'] = 'verbose'
duckdb.sql("CREATE SECRET myaccount (TYPE AZURE, PROVIDER CREDENTIAL_CHAIN, SCOPE 'az://myaccount.blob.core.windows.net/')")
duckdb.sql("SELECT count(*) FROM 'az://myaccount.blob.core.windows.net/path/to/blob.parquet'")
Is it possible to get verbose logs from the DuckDB Azure extension? In particular logs which would show what happened during authentication?
I am hitting an auth error trying to query a blob in an Azure Storage Account. I am guessing my config is wrong, or maybe the Azure CLI auth failed for some reason, but the error message is not giving enough to root-cause the issue.
Notebook repro:
(in GitHub: https://github.com/mmaitre314/az-duckdb/blob/main/main.ipynb)