Skip to content

Commit 7fbdb52

Browse files
sfc-gh-zyaosfc-gh-fpawlowski
authored andcommitted
SNOW-2019505 fix inconsistent force_put_overwrite value for _upload a… (#2247)
(cherry picked from commit e200620)
1 parent 9e3d1d3 commit 7fbdb52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/snowflake/connector/cursor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,7 @@ def _upload(
18111811
self,
18121812
"", # empty command because it is triggered by directly calling this util not by a SQL query
18131813
ret,
1814+
force_put_overwrite=False, # _upload should respect user decision on overwriting
18141815
)
18151816
file_transfer_agent.execute()
18161817
self._init_result_and_meta(file_transfer_agent.result())
@@ -1878,6 +1879,7 @@ def _upload_stream(
18781879
"", # empty command because it is triggered by directly calling this util not by a SQL query
18791880
ret,
18801881
source_from_stream=input_stream,
1882+
force_put_overwrite=False, # _upload_stream should respect user decision on overwriting
18811883
)
18821884
file_transfer_agent.execute()
18831885
self._init_result_and_meta(file_transfer_agent.result())

0 commit comments

Comments
 (0)