【发布时间】:2016-10-22 12:18:16
【问题描述】:
我知道:查询的结果会保存在一个临时表中。但是如何让它的名字在其他查询中使用。
from googleapiclient.discovery import build
from googleapiclient.errors import HttpError
from oauth2client.client import GoogleCredentials
def test():
project_id = "598330041668"
credentials = GoogleCredentials.get_application_default()
bigquery_service = build('bigquery', 'v2', credentials=credentials)
# [START run_query]
query_request = bigquery_service.jobs()
query_data = {
'query': (
'SELECT * '
'FROM [test.names];')
}
query_response = query_request.query(
projectId=project_id,
body=query_data).execute()
# [END run_query]
【问题讨论】:
-
粘贴您的代码...
-
嗨@SmitaAhinave,我添加了代码。谢谢:)
标签: python google-bigquery temp-tables