Skip to content

Commit 155f118

Browse files
committed
SNOW-2688693: fixed on_error parameter passing in write_pandas
1 parent bd45036 commit 155f118

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/snowflake/connector/pandas_tools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,11 +592,10 @@ def drop_object(name: str, object_type: str) -> None:
592592
f"{' BINARY_AS_TEXT=FALSE' if auto_create_table or overwrite or infer_schema else ''}"
593593
f"{sql_use_logical_type}"
594594
f") "
595-
f"PURGE=TRUE ON_ERROR=?"
595+
f"PURGE=TRUE ON_ERROR='{on_error}'"
596596
)
597597
params = (
598598
target_table_location,
599-
on_error,
600599
)
601600
logger.debug(f"copying into with '{copy_into_sql}'. params: %s", params)
602601
copy_results = cursor.execute(

0 commit comments

Comments
 (0)