|
40 | 40 | from pyiceberg.catalog import TOKEN
|
41 | 41 | from pyiceberg.exceptions import SignError
|
42 | 42 | from pyiceberg.io import (
|
| 43 | + ADLFS_ACCOUNT_KEY, |
| 44 | + ADLFS_ACCOUNT_NAME, |
| 45 | + ADLFS_CLIENT_ID, |
| 46 | + ADLFS_CONNECTION_STRING, |
| 47 | + ADLFS_SAS_TOKEN, |
| 48 | + ADLFS_TENANT_ID, |
43 | 49 | GCS_ACCESS,
|
44 | 50 | GCS_CACHE_TIMEOUT,
|
45 | 51 | GCS_CONSISTENCY,
|
|
57 | 63 | S3_REGION,
|
58 | 64 | S3_SECRET_ACCESS_KEY,
|
59 | 65 | S3_SESSION_TOKEN,
|
| 66 | + ADLFS_ClIENT_SECRET, |
60 | 67 | FileIO,
|
61 | 68 | InputFile,
|
62 | 69 | InputStream,
|
@@ -163,13 +170,13 @@ def _adlfs(properties: Properties) -> AbstractFileSystem:
|
163 | 170 | from adlfs import AzureBlobFileSystem
|
164 | 171 |
|
165 | 172 | return AzureBlobFileSystem(
|
166 |
| - connection_string=properties.get("adlfs.connection-string"), |
167 |
| - account_name=properties.get("adlfs.account-name"), |
168 |
| - account_key=properties.get("adlfs.account-key"), |
169 |
| - sas_token=properties.get("adlfs.sas-token"), |
170 |
| - tenant_id=properties.get("adlfs.tenant-id"), |
171 |
| - client_id=properties.get("adlfs.client-id"), |
172 |
| - client_secret=properties.get("adlfs.client-secret"), |
| 173 | + connection_string=properties.get(ADLFS_CONNECTION_STRING), |
| 174 | + account_name=properties.get(ADLFS_ACCOUNT_NAME), |
| 175 | + account_key=properties.get(ADLFS_ACCOUNT_KEY), |
| 176 | + sas_token=properties.get(ADLFS_SAS_TOKEN), |
| 177 | + tenant_id=properties.get(ADLFS_TENANT_ID), |
| 178 | + client_id=properties.get(ADLFS_CLIENT_ID), |
| 179 | + client_secret=properties.get(ADLFS_ClIENT_SECRET), |
173 | 180 | )
|
174 | 181 |
|
175 | 182 |
|
|
0 commit comments