From b9bbe6d814b461d98a4337f54720c82dd4305b23 Mon Sep 17 00:00:00 2001 From: BenoitFb Date: Thu, 3 Nov 2016 18:29:42 +0100 Subject: [PATCH] Update client.py add tableId=table to enable update / patch tables --- bigquery/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bigquery/client.py b/bigquery/client.py index 927345c..bab94f2 100644 --- a/bigquery/client.py +++ b/bigquery/client.py @@ -617,6 +617,7 @@ def update_table(self, dataset, table, schema): result = self.bigquery.tables().update( projectId=self.project_id, datasetId=dataset, + tableId=table, body=body ).execute() if self.swallow_results: @@ -664,6 +665,7 @@ def patch_table(self, dataset, table, schema): result = self.bigquery.tables().patch( projectId=self.project_id, datasetId=dataset, + tableId=table, body=body ).execute() if self.swallow_results: