fix big_query.py google api import error (#5482)

This commit is contained in:
case-k-git 2021-05-14 22:47:38 +09:00 committed by GitHub
parent 8cac6b555c
commit e62de4e4c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ class BigQuery(BaseQueryRunner):
http = httplib2.Http(timeout=settings.BIGQUERY_HTTP_TIMEOUT)
http = creds.authorize(http)
return build("bigquery", "v2", http=http)
return build("bigquery", "v2", http=http, cache_discovery=False)
def _get_project_id(self):
return self.configuration["projectId"]