Skip to content

Commit 0d463b9

Browse files
authored
added support for ADLS_CREDENTIAL (#2299)
Reference: https://github.com/fsspec/adlfs/blob/main/adlfs/spec.py#L176
1 parent 24b12dd commit 0d463b9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pyiceberg/io/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
HDFS_USER = "hdfs.user"
7575
HDFS_KERB_TICKET = "hdfs.kerberos_ticket"
7676
ADLS_CONNECTION_STRING = "adls.connection-string"
77+
ADLS_CREDENTIAL = "adls.credential"
7778
ADLS_ACCOUNT_NAME = "adls.account-name"
7879
ADLS_ACCOUNT_KEY = "adls.account-key"
7980
ADLS_SAS_TOKEN = "adls.sas-token"

pyiceberg/io/fsspec.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
ADLS_CLIENT_ID,
4646
ADLS_CLIENT_SECRET,
4747
ADLS_CONNECTION_STRING,
48+
ADLS_CREDENTIAL,
4849
ADLS_SAS_TOKEN,
4950
ADLS_TENANT_ID,
5051
AWS_ACCESS_KEY_ID,
@@ -203,6 +204,7 @@ def _adls(properties: Properties) -> AbstractFileSystem:
203204

204205
return AzureBlobFileSystem(
205206
connection_string=properties.get(ADLS_CONNECTION_STRING),
207+
credential=properties.get(ADLS_CREDENTIAL),
206208
account_name=properties.get(ADLS_ACCOUNT_NAME),
207209
account_key=properties.get(ADLS_ACCOUNT_KEY),
208210
sas_token=properties.get(ADLS_SAS_TOKEN),

0 commit comments

Comments
 (0)