ALTER EXPERIMENT
statementpartialAI & MLModifies 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
| Name | Required | Description |
|---|---|---|
experiment_name | Specifies 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_name | Adds 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_name | Completes 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_name | Deletes the run with the identifier run_name. |
Usage notes
- Regarding metadata: Attention Customers should ensure that no personal data (other than for a User object), sensitive data, export-controlled data, or other regulated data is entered as metadata when using the Snowflake service. For more information, see Metadata fields in Snowflake.
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
- SET STATUS, WITH STATUS = 'CANCELLED' are not exercised by any test