We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4175540 commit 9c03f6aCopy full SHA for 9c03f6a
pyiceberg/io/fsspec.py
@@ -197,9 +197,12 @@ def _adls(properties: Properties) -> AbstractFileSystem:
197
from adlfs import AzureBlobFileSystem
198
199
# https://learn.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-introduction-abfs-uri#uri-syntax
200
- account_uri = None
201
- if not properties.get(ADLS_ACCOUNT_NAME) and (netloc := properties.get("netloc")):
+ if netloc := properties.get("netloc"):
202
account_uri = netloc.split("@")[-1]
+ else:
203
+ account_uri = None
204
+
205
+ if not properties.get(ADLS_ACCOUNT_NAME) and account_uri:
206
properties[ADLS_ACCOUNT_NAME] = account_uri.split(".")[0]
207
208
# Fixes https://github.com/apache/iceberg-python/issues/1146
0 commit comments