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`
.To run the query against a project other than your default project, add the project ID in the following format:
`PROJECT_ID`.`region-REGION_NAME`.INFORMATION_SCHEMA.ASSIGNMENTS
Replace the following:
For example, `myproject`.`region-us`.INFORMATION_SCHEMA.ASSIGNMENTS
.
The following example gets a project's currently assigned reservation and its slot capacity. This information is useful for debugging job performance by comparing the project's slot usage with the slot capacity of the reservation assigned to that project.
SELECTreservation.reservation_name,reservation.slot_capacityFROM`RESERVATION_ADMIN_PROJECT.region-REGION_NAME`.INFORMATION_SCHEMA.ASSIGNMENTS_BY_PROJECTassignmentINNERJOIN`RESERVATION_ADMIN_PROJECT.region-REGION_NAME`.INFORMATION_SCHEMA.RESERVATIONS_BY_PROJECTASreservationON(assignment.reservation_name=reservation.reservation_name)WHEREassignment.assignee_id="PROJECT_ID"ANDjob_type="QUERY";
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 2025-04-17 UTC.