2017-09-27 30 views
-1

我需要在Python的,但谷歌的BigQuery模塊運行的BigQuery不存在的BigQuery Python的

from google.cloud import bigquery 
client = bigquery.Client(project='PROJECT_ID') 
query = "SELECT...." 
dataset = client.dataset('dataset') 
table = dataset.table(name='table') 
job = client.run_async_query('my-job', query) 
job.destination = table 
job.write_disposition= 'WRITE_TRUNCATE' 
job.begin() 

難道你們知道該怎麼辦的連接?

+1

你指的是什麼模塊不存在?你看到了什麼錯誤? –

+1

同意Willian - 我們需要看到錯誤。你安裝了'bigquery'嗎? – HFBrowning

+0

[使用google.cloud導入bigquery時無模塊命名雲](https://stackoverflow.com/questions/40469762/no-module-named-cloud-while-using-google-cloud-import-bigquery) – HFBrowning

回答