Repository navigation
feat(io): accept the Java ADLS connection string endpoints - #4609
Open
Anurag-S1ngh wants to merge 1 commit into
Open
Anurag-S1ngh wants to merge 1 commit into
Anurag-S1ngh wants to merge 1 commit into
Conversation
Java keys adls.connection-string.<host> by the location host, and the value is the endpoint for that host, not an Azure connection string. Resolve it per location and pass the endpoint to adlfs as account_host.
Fokko
reviewed
Dec 3, 2026
Fokko
left a comment
Contributor
There was a problem hiding this comment.
Thanks @Anurag-S1ngh! Verified against Java: AzureProperties.applyClientConfiguration does adlsConnectionStrings.get(account) and passes the value to builder.endpoint(...), so treating adls.connection-string.<host> as an endpoint matches. New tests pass locally too.
One question on pyiceberg/io/fsspec.py:305: if both adls.connection-string and adls.connection-string.<host> are set, adlfs checks connection_string first and silently ignores account_host, while Java would apply the per-host endpoint. Is this on purpose? Not blocking either way.
This branch has not been deployed
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.
Part of #4140
Rationale for this change
Java accepts
adls.connection-string.<host>, keyed by the location host such asaccount.dfs.core.windows.net, and applies the value as the endpoint for that host inAzureProperties.applyClientConfiguration. The fsspec backend only read a singleadls.connection-stringand never resolved the per-host form.This change reads
adls.connection-string.<host>using the location host and passes it to adlfs asaccount_host, which is adlfs's per-account endpoint setting. The value can be a full endpoint URL or a bare host. The singleadls.connection-stringkeeps its existing connection string semantics.Are these changes tested?
Added tests for an endpoint with a scheme, an endpoint without a scheme, and for a key that names the bare account instead of the host, which must not match.
Are there any user-facing changes?
Yes. Java per-host ADLS endpoint properties are accepted by the fsspec backend.
Split from #4596.