Skip to content

Commit 4d880e4

Browse files
committed
Merge pull request #1243 from tseaver/1242-bigquery-usage_docs_lag_api_changes
Catch BQ usage docs up to client API speling change.
2 parents b0da4a4 + b571ff0 commit 4d880e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/bigquery-usage.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ Run a query which can be expected to complete within bounded time:
282282
>>> query = """\
283283
SELECT count(*) AS age_count FROM dataset_name.person_ages
284284
"""
285-
>>> results = client.query(query, timeout_ms=1000)
285+
>>> results = client.run_sync_query(query, timeout_ms=1000)
286286
>>> retry_count = 100
287287
>>> while retry_count > 0 and not results.job_complete:
288288
... retry_count -= 1
@@ -314,9 +314,9 @@ Background a query, loading the results into a table:
314314
"""
315315
>>> dataset = client.dataset('dataset_name')
316316
>>> table = dataset.table(name='person_ages')
317-
>>> job = client.query_async(query,
318-
... destination=table,
319-
... write_disposition='truncate')
317+
>>> job = client.run_async_query(query,
318+
... destination=table,
319+
... write_disposition='truncate')
320320
>>> job.job_id
321321
'e3344fba-09df-4ae0-8337-fddee34b3840'
322322
>>> job.type

0 commit comments

Comments
 (0)