You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current logic when constructing an ADLS file system incorrectly
matches
[`adls.sas-token-expires-at-ms.`](https://github.com/apache/iceberg/blob/d1771207c9040f1c8b6886665b56d1a972fe402a/azure/src/main/java/org/apache/iceberg/azure/AzureProperties.java#L45)
prefixed keys. If this is provided and encountered prior to
[`adls.sas-token.`](https://github.com/apache/iceberg/blob/d1771207c9040f1c8b6886665b56d1a972fe402a/azure/src/main/java/org/apache/iceberg/azure/AzureProperties.java#L44)
prefixed keys, it will incorrectly determine the `ADLS_ACCOUNT_NAME` and
`ADLS_SAS_TOKEN`.
For example with the following properties:
```
{
'adls.sas-token-expires-at-ms.testaccount.dfs.core.windows.net': '1757597218121',
'adls.sas-token.testaccount.dfs.core.windows.net': '<redacted>'
}
```
**Before**
```
{
'adls.sas-token-expires-at-ms.testaccount.dfs.core.windows.net': '1757597218121',
'adls.sas-token.testaccount.dfs.core.windows.net': '<redacted>',
'adls.account-name': 'adls',
'adls.sas-token': '1757597218121'
}
```
**After**
```
{
'adls.sas-token-expires-at-ms.testaccount.dfs.core.windows.net': '1757597218121',
'adls.sas-token.testaccount.dfs.core.windows.net': '<redacted>',
'adls.account-name': 'testaccount',
'adls.sas-token': '<redacted>'
}
```
---------
Co-authored-by: Thomas Powell <tpowell@palantir.com>
0 commit comments