Skip to main content

bi_reservation

Creates, updates, deletes, gets or lists a bi_reservation resource.

Overview

Namebi_reservation
TypeResource
Idgoogle.bigqueryreservation.bi_reservation

Fields

NameDatatypeDescription
namestringThe resource name of the singleton BI reservation. Reservation names have the form projects/{project_id}/locations/{location_id}/biReservation.
preferredTablesarrayPreferred tables to use BI capacity for.
sizestringSize of a reservation, in bytes.
updateTimestringOutput only. The last update timestamp of a reservation.

Methods

NameAccessible byRequired ParamsDescription
get_bi_reservationSELECTlocationsId, projectsIdRetrieves a BI reservation.
update_bi_reservationUPDATElocationsId, projectsIdUpdates a BI reservation. Only fields specified in the field_mask are updated. A singleton BI reservation always exists with default size 0. In order to reserve BI capacity it needs to be updated to an amount greater than 0. In order to release BI capacity reservation size must be set to 0.

SELECT examples

Retrieves a BI reservation.

SELECT
name,
preferredTables,
size,
updateTime
FROM google.bigqueryreservation.bi_reservation
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

UPDATE example

Updates a bi_reservation resource.

/*+ update */
UPDATE google.bigqueryreservation.bi_reservation
SET
name = '{{ name }}',
size = '{{ size }}',
preferredTables = '{{ preferredTables }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';