Skip to content
DuckDB community extension

azure_wasm

Read Azure Blob / ADLS Gen2 (abfss/az/wasbs) over HTTPS+SAS, without the Azure SDK (Wasm-friendly)

01 / SETUP

Install and load

Run these commands in a compatible Haybarn browser session. The extension is available from the community repository.

Haybarn 2.0.0 · SQL
INSTALL azure_wasm FROM community;
LOAD azure_wasm FROM community;

Try it in a temporary SQL session with azure_wasm already loaded. Queries run in this tab; examples using files or services need their own setup.

Using upstream DuckDB? Follow the maintainer’s installation instructions.

02 / QUERY

Usage example

Store the SAS credential an Iceberg REST catalog vends for an ADLS warehouse:

SQL
-- Store the SAS credential an Iceberg REST catalog vends for an ADLS warehouse:
CREATE SECRET (
  TYPE azure,
  PROVIDER config,
  ACCOUNT_NAME 'myaccount',
  CONNECTION_STRING 'AccountName=myaccount;SharedAccessSignature=sv=...&sig=...'
);
-- Now abfss:// URLs are read over HTTPS with the SAS token appended:
SELECT * FROM read_parquet('abfss://[email protected]/path/file.parquet');

Provided by HynekBlaha. Not yet verified on Haybarn 2.0.0.

Sample data & setup

About this extension

Reads Azure Blob Storage / ADLS Gen2 URLs (abfss://, abfs://, az://, azure://, wasbs://, wasb://) by looking up a matching azure secret, extracting the SAS token from its connection_string, rewriting the URL to a plain https://<host>/<container>/<key>?<sas>, and reading it through the regular HTTPS path.

Because it authenticates purely via the SAS query string, it needs no Azure C++ SDK — so, unlike the native azure extension, it compiles to WebAssembly. It was built to read Apache Iceberg tables backed by ADLS from DuckDB-Wasm (e.g. the Lakekeeper Iceberg REST catalog console) using catalog-vended credentials.

Project overview from the community descriptor.

Documentation and resources

Project and build details
Repository
HynekBlaha/duckdb-azure-wasm
License
MIT
Maintainers
HynekBlaha
Written in
C++
Build source
672823c4d01f
Build definition
Community descriptor