nene / prettier-plugin-sql-cst

Prettier SQL plugin that uses sql-parser-cst

Home Page:https://nene.github.io/prettier-sql-playground/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BigQuery syntax change: CREATE CAPACITY / RESERVATION ASSIGNMENT

nene opened this issue · comments

Old syntax:

CREATE CAPACITY
project_id.location.commitment_id
AS JSON
capacity_json_object;

CREATE RESERVATION
project_id.location.reservation_id
AS JSON
reservation_json_object;

CREATE ASSIGNMENT
project_id.location.reservation_id.assignment_id
AS JSON
assignment_json_object;

New syntax (since January 12th 2023):

CREATE CAPACITY
`project_id.location_id.commitment_id`
OPTIONS (capacity_commitment_option_list);

CREATE RESERVATION
`project_id.location_id.reservation_id`
OPTIONS (reservation_option_list);

CREATE ASSIGNMENT
`project_id.location_id.reservation_id.assignment_id`
OPTIONS (assignment_option_list);

Wrong repo. Moved to: nene/sql-parser-cst#29