Introduction to INFORMATION_SCHEMA

The BigQueryINFORMATION_SCHEMA views are read-only, system-definedviews that provide metadata information about your BigQueryobjects. The following table lists allINFORMATION_SCHEMA views that you canquery to retrieve metadata information:

Resource typeINFORMATION_SCHEMA View
Access controlOBJECT_PRIVILEGES
BI EngineBI_CAPACITIES
BI_CAPACITY_CHANGES
ConfigurationsEFFECTIVE_PROJECT_OPTIONS
ORGANIZATION_OPTIONS
ORGANIZATION_OPTIONS_CHANGES
PROJECT_OPTIONS
PROJECT_OPTIONS_CHANGES
DatasetsSCHEMATA
SCHEMATA_LINKS
SCHEMATA_OPTIONS
SHARED_DATASET_USAGE
SCHEMATA_REPLICAS
SCHEMATA_REPLICAS_BY_FAILOVER_RESERVATION
JobsJOBS_BY_PROJECT
JOBS_BY_USER
JOBS_BY_FOLDER
JOBS_BY_ORGANIZATION
Jobs by timesliceJOBS_TIMELINE_BY_PROJECT
JOBS_TIMELINE_BY_USER
JOBS_TIMELINE_BY_FOLDER
JOBS_TIMELINE_BY_ORGANIZATION
Recommendations and insightsINSIGHTS
RECOMMENDATIONS
RECOMMENDATIONS_BY_ORGANIZATION
ReservationsASSIGNMENTS_BY_PROJECT
ASSIGNMENT_CHANGES_BY_PROJECT
CAPACITY_COMMITMENTS_BY_PROJECT
CAPACITY_COMMITMENT_CHANGES_BY_PROJECT
RESERVATIONS_BY_PROJECT
RESERVATION_CHANGES_BY_PROJECT
RESERVATIONS_TIMELINE_BY_PROJECT
RoutinesPARAMETERS
ROUTINES
ROUTINE_OPTIONS
Search indexesSEARCH_INDEXES
SEARCH_INDEX_COLUMNS
SEARCH_INDEX_COLUMN_OPTIONS
SEARCH_INDEX_OPTIONS
SEARCH_INDEXES_BY_ORGANIZATION
SessionsSESSIONS_BY_PROJECT
SESSIONS_BY_USER
StreamingSTREAMING_TIMELINE_BY_PROJECT
STREAMING_TIMELINE_BY_FOLDER
STREAMING_TIMELINE_BY_ORGANIZATION
TablesCOLUMNS
COLUMN_FIELD_PATHS
CONSTRAINT_COLUMN_USAGE
KEY_COLUMN_USAGE
PARTITIONS
TABLES
TABLE_OPTIONS
TABLE_CONSTRAINTS
TABLE_SNAPSHOTS
TABLE_STORAGE_BY_PROJECT
TABLE_STORAGE_BY_FOLDER
TABLE_STORAGE_BY_ORGANIZATION
TABLE_STORAGE_USAGE_TIMELINE
TABLE_STORAGE_USAGE_TIMELINE_BY_FOLDER
TABLE_STORAGE_USAGE_TIMELINE_BY_ORGANIZATION
Vector indexesVECTOR_INDEXES
VECTOR_INDEX_COLUMNS
VECTOR_INDEX_OPTIONS
ViewsVIEWS
MATERIALIZED_VIEWS
Write APIWRITE_API_TIMELINE_BY_PROJECT
WRITE_API_TIMELINE_BY_FOLDER
WRITE_API_TIMELINE_BY_ORGANIZATION

For*BY_PROJECT views, theBY_PROJECT suffix is optional. Forexample, queryingINFORMATION_SCHEMA.JOBS_BY_PROJECT andINFORMATION_SCHEMA.JOBSreturn the same results.

Note: Not allINFORMATION_SCHEMA views are supported forBigQuery Omni system tables.You can view resource metadata withINFORMATION_SCHEMA forAmazon S3andAzure Storage.

Pricing

For projects that use on-demand pricing, queries againstINFORMATION_SCHEMAviews incur a minimum of 10 MB of data processing charges, even if the bytesprocessed by the query are less than 10 MB. 10 MB is the minimumbilling amount for on-demand queries. For more information, seeOn-demand pricing.

For projects that use capacity-based pricing, queries againstINFORMATION_SCHEMAviews and tables consume your purchased BigQuery slots. For moreinformation, seecapacity-based pricing.

BecauseINFORMATION_SCHEMA queries are not cached, you are charged each timethat you run anINFORMATION_SCHEMA query, even if the query text is the sameeach time you run it.

You are not charged storage fees for theINFORMATION_SCHEMA views.

Syntax

AnINFORMATION_SCHEMA view needs to be qualified with a dataset or region.

Note: You mustspecify a location toquery anINFORMATION_SCHEMA view.Querying anINFORMATION_SCHEMA view fails with the following errorif thelocation of the query execution doesn't match the location of the dataset orregional qualifier used:
Table myproject: region-us.INFORMATION_SCHEMA.[VIEW] not found in location US

Dataset qualifier

When present, a dataset qualifier restricts results to the specified dataset.For example:

-- Returns metadata for tables in a single dataset.SELECT*FROMmyDataset.INFORMATION_SCHEMA.TABLES;

The followingINFORMATION_SCHEMA views support dataset qualifiers:

  • COLUMNS
  • COLUMN_FIELD_PATHS
  • MATERIALIZED_VIEWS
  • PARAMETERS
  • PARTITIONS
  • ROUTINES
  • ROUTINE_OPTIONS
  • TABLES
  • TABLE_OPTIONS
  • VIEWS

Region qualifier

Region qualifiers are represented using aregion-REGION syntax.Anydataset location name can be used forREGION. For example, the following region qualifiersare valid:

  • region-us
  • region-asia-east2
  • region-europe-north1

When present, a region qualifier restricts results to the specified location.Region qualifiers aren'thierarchical, which means the EU multi-region does not includeeurope-*regions nor does the US multi-region include theus-* regions. For example,the following query returns metadata for all datasets in theUS multi-regionfor the project in which the query is executing, but doesn't include datasets intheus-west1 region:

-- Returns metadata for all datasets in the US multi-region.SELECT*FROMregion-us.INFORMATION_SCHEMA.SCHEMATA;

The followingINFORMATION_SCHEMA views don't support region qualifiers:

If neither a region qualifier nor a dataset qualifier is specified, you willreceive an error.

Queries against a region-qualifiedINFORMATION_SCHEMA view run in the region that you specify, which means that you can't write a single query to join data from views in different regions. To combineINFORMATION_SCHEMA views from multiple regions, read and combine the query results locally, orcopy the resulting tables to a common region.

Project qualifier

When present, a project qualifier restricts results to the specified project.For example:

-- Returns metadata for the specified project and region.SELECT*FROMmyProject.`region-us`.INFORMATION_SCHEMA.TABLES;-- Returns metadata for the specified project and dataset.SELECT*FROMmyProject.myDataset.INFORMATION_SCHEMA.TABLES;

AllINFORMATION_SCHEMA views support project qualifiers. If a projectqualifier is not specified, the view will default to theproject in which the query is executing.

Specifying a project qualifier for organization-level views(e.g.STREAMING_TIMELINE_BY_ORGANIZATION)has no impact on the results.

Limitations

  • BigQueryINFORMATION_SCHEMA queries must be in GoogleSQLsyntax.INFORMATION_SCHEMA does not support legacy SQL.
  • INFORMATION_SCHEMA query results are not cached.
  • INFORMATION_SCHEMA views cannot be used in DDL statements.
  • INFORMATION_SCHEMA views don't contain information abouthidden datasets.
  • INFORMATION_SCHEMA queries with region qualifiers might include metadatafrom resources in that region fromdeleted datasets that are within your time travel window.
  • When you list resources from anINFORMATION_SCHEMA view, the permissions arechecked only at the parent level, not at an individual row level. Therefore,anydeny policy(preview) that conditionally targets anindividual row using tags is ignored.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-15 UTC.