python-bigquery-pandas
python-bigquery-pandas copied to clipboard
CLN: Use WriteDisposition for if_exists=fail/replace/append behavior in to_gbq
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.
Taking this as part of https://github.com/googleapis/python-bigquery-pandas/issues/453