Database Reference
In-Depth Information
Jobs Resource
The Job resource has four main parts: job reference, which uniquely
identifies the job; configuration, which tells BigQuery what to run; statistics
that describe how the job ran; and status to tell you the current state of the
job. These components are described at a high level in
Table 5.11
.
Table 5.11
Job Resource Top-level Components
Field Type Description
jobReference object
Components of the job name. Unique within
the project. Immutable after the job has been
created.
configuration object JobConfiguration
object indicating what
operation the job should run. For example, for
a Query job, the
configuration.query
portion will be filled out with the query to run.
object JobStatus
object describing current job
state and any errors that may have
accumulated on the job.
status
object JobStatistics
object containing statistics
about how the job was run, such as when the
job started, when it completed, and how much
data it processed.
statistics
JobReference
The job reference contains two fields:
jobId
and
projectId
, as shown in
if you run a query, the project specified in the project ID is responsible for
paying for any charges incurred by the query. It doesn't matter which project
the tables being queried belong to—just the project specified in the job.
Table 5.12
Job Reference Components
Field Type Description
jobId string
ID of the job, unique within the project
projectId string
ID of the project that will be billed for the job