Skip to content

fix: honour overwrite in write_pandas - #377

Open
Sanjays2402 wants to merge 1 commit into
tekumara:mainfrom
Sanjays2402:fix/write-pandas-overwrite
Open

fix: honour overwrite in write_pandas#377
Sanjays2402 wants to merge 1 commit into
tekumara:mainfrom
Sanjays2402:fix/write-pandas-overwrite

Conversation

@Sanjays2402

Copy link
Copy Markdown

Closes #290

write_pandas accepted an overwrite parameter but never used it, so rows were always appended. With overwrite=True the table is now truncated first, or dropped and recreated when auto_create_table is also set, matching snowflake-connector-python.

This change was prepared with AI assistance; the regression tests were run locally and fail without the fix.

write_pandas accepted an overwrite parameter but never used it, so data was
always appended. With overwrite=True the table is now truncated first, or
dropped and recreated when auto_create_table is also set, matching the
snowflake-connector-python behaviour.

Closes tekumara#290
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Detail Bug] write_pandas ignores overwrite=True; data is always appended

1 participant