Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Documentation Issue] python example code seems out of date #1242

Closed
woojing opened this issue Nov 24, 2015 · 0 comments
Closed

[Documentation Issue] python example code seems out of date #1242

woojing opened this issue Nov 24, 2015 · 0 comments
Assignees
Labels
api: bigquery Issues related to the BigQuery API.

Comments

@woojing
Copy link

woojing commented Nov 24, 2015

Page Name: bigquery-usage
Release: 0.8.0

When I ran example code with current version of gcloud library(0.8.0), this error is occured.

Traceback (most recent call last):
  File "bigquery_test.py", line 6, in <module>
    result = client.query(query, timeout_ms=1000)
AttributeError: 'Client' object has no attribute 'query'

and query method is seems splited into run_async_query and run_sync_query.
But this document still use not existed query method with polling approach for synchronous execution.

Exporting data (async) section also has same problem.
table.export_to_storage method is move to Client.extract_table_to_storage with different arguments.

@dhermes dhermes added api: bigtable Issues related to the Bigtable API. api: bigquery Issues related to the BigQuery API. and removed api: bigtable Issues related to the Bigtable API. labels Nov 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API.
Projects
None yet
Development

No branches or pull requests

3 participants