The INFORMATION_SCHEMA.SCHEMATA_REPLICAS_BY_FAILOVER_RESERVATION view contains
information about schemata replicas associated with a failover reservation. The
INFORMATION_SCHEMA.SCHEMATA_REPLICAS_BY_FAILOVER_RESERVATION view is scoped to
the project of the failover reservation, as opposed to the
INFORMATION_SCHEMA.SCHEMATA_REPLICAS
view that is scoped to the
project that contains the dataset.
To get the permissions that
you need to query the INFORMATION_SCHEMA.SCHEMATA_REPLICAS_BY_FAILOVER_RESERVATION view,
ask your administrator to grant you the
BigQuery Resource Viewer (roles/bigquery.resourceViewer) IAM role on the project.
For more information about granting roles, see Manage access to projects, folders, and organizations.
You might also be able to get the required permissions through custom roles or other predefined roles.
INFORMATION_SCHEMA.SCHEMATA_REPLICAS_BY_FAILOVER_RESERVATION
view has the following schema:
failover_reservation_project_idSTRINGfailover_reservation_nameSTRINGcatalog_nameSTRINGschema_nameSTRINGreplica_nameSTRINGlocationSTRINGreplica_primary_assignedBOOLTRUE, the replica has the primary assignment. When you change
a secondary replica to a primary, this state takes effect immediately.replica_primary_assignment_completeBOOLTRUE, the primary assignment is complete.
If the value is FALSE, the replica is not (yet) the primary
replica, even if replica_primary_assigned equals
TRUE. For information about how long it takes for a secondary replica to
become a primary,
see Promote the secondary replica.creation_timeTIMESTAMPcreation_complete equals TRUE. The value of
creation_time is set before creation_complete equals
TRUE.creation_completeBOOLTRUE, the initial full sync of the
primary replica to the secondary replica is complete.replication_timeTIMESTAMPThe value for replication_time indicates the staleness
of the dataset.
Some tables in the replica might be ahead of this timestamp. This value is only visible in the secondary region.
If the dataset contains a table with streaming data, the value of replication_time will not be accurate.
sync_statusJSONNULL if the replica is a primary replica or the dataset doesn't use replication.replica_primary_assignment_timeTIMESTAMPreplica_primary_assignment_completion_timeTIMESTAMPFor stability, we recommend that you explicitly list columns in your information schema queries instead of
using a wildcard (SELECT *). Explicitly listing columns prevents queries from
breaking if the underlying schema changes.
Queries against this view must include a region qualifier. The following table explains the region scope for this view:
| View name | Resource scope | Region scope |
|---|---|---|
[RESERVATION_PROJECT_ID.]`region-REGION`.INFORMATION_SCHEMA.SCHEMATA_REPLICAS_BY_FAILOVER_RESERVATION[_BY_PROJECT] |
Project level | REGION |
PROJECT_ID: the ID of your
Google Cloud project. If not specified, the default project is used.
REGION: any dataset region name.
For example, `region-us`.
This section lists example queries of the
INFORMATION_SCHEMA.SCHEMATA_REPLICAS_BY_FAILOVER_RESERVATION view.
Example: List all replicated datasets in a region
The following example lists all the replicated datasets in the US region:
SELECT * FROM `region-us`.INFORMATION_SCHEMA.SCHEMATA_REPLICAS_BY_FAILOVER_RESERVATION WHERE failover_reservation_name = "failover_reservation";
The result is similar to the following:
+--------------+--------------+--------------+----------+--------------------------+-------------------------------------+---------------------+-------------------+---------------------+---------------------------------+---------------------------+-------------------------------------------------------------------------------+
| catalog_name | schema_name | replica_name | location | replica_primary_assigned | replica_primary_assignment_complete | creation_time | creation_complete | replication_time | failover_reservation_project_id | failover_reservation_name | sync_status |
+--------------+--------------+--------------+----------+--------------------------+-------------------------------------+---------------------+-------------------+---------------------+---------------------------------+---------------------------+-------------------------------------------------------------------------------+
| project2 | test_dataset | us-east4 | us-east4 | true | true | 2024-05-09 20:34:06 | true | NULL | project1 | failover_reservation | NULL |
| project2 | test_dataset | us | US | false | false | 2024-05-09 20:34:05 | true | 2024-05-10 18:31:06 | project1 | failover_reservation | {"last_completion_time":"2024-06-06 18:31:06","error_time":null,"error":null} |
+--------------+--------------+--------------+----------+--------------------------+-------------------------------------+---------------------+-------------------+---------------------+---------------------------------+---------------------------+-------------------------------------------------------------------------------+
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-06-09 UTC.