The ALTER MODEL statement
ALTER MODEL
statement
To update a model in BigQuery, use the BigQuery ML ALTER MODEL
statement.
For more information about supported SQL statements and functions for different model types, see the following documents:
- End-to-end user journeys for generative AI models
- End-to-end user journeys for time series forecasting models
- End-to-end user journeys for ML models
- End-to-end user journeys for imported models
ALTER MODEL
syntax
ALTER MODEL [IF EXISTS] <model_name> SET OPTIONS (key=value, …);
Options table
OPTION_NAME | OPTION_TYPE | OPTION_VALUE |
---|---|---|
vertex_ai_model_id | STRING | The Vertex AI model ID to register the model with. To learn more, see Register an existing BigQuery ML model to the Model Registry |
expiration_timestamp | TIMESTAMP | The time when this model expires. |
kms_key_name | STRING | The name of the Cloud KMS key used to encrypt the model. |
description | STRING | A description of the model. |
labels | ARRAY<STRUCT<STRING, STRING>> | An array of STRUCT 's that represent the labels on the model. |