We have a BigQuery query like:
create or replace table `{project}`.`{dataset}`.`{table}`
partition by date
select {...}
If we run this query a few times in a day, we get an error:
Quota exceeded: Your table exceeded quota for Number of partition modifications to a column partitioned table. For more information, see https://cloud.google.com/bigquery/troubleshooting-errors
I've previously loaded partitioned tables with bq load --replace
and don't remember having similar errors — suggesting the quota resets for the new table.
How does this work? Does create or replace
use a cumulative quota for that table name, but bq load --replace
resets the quota on each run?
Is it expected behaviour for ‘CREATE OR REPLACE’ to contribute towards a previous/overwritten Partition Table's ‘maximum number of partition modifications’ quota?
Why then does a' bq load --replace' not affect the partition table quota?