python-bigquery-pandas icon indicating copy to clipboard operation
python-bigquery-pandas copied to clipboard

CLN: Use WriteDisposition for if_exists=fail/replace/append behavior in to_gbq

Open tswast opened this issue 6 years ago • 1 comments

Now that to_gbq is using load jobs instead of streaming to write to table, it could use the write disposition parameter to perform this behavior.

I believe by doing so we would unlock https://github.com/pydata/pandas-gbq/issues/43 since using write disposition could replace just one partition, but the current logic of deleting and recreating a table cannot handle partitions.

tswast avatar Feb 12 '18 04:02 tswast

Taking this as part of https://github.com/googleapis/python-bigquery-pandas/issues/453

tswast avatar Jan 05 '22 20:01 tswast