Retrieves the results of a query job.
Arguments
Parameters | |
---|---|
jobId |
[Required] Job ID of the query job
|
projectId |
[Required] Project ID of the query job
|
location |
The geographic location where the job should run. Required except for US and EU. See details at https://cloud.google.com/bigquery/docs/locations#specifying_your_location.
|
maxResults |
Maximum number of results to read
|
pageToken |
Page token, returned by a previous call, to request the next page of results
|
startIndex |
Zero-based index of the starting row
|
timeoutMs |
How long to wait for the query to complete, in milliseconds, before returning. Default is 10 seconds. If the timeout passes before the job completes, the 'jobComplete' field in the response will be false
|
Raised exceptions
Exceptions | |
---|---|
ConnectionError |
In case of a network problem (such as DNS failure or refused connection). |
HttpError |
If the response status is >= 400 (excluding 429 and 503). |
TimeoutError |
If a long-running operation takes longer to finish than the specified timeout limit. |
TypeError |
If an operation or function receives an argument of the wrong type. |
ValueError |
If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout. |
Response
If successful, the response contains an instance of GetQueryResultsResponse
.
Subworkflow snippet
Some fields might be optional or required. To identify required fields, refer to the API documentation.
YAML
- getQueryResults: call: googleapis.bigquery.v2.jobs.getQueryResults args: jobId: ... projectId: ... location: ... maxResults: ... pageToken: ... startIndex: ... timeoutMs: ... result: getQueryResultsResult
JSON
[ { "getQueryResults": { "call": "googleapis.bigquery.v2.jobs.getQueryResults", "args": { "jobId": "...", "projectId": "...", "location": "...", "maxResults": "...", "pageToken": "...", "startIndex": "...", "timeoutMs": "..." }, "result": "getQueryResultsResult" } } ]