File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments