1

I'm loading data into BQ partitioned table from GCS. Every day one date partition. How I can use WRITE_TRANCATE for partition, not for the whole table? I want to overwrite partition data. How it should be implemented?

I'm using code like this https://cloud.google.com/bigquery/docs/samples/bigquery-load-table-partitioned

1 Answer 1

1

Try to specify the partition you want to overwrite (instead of a whole table):

table_id = "your-project.your_dataset.your_table_name$20210527"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.