Skip to content

Commit 26e46c1

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 c81d17d commit 26e46c1

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
@@ -1812,6 +1812,7 @@ def _upload(
18121812
self,
18131813
"", # empty command because it is triggered by directly calling this util not by a SQL query
18141814
ret,
1815+
force_put_overwrite=False, # _upload should respect user decision on overwriting
18151816
)
18161817
file_transfer_agent.execute()
18171818
self._init_result_and_meta(file_transfer_agent.result())
@@ -1879,6 +1880,7 @@ def _upload_stream(
18791880
"", # empty command because it is triggered by directly calling this util not by a SQL query
18801881
ret,
18811882
source_from_stream=input_stream,
1883+
force_put_overwrite=False, # _upload_stream should respect user decision on overwriting
18821884
)
18831885
file_transfer_agent.execute()
18841886
self._init_result_and_meta(file_transfer_agent.result())

0 commit comments

Comments
 (0)