This is an automated email from the ASF dual-hosted git repository.

fokko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git


The following commit(s) were added to refs/heads/main by this push:
     new 9945f839 ADLS: Fix fetching the token (#1732)
9945f839 is described below

commit 9945f839c48f99ef1bd4f02551721eaa83a79ce5
Author: Marcin SzymaƄski <[email protected]>
AuthorDate: Tue Mar 4 08:36:57 2025 +0000

    ADLS: Fix fetching the token (#1732)
    
    We observed that the property with token returned by Polaris is
    `adls.sas-token.<account name>` and the extra condition causes is to be
    ignored
---
 pyiceberg/io/fsspec.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/pyiceberg/io/fsspec.py b/pyiceberg/io/fsspec.py
index d8fe3dfa..4cbae523 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]

Reply via email to