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_PREFIX ,
48
- ADLFS_SAS_TOKEN ,
49
- ADLFS_TENANT_ID ,
50
43
ADLS_ACCOUNT_KEY ,
51
44
ADLS_ACCOUNT_NAME ,
52
45
ADLS_CLIENT_ID ,
61
54
GCS_CACHE_TIMEOUT ,
62
55
GCS_CONSISTENCY ,
63
56
GCS_DEFAULT_LOCATION ,
64
- GCS_ENDPOINT ,
65
57
GCS_PROJECT_ID ,
66
58
GCS_REQUESTER_PAYS ,
67
59
GCS_SERVICE_HOST ,
78
70
S3_SIGNER_ENDPOINT ,
79
71
S3_SIGNER_ENDPOINT_DEFAULT ,
80
72
S3_SIGNER_URI ,
81
- ADLFS_ClIENT_SECRET ,
82
73
ADLS_ClIENT_SECRET ,
83
74
FileIO ,
84
75
InputFile ,
87
78
OutputStream ,
88
79
)
89
80
from pyiceberg .typedef import Properties
90
- from pyiceberg .utils .deprecated import deprecation_message
91
81
from pyiceberg .utils .properties import get_first_property_value , property_as_bool
92
82
93
83
logger = logging .getLogger (__name__ )
@@ -172,12 +162,6 @@ def _gs(properties: Properties) -> AbstractFileSystem:
172
162
# https://gcsfs.readthedocs.io/en/latest/api.html#gcsfs.core.GCSFileSystem
173
163
from gcsfs import GCSFileSystem
174
164
175
- if properties .get (GCS_ENDPOINT ):
176
- deprecation_message (
177
- deprecated_in = "0.8.0" ,
178
- removed_in = "0.9.0" ,
179
- help_message = f"The property { GCS_ENDPOINT } is deprecated, please use { GCS_SERVICE_HOST } instead" ,
180
- )
181
165
return GCSFileSystem (
182
166
project = properties .get (GCS_PROJECT_ID ),
183
167
access = properties .get (GCS_ACCESS , "full_control" ),
@@ -186,7 +170,7 @@ def _gs(properties: Properties) -> AbstractFileSystem:
186
170
cache_timeout = properties .get (GCS_CACHE_TIMEOUT ),
187
171
requester_pays = property_as_bool (properties , GCS_REQUESTER_PAYS , False ),
188
172
session_kwargs = json .loads (properties .get (GCS_SESSION_KWARGS , "{}" )),
189
- endpoint_url = get_first_property_value ( properties , GCS_SERVICE_HOST , GCS_ENDPOINT ),
173
+ endpoint_url = properties . get ( GCS_SERVICE_HOST ),
190
174
default_location = properties .get (GCS_DEFAULT_LOCATION ),
191
175
version_aware = property_as_bool (properties , GCS_VERSION_AWARE , False ),
192
176
)
@@ -195,50 +179,14 @@ def _gs(properties: Properties) -> AbstractFileSystem:
195
179
def _adls (properties : Properties ) -> AbstractFileSystem :
196
180
from adlfs import AzureBlobFileSystem
197
181
198
- for property_name in properties :
199
- if property_name .startswith (ADLFS_PREFIX ):
200
- deprecation_message (
201
- deprecated_in = "0.8.0" ,
202
- removed_in = "0.9.0" ,
203
- help_message = f"The property { property_name } is deprecated. Please use properties that start with adls." ,
204
- )
205
-
206
182
return AzureBlobFileSystem (
207
- connection_string = get_first_property_value (
208
- properties ,
209
- ADLS_CONNECTION_STRING ,
210
- ADLFS_CONNECTION_STRING ,
211
- ),
212
- account_name = get_first_property_value (
213
- properties ,
214
- ADLS_ACCOUNT_NAME ,
215
- ADLFS_ACCOUNT_NAME ,
216
- ),
217
- account_key = get_first_property_value (
218
- properties ,
219
- ADLS_ACCOUNT_KEY ,
220
- ADLFS_ACCOUNT_KEY ,
221
- ),
222
- sas_token = get_first_property_value (
223
- properties ,
224
- ADLS_SAS_TOKEN ,
225
- ADLFS_SAS_TOKEN ,
226
- ),
227
- tenant_id = get_first_property_value (
228
- properties ,
229
- ADLS_TENANT_ID ,
230
- ADLFS_TENANT_ID ,
231
- ),
232
- client_id = get_first_property_value (
233
- properties ,
234
- ADLS_CLIENT_ID ,
235
- ADLFS_CLIENT_ID ,
236
- ),
237
- client_secret = get_first_property_value (
238
- properties ,
239
- ADLS_ClIENT_SECRET ,
240
- ADLFS_ClIENT_SECRET ,
241
- ),
183
+ connection_string = properties .get (ADLS_CONNECTION_STRING ),
184
+ account_name = properties .get (ADLS_ACCOUNT_NAME ),
185
+ account_key = properties .get (ADLS_ACCOUNT_KEY ),
186
+ sas_token = properties .get (ADLS_SAS_TOKEN ),
187
+ tenant_id = properties .get (ADLS_TENANT_ID ),
188
+ client_id = properties .get (ADLS_CLIENT_ID ),
189
+ client_secret = properties .get (ADLS_ClIENT_SECRET ),
242
190
)
243
191
244
192
0 commit comments