-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-992383: overwrite=True does not truncate table, although documentation says otherweise #1831
Comments
@jan-who why do you expect the sequence
This is the expected behavior. Are you seeing anything different? |
Because that is what technically happened. I debugged the sequence of
The expected behavior is a truncate of the table to get rid of the old values, not to drop the table and have a new table created with the same name. Although the result is pretty much the same, the way to achieve this differ, and in my scenario I do not have "drop table"-rights, but I do have "truncate table"-rights. Plus the method should technically do what the documentation says it does 🙂 |
@jan-who thank you for the explanation. |
fix merged in #1833 |
Python version
3.10.13
Operating system and processor architecture
macOS-14.2-arm64-arm-64bit
Installed packages
What did you do?
What did you expect to see?
The table
RAW.DWD.TEST
was dropped and the new transient tableRAW.DWD.<random string>
CREATED and then renamed toRAW.DWD.TEST
.From the documentation of
write_pandas()
:Either the documentation should be updated, or the truncate-functionality should be added.
overwrite=True, auto_create_table=False
does look wrong in its functionality.Can you set logging to DEBUG and collect the logs?
The text was updated successfully, but these errors were encountered: