You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Tried to use insert overwrite with `cursor.executemany` like this:# We are using `pyformat` binding, this setting is not in our controlconn=snowflake.connector.connect( ... )
rows_to_insert= [('milk', 2), ('apple', 3), ('egg', 2)]
conn.cursor().executemany(
"INSERT OVERWRITE INTO GROCERY (ITEM, QUANTITY) values (%s, %s)",
rows_to_insert)
# Logs indicate that Snowflake connector python is running one `INSERT OVERWRITE` per row.# This defeats the purpose of `INSERT OVERWRITE`
What did you expect to see?
INSERT OVERWRITE to run as expected like INSERT does.
Can you set logging to DEBUG and collect the logs?
No response
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Cursor.executemany does not support insert overwrite
SNOW-874655: Cursor.executemany does not support insert overwrite
Jul 24, 2023
Python version
Python 3.9.17
Operating system and processor architecture
macOS-13.4.1-arm64-arm-64bit
Installed packages
What did you do?
What did you expect to see?
INSERT OVERWRITE
to run as expected likeINSERT
does.Can you set logging to DEBUG and collect the logs?
No response
The text was updated successfully, but these errors were encountered: