Mark Ginsburg
Mark Ginsburg

Reputation: 2269

has the Python BigQuery API changed?

I was running an example in Spyder that worked previously:

from google.cloud import bigquery
import codecs

bigquery_client = bigquery.Client('myprojectID')

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

Now I am getting an error

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

Has something changed? Recently I reinstalled Anaconda Spyder and reinstalled google cloud sdk and python client api.

Upvotes: 0

Views: 629

Answers (1)

cdarke
cdarke

Reputation: 44344

See this

All I did was Google (other search engines are available) "bigquery run_sync_query" and found that. My knowledge of BigQuery is very old, so I can't really claim to have worked on it!

Upvotes: 3

Related Questions