This repository was archived by the owner on Mar 23, 2026. It is now read-only.
Description Environment details
Specify the API at the beginning of the title (for example, "BigQuery: ...")
General, Core, and Other are also allowed as types
OS type and version: Linux, Ubuntu 19.10
Java version: 1.8.0_232-ea
google-cloud-java version(s): 1.101.1
Steps to reproduce
Choose a job id with child jobs.
Run the below.
Client lists ALL jobs, not just the (in my case, 3) children of the parent job. It looks as if the JobListOption.parentJobId is ignored.
Code example
@ Test
public void testListChildren () throws Exception {
String jobId = // ...
BigQuery bigQuery = BigQueryOptions .getDefaultInstance ().getService ();
Iterable <? extends Job > jobChildren = bigQuery .listJobs (
BigQuery .JobListOption .parentJobId (jobId )
).iterateAll ();
for (Job job : jobChildren ) {
job = job .reload (BigQuery .JobOption .fields (BigQuery .JobField .CONFIGURATION , BigQuery .JobField .ID , BigQuery .JobField .STATISTICS , BigQuery .JobField .STATUS ));
LOG .debug ("Child job: " + job .getJobId ());
LOG .debug ("Child's parent is " + job .getStatistics ().getParentJobId ());
}
}
Any additional information below
(Edited: Calling reload() causes the job to show a parentId, but still lists jobs NOT under the given parent)
Reactions are currently unavailable
Environment details
General, Core, and Other are also allowed as types
Steps to reproduce
Choose a job id with child jobs.
Run the below.
Code example
Any additional information below
(Edited: Calling reload() causes the job to show a parentId, but still lists jobs NOT under the given parent)