feat(lakehouse): support Azure Blob storage for DuckLake#2409
Merged
turtleDev merged 3 commits intoJul 22, 2026
Conversation
Adds `storage.type: azure` to the DuckDB DuckLake lakehouse connection, mirroring the existing s3/gcs backends. Two auth modes: an account-key `connection_string`, or `account_name` alone to use DuckDB's credential chain (managed identity / az login / env). Bruin loads the `azure` extension and sets `azure_transport_option_type = 'curl'` globally so TLS to *.blob.core.windows.net uses the system CA bundle — required on Linux/containers. GLOBAL rather than session because DuckLake maintenance calls otherwise still fail (duckdb/ducklake#776). Scope: DuckLake only; Iceberg-on-Azure remains unsupported. Covered by unit tests (validation, required extensions, secret SQL, attach statements) and documented in the DuckDB platform + lakehouse getting-started pages. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
|
PR author is not in the allowed authors list. |
Contributor
Author
|
Verified the unit tests pass locally (CI here is awaiting first-time-contributor approval): New azure coverage all green: These are unit tests over the generated SQL; I haven't run an E2E against a live Azure storage account. |
TanayBensuYurtturk
approved these changes
Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds Azure Blob Storage as a
storage:backend for the DuckDB DuckLake lakehouse connection, alongside the existings3andgcsbackends.Two auth modes:
connection_string— account-key auth.account_nameonly — uses DuckDB'scredential_chainprovider (managed identity /az login/ environment credentials).Why
DuckLake stores its Parquet on object storage, and DuckDB fully supports Azure Blob via the
azureextension — but Bruin's lakehouse connection only acceptss3/gcs, so DuckLake pipelines can't target Azure. This closes that gap for Azure deployments. Follows the same shape as the GCS (#1758) and S3-compatible (#1994/#1999) backends.How
pkg/config/lakehouse.go:StorageTypeAzure+supportedStorageTypes;StorageAuth.ConnectionString/AccountName(+IsAzure()).pkg/duckdb/lakehouse.go: DuckLake validation for azure, loads theazureextension,generateAzureSecret()(CREATE SECRET (TYPE azure, …)), and the attach flow.generateDuckLakeAttachis unchanged —az://…flows through asDATA_PATHand the secret'sSCOPEauthorizes it.Generated SQL for
type: azure:Note on the
curltransportazure_transport_option_type = 'curl'is set globally for azure storage. The azure extension's default transport ignores the system CA bundle and fails TLS to*.blob.core.windows.neton Linux/containers;curluses libcurl + the standard CA paths (host needsca-certificates). It'sGLOBALrather than session-scoped because DuckLake maintenance calls otherwise still fail — see duckdb/ducklake#776. Happy to make this configurable (or opt-in) if you'd prefer.Scope
DuckLake only. Iceberg-on-Azure remains unsupported (untested).
Tests
pkg/duckdb/lakehouse_test.go: config validation (pass / missing-auth / missing-path), required extensions,generateAzureSecretgolden strings (connection_string + credential_chain), and the full attach-statement sequence.Docs
docs/platforms/duckdb.md:#### Azureconfig examples, auth modes, transport/CA note, maintenance-func caveat.docs/getting-started/lakehouse.md: Azure column in the DuckLake support table.