BigQuery: add parent_job
parameter to list_jobs
#9190
Labels
api: bigquery
Issues related to the BigQuery API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
With the scripting feature (alpha), a single query job can initiate several sub-jobs. These job resources are not embedded in the initial job. Instead, you must populate the
parentJobId
query parameter to the BigQuery jobs list API.Describe the solution you'd like
I propose a new
parent_job
parameter toClient.list_jobs
.*Job
object. Use the job ID from the job object. Also, use the location from the job object.Describe alternatives you've considered
We could make a
list_children()
method on the job classes, but we'd still need to updatelist_jobs
to support it. Let's start just updatinglist_jobs
for now.Additional context
Example from the alpha docs.
BigQuery’s scripting feature enables you to send multiple statements to BigQuery in one request, to use variables, and to use control flow statements such as IF and WHILE. For example, you can declare a variable, assign a value to it, and then reference it in a third statement:
For projects that have enrolled in the scripting alpha, BigQuery interprets any request with multiple statements as a script, unless the statements comprise some number of CREATE TEMP FUNCTION statements followed by a query.
The text was updated successfully, but these errors were encountered: