是否已更改Python BigQuery API?

时间:2018-03-27 21:23:08

标签: python google-cloud-platform

我在Spyder中运行了一个先前有效的例子:

from google.cloud import bigquery
import codecs

bigquery_client = bigquery.Client('myprojectID')

query_results = bigquery_client.run_sync_query("""
SELECT
    [ my query here ]  
FROM `[...]`;""")

现在我收到错误

AttributeError: 'Client' object has no attribute 'run_sync_query'

有什么变化吗?最近我重新安装了Anaconda Spyder并重新安装了google cloud sdk和python客户端api。

1 个答案:

答案 0 :(得分:2)

请参阅this

我所做的只是谷歌(其他搜索引擎可用)“bigquery run_sync_query”并发现了。我对BigQuery的了解已经非常老了,所以我无法声称已经开始工作了!