ALTER EXPERIMENT

statementpartialAI & ML

docs.snowflake.com ↗

Object: EXPERIMENT

Modifies the properties of an existing experiment.

Syntax

supportedpartialnot supportednot scored

ALTER EXPERIMENT <experiment_name> ADD RUN <run_name>

ALTER EXPERIMENT <experiment_name> COMMIT RUN <run_name>
  [ WITH STATUS = { 'FINISHED' | 'FAILED' | 'CANCELLED' } ]

ALTER EXPERIMENT <experiment_name> MODIFY RUN <run_name> SET STATUS = { 'RUNNING' | 'PAUSED' }

ALTER EXPERIMENT <experiment_name> DROP RUN <run_name>

Parameters

NameRequiredDescription
experiment_nameSpecifies the identifier for the experiment to alter. 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.
ADD RUN run_nameAdds a new run with the identifier run_name; must be unique for the runs in experiment experiment_name. For information on how to manually conduct an experiment run in SQL, see Start an experiment run. 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.
COMMIT RUN run_nameCompletes the run with the identifier run_name for experiment experiment_name. Committed runs can’t be altered. 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. For information on how to retrieve the results and artifacts of an experiment run, see Complete a run.
WITH STATUS = { 'FINISHED' | 'FAILED' | 'CANCELLED' }Sets the final status of the committed run. For information about each status, see Run statuses. Default: 'FINISHED'
MODIFY RUN run_name SET STATUS = { 'RUNNING' | 'PAUSED' }Pauses a running run or resumes a paused run. You can only log metrics, parameters, and artifacts to a run with the RUNNING status. You can’t change the status of a committed run.
DROP RUN run_nameDeletes the run with the identifier run_name.

Usage notes

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes MODIFY | Experiment | Operating on an object in a schema requires at least one privilege on the parent database and at least one privilege on the parent schema. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

Known gaps

Parts not fully supported, and recorded divergences from Snowflake.

See also

Referenced by