I'm using BigQuery Python Client version google-cloud-bigquery==2.15.0 and sometimes when I update (PATCH) a table via:
client.update_table(table, ["labels", "description"])
I got the following error
PreconditionFailed('PATCH
https://bigquery.googleapis.com/bigquery/v2/projects/my-proj/datasets/my-ds/tables/my-table?prettyPrint=false
: Precondition check failed.')
There is a closed issue https://github.com/googleapis/google-cloud-python/issues/5588 on Github related to this. Is has been resolved in a PR in 2018. But I'm still getting the error.
Any idea? Should I just upgrade to the latest version?