diff --git a/bigquery/client.py b/bigquery/client.py index ea5c503..d106feb 100644 --- a/bigquery/client.py +++ b/bigquery/client.py @@ -1,16 +1,16 @@ import calendar import json -from logging import getLogger from collections import defaultdict from datetime import datetime, timedelta from hashlib import sha256 from io import StringIO +from logging import getLogger from time import sleep, time import six from bigquery.errors import (BigQueryTimeoutException, JobExecutingException, JobInsertException, UnfinishedQueryException) -from googleapiclient.discovery import build, DISCOVERY_URI +from googleapiclient.discovery import DISCOVERY_URI, build from googleapiclient.errors import HttpError from httplib2 import Http @@ -583,6 +583,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: