The ALTER MODEL statement

ALTER MODEL statement

To update a model in BigQuery, use the BigQuery ML ALTER MODEL statement.

For information about supported model types of each SQL statement and function, and all supported SQL statements and functions for each model type, read End-to-end user journey for each model.

ALTER MODEL syntax

ALTER MODEL [IF EXISTS] <model_name> SET OPTIONS (key=value, …);

Options table
OPTION_NAMEOPTION_TYPEOPTION_VALUE
vertex_ai_model_idSTRINGThe Vertex AI model ID to register the model with. To learn more, see Register an existing BigQuery ML model to the Model Registry
expiration_timestampTIMESTAMPThe time when this model expires.
kms_key_nameSTRINGThe name of the Cloud KMS key used to encrypt the model.
descriptionSTRINGA description of the model.
labelsARRAY<STRUCT<STRING, STRING>>An array of STRUCT's that represent the labels on the model.