globocom / gcloud-utils

Global package for Cloud Management in Python
https://gcloud-utils.readthedocs.io/en/latest/
Apache License 2.0
16 stars 23 forks source link

gcs_to_table don't overwrite tables #37

Closed saracuza closed 4 years ago

saracuza commented 4 years ago

Description

The issue is that gcs_to_table isn't working properly. At the line 68 it is said that the write disposition policy is WRITE_TRUNCATE, so it should overwrite the old table when it exists.

Files

./cli/gcs_to_table ./gcloud_utils/bigquery/bigquery.py

To Reproduce

1 - Use gcs_to_table to create a new table on bigquery with a file on GCS. 2 - Do step 1 again and the error will happen.