ALTER MODEL Statement in Confluent Cloud for Apache Flink¶
Confluent Cloud for Apache Flink®️ enables real-time inference and prediction with AI models. Use the CREATE MODEL statement to register an AI model.
Syntax¶
-- Rename a model.
ALTER MODEL [IF EXISTS][catalog_name.][database_name.]model_name
RENAME TO [catalog_name.][database_name.]new_model_name
-- Alter model options.
ALTER MODEL [IF EXISTS] [catalog_name.][database_name.]model_name[$version_id]
SET (key1=val1[, key2=val2]...)
Description¶
Rename an AI model or change model options.
Use the <model_name>$<model_version>
syntax to change a specific version of
a model. For more information, see
Model versioning.
Examples¶
-- Rename a model.
ALTER MODEL `my_model` RENAME TO `my_new_model`
-- Check for model existence and rename if it exists.
ALTER MODEL IF EXISTS `my_model` RENAME TO `my_new_model`
-- Change options for version 2.
ALTER MODEL `my_model$2` SET (
tag = 'prod',
description = "new_description"
);