Skip to main content

model_version_comments

Operations on a model_version_comments resource.

Overview

Namemodel_version_comments
TypeResource
Iddatabricks_workspace.machinelearning.model_version_comments

SELECT not supported for this resource, see the methods section for supported operations.

Methods

NameAccessible byRequired ParamsDescription
createcommentINSERTdeployment_namePosts a comment on a model version. A comment can be submitted either by a user or programmatically to display relevant information about the model. For example, test results or deployment errors.
deletecommentDELETEid, deployment_nameDeletes a comment on a model version.
updatecommentUPDATEdeployment_namePost an edit to a comment on a model version.

INSERT example

Use the following StackQL query and manifest file to create a new model_version_comments resource.

/*+ create */
INSERT INTO databricks_workspace.machinelearning.model_version_comments (
deployment_name,
data__name,
data__version,
data__comment
)
SELECT
'{{ deployment_name }}',
'{{ name }}',
'{{ version }}',
'{{ comment }}'
;

UPDATE example

Updates a model_version_comments resource.

/*+ update */
-- replace field1, field2, etc. with the fields you want to update
UPDATE databricks_workspace.machinelearning.model_version_comments
SET field1 = '{{ value1 }}',
field2 = '{{ value2 }}', ...
WHERE deployment_name = '{{ deployment_name }}';

DELETE example

Deletes a model_version_comments resource.

/*+ delete */
DELETE FROM databricks_workspace.machinelearning.model_version_comments
WHERE id = '{{ id }}' AND
deployment_name = '{{ deployment_name }}';