Does `--full-refresh` truncate the table before lo...
# getting-started
s
Does
--full-refresh
truncate the table before loading the data?
e
Not really. It only ignores any state from previous elt runs. What target are you using?
s
I'm using bigquery target. I see that I can set
replication_method
as append or truncate for big query. If I want my rows to append but want to truncate only on full refresh, how can I achieve it?
e
I see. You could set the value at runtime:
Copy code
TARGET_BIGQUERY_REPLICATION_METHOD=truncate meltano elt your-tap target-bigquery --full-refresh
See https://hub.meltano.com/loaders/bigquery#replication-method
s
Thank you very much
e
Glad to help! So did it work?
s
No. It didn't work.