Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Incomplete job metadata when quering BigQuery using Node client

Hey,

We use the Node.js client to query BigQuery with a query job. Afterward, we access `job.metadata.statistics` to read metadata such as `startTime`, `endTime`, and `query.totalBytesBilled`. However, sometimes these fields are not defined, even though there are no errors and results are returned. We haven't been able to reliably replicate this issue.

Why might the job metadata be incomplete for successful queries?

Reference code:

 

const [job] = await bigQueryClient.createQueryJob({query})
const results = await job.getQueryResults()
// job.metadata.statistics sometimes doesn't contain startTime, endTime, query.totalBytesBilled

 

0 0 136
0 REPLIES 0