ALTER MODEL … MODIFY VERSION

Modifies a version of a model, changing the version’s comment or metadata.

See also:

ALTER MODEL … ADD VERSION, ALTER MODEL … DROP VERSION

Syntax

ALTER MODEL [ IF EXISTS ] <name> MODIFY VERSION <version_name> SET
  [ COMMENT = '<string_literal>' ]
  [ METADATA = '<json_metadata>']
Copy

Parameters

name

Specifies the identifier of the model.

If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.

For more information, see Identifier requirements.

version_name

Specifies the identifier of the version, which must be unique within the model. Version names that contain spaces or that are case sensitive must be enclosed in double quotes. For information on identifier syntax, see Identifier requirements.

SET ...

Specifies one or more model version properties to be set.

COMMENT = 'string_literal'

Sets the comment of the version.

METADATA = 'json_metadata'

Sets the metadata of the version. Metadata is a JSON object that stores key-value pairs of your choosing.