Stay organized with collectionsSave and categorize content based on your preferences.
JOBS_BY_USER view
TheINFORMATION_SCHEMA.JOBS_BY_USERview contains near real-time
metadata about the BigQuery jobs submitted by
the current user in the current project.
Required role
To get the permission that
you need to query theINFORMATION_SCHEMA.JOBS_BY_USERview,
ask your administrator to grant you theBigQuery User(roles/bigquery.user)
IAM role on your project.
For more information about granting roles, seeManage access to projects, folders, and organizations.
This predefined role contains thebigquery.jobs.listpermission,
which is required to
query theINFORMATION_SCHEMA.JOBS_BY_USERview.
Specifies the high level reason why a job was created. Possible values are:
REQUESTED: job creation was requested.
LONG_RUNNING: the query request ran beyond a system defined timeout
specified by thetimeoutMs
field in theQueryRequest. As a result it was considered a long running
operation for which a job was created.
LARGE_RESULTS: the results from the query cannot fit in the in-line
response.
OTHER: the system has determined that the query needs to be executed as a
job.
job_id
STRING
The ID of the job if a job was created. Otherwise, the query ID of a query using optional
job creation mode. For example,bquxjob_1234.
The type of the job. Can beQUERY,LOAD,EXTRACT,COPY, orNULL. ANULLvalue indicates a background
job.
labels
RECORD
Array of labels applied to the job as key-value pairs.
parent_job_id
STRING
ID of the parent job, if any.
priority
STRING
The priority of this job. Valid values includeINTERACTIVEandBATCH.
project_id
STRING
(Clustering column) The ID of the project.
project_number
INTEGER
The number of the project.
query
STRING
SQL query text. Only theJOBS_BY_PROJECTview has the query
column.
referenced_tables
RECORD
Array oftablesreferenced by the job. Only populated for query jobs that are not cache hits.
reservation_id
STRING
Name of the primary reservation assigned to this job,
in the formatRESERVATION_ADMIN_PROJECT:RESERVATION_LOCATION.RESERVATION_NAME. In this output:
RESERVATION_ADMIN_PROJECT: the name of the Google Cloud project that
administers the reservation
RESERVATION_LOCATION: the location of the reservation
RESERVATION_NAME: the name of the reservation
edition
STRING
The edition associated with the reservation assigned to this job. For more information about editions, seeIntroduction to BigQuery editions.
session_info
RECORD
Details about thesessionin which this job ran, if any.
start_time
TIMESTAMP
The start time of this job, in milliseconds since the epoch. This field represents the
time when the job transitions from thePENDINGstate to eitherRUNNINGorDONE.
state
STRING
Running state of the job. Valid states includePENDING,RUNNING, andDONE.
statement_type
STRING
The type of query statement. For example,DELETE,INSERT,SCRIPT,SELECT, orUPDATE. SeeQueryStatementTypefor list of valid values.
timeline
RECORD
Query
timelineof the job. Contains snapshots of query execution.
total_bytes_billed
INTEGER
If the project is configured to useon-demand
pricing, then this field contains the total bytes billed for the
job. If the project is configured to useflat-rate
pricing, then you are not billed for bytes and this field is
informational only.
(Clustering column) Email address or service account of the user who
ran the job.
query_info.resource_warning
STRING
The warning message that appears if the resource usage during query processing is above the internal threshold of the system. A successful query job can have theresource_warningfield populated. Withresource_warning, you get additional data points to optimize your queries and to set up monitoring for performance trends of an equivalent set of queries by usingquery_hashes.
query_info.query_hashes.normalized_literals
STRING
Contains the hash value of the query.normalized_literalsis a hexadecimalSTRINGhash that ignores comments, parameter values, UDFs, and literals.
The hash value will differ when underlying views change, or if the query implicitly
references columns, such asSELECT *, and the table schema changes. This field appears for successfulGoogleSQLqueries that are not cache hits.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eINFORMATION_SCHEMA.JOBS_BY_USER\u003c/code\u003e view provides near real-time metadata about BigQuery jobs submitted by the current user within the current project.\u003c/p\u003e\n"],["\u003cp\u003eTo query this view, users require the BigQuery User (\u003ccode\u003eroles/bigquery.user\u003c/code\u003e) IAM role, which includes the \u003ccode\u003ebigquery.jobs.list\u003c/code\u003e permission, or an equivalent permission from a custom or another predefined role.\u003c/p\u003e\n"],["\u003cp\u003eThe underlying data of this view is partitioned by \u003ccode\u003ecreation_time\u003c/code\u003e and clustered by \u003ccode\u003eproject_id\u003c/code\u003e and \u003ccode\u003euser_email\u003c/code\u003e, offering a structured approach to accessing job metadata.\u003c/p\u003e\n"],["\u003cp\u003eThis view contains job history for the past 180 days, along with currently running jobs, allowing for monitoring and analysis of job performance over time.\u003c/p\u003e\n"],["\u003cp\u003eQueries against this view must use a region qualifier, and the location of the query execution must match the region of the \u003ccode\u003eINFORMATION_SCHEMA\u003c/code\u003e view, which you can use to find a summary cost of your query jobs.\u003c/p\u003e\n"]]],[],null,["# JOBS_BY_USER view\n=================\n\nThe `INFORMATION_SCHEMA.JOBS_BY_USER` view contains near real-time\nmetadata about the BigQuery jobs submitted by\nthe current user in the current project.\n\nRequired role\n-------------\n\n\nTo get the permission that\nyou need to query the `INFORMATION_SCHEMA.JOBS_BY_USER` view,\n\nask your administrator to grant you the\n\n\n[BigQuery User](/iam/docs/roles-permissions/bigquery#bigquery.user) (`roles/bigquery.user`)\nIAM role on your project.\n\n\nFor more information about granting roles, see [Manage access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access).\n\n\nThis predefined role contains the\n` bigquery.jobs.list`\npermission,\nwhich is required to\nquery the `INFORMATION_SCHEMA.JOBS_BY_USER` view.\n\n\nYou might also be able to get\nthis permission\nwith [custom roles](/iam/docs/creating-custom-roles) or\nother [predefined roles](/iam/docs/roles-overview#predefined).\n\nFor more information about BigQuery permissions, see\n[Access control with IAM](/bigquery/docs/access-control).\n\nSchema\n------\n\nThe underlying data is partitioned by the `creation_time` column and\nclustered by `project_id` and `user_email`.\n\nThe `INFORMATION_SCHEMA.JOBS_BY_USER` view has the following schema:\n\nData retention\n--------------\n\nThis view contains currently running jobs and the job history of the past 180\ndays.\n\nScope and syntax\n----------------\n\nQueries against this view must include a [region qualifier](/bigquery/docs/information-schema-intro#syntax).\nThe following table explains the region scope for this view:\n\nReplace the following:\n\n- Optional: \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your Google Cloud project. If not specified, the default project is used.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: any [dataset region name](/bigquery/docs/locations). For example, ```region-us```.\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n | **Note:** You must use [a region qualifier](/bigquery/docs/information-schema-intro#region_qualifier) to query `INFORMATION_SCHEMA` views. The location of the query execution must match the region of the `INFORMATION_SCHEMA` view.\n\n\u003cbr /\u003e\n\n| **Note:** When you query `INFORMATION_SCHEMA.JOBS_BY_USER` to find a summary cost of query jobs, exclude the `SCRIPT` statement type, otherwise some values might be counted twice. The `SCRIPT` row includes summary values for all child jobs that were executed as part of this job."]]