File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -373,6 +373,10 @@ def _get_private_bytes_from_file(
373
373
str ,
374
374
# SNOW-2096721: External (Spark) session ID
375
375
),
376
+ "unsafe_file_write" : (
377
+ False ,
378
+ bool ,
379
+ ), # SNOW-1944208: add unsafe write flag
376
380
_VARIABLE_NAME_SERVER_DOP_CAP_FOR_FILE_TRANSFER : (
377
381
_DEFAULT_VALUE_SERVER_DOP_CAP_FOR_FILE_TRANSFER , # default value
378
382
int , # type
@@ -1410,11 +1414,6 @@ def __config(self, **kwargs):
1410
1414
if "host" not in kwargs :
1411
1415
self ._host = construct_hostname (kwargs .get ("region" ), self ._account )
1412
1416
1413
- if "unsafe_file_write" in kwargs :
1414
- self ._unsafe_file_write = kwargs ["unsafe_file_write" ]
1415
- else :
1416
- self ._unsafe_file_write = False
1417
-
1418
1417
logger .info (
1419
1418
f"Connecting to { _DOMAIN_NAME_MAP .get (extract_top_level_domain_from_hostname (self ._host ), 'GLOBAL' )} Snowflake domain"
1420
1419
)
You can’t perform that action at this time.
0 commit comments