diff --git a/pyiceberg/io/fsspec.py b/pyiceberg/io/fsspec.py index d8fe3dfa40..4cbae52304 100644 --- a/pyiceberg/io/fsspec.py +++ b/pyiceberg/io/fsspec.py @@ -189,9 +189,7 @@ def _adls(properties: Properties) -> AbstractFileSystem: from adlfs import AzureBlobFileSystem for key, sas_token in { - key.replace(f"{ADLS_SAS_TOKEN}.", ""): value - for key, value in properties.items() - if key.startswith(ADLS_SAS_TOKEN) and key.endswith(".windows.net") + key.replace(f"{ADLS_SAS_TOKEN}.", ""): value for key, value in properties.items() if key.startswith(ADLS_SAS_TOKEN) }.items(): if ADLS_ACCOUNT_NAME not in properties: properties[ADLS_ACCOUNT_NAME] = key.split(".")[0]