Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Must pass in tableId as a parameter to update_table #96

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions bigquery/client.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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:
Expand Down