Here's the case:
- Our client daily uploads CSVs (overwritten) to a bucket in Google Cloud Storage (each table in a different file).
- We use BigQuery as DataSource in DataStudio
- We want to automatically transfer the CSVs to BigQuery.
The thing is, even though we've:
- Declared the tables in BigQuery with "Overwrite table" write preference option
- Configured the daily Transfers vía UI (BigQuery > Transfers) to automatically upload the CSVs from Google Cloud one hour after the files are uploaded to Google Cloud, as stated by the limitations.
The automated transfer/load is by default in "WRITE_APPEND", thus the tables are appended instead of overwritten in BigQuery.
Hence the question: How/where can we change the
configuration.load.writeDisposition = WRITE_TRUNCATE
as stated here in order to overwrite the tables when the CSVs are automatically loaded?
I think that's what we're missing.
Cheers.
bigquery.admin
. – gabi493