Skip to main content

model_registry_comments

Creates, updates, deletes, gets or lists a model_registry_comments resource.

Overview

Namemodel_registry_comments
TypeResource
Iddatabricks_workspace.ml.model_registry_comments

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertdeployment_name, name, version, commentPosts a comment on a model version. A comment can be submitted either by a user or programmatically to
updateupdatedeployment_name, id, commentPost an edit to a comment on a model version.
deleteexecid, deployment_nameDeletes a comment on a model version.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)
idstringUnique identifier of an activity

INSERT examples

Posts a comment on a model version. A comment can be submitted either by a user or programmatically to

INSERT INTO databricks_workspace.ml.model_registry_comments (
name,
version,
comment,
deployment_name
)
SELECT
'{{ name }}' /* required */,
'{{ version }}' /* required */,
'{{ comment }}' /* required */,
'{{ deployment_name }}'
RETURNING
comment
;

UPDATE examples

Post an edit to a comment on a model version.

UPDATE databricks_workspace.ml.model_registry_comments
SET
id = '{{ id }}',
comment = '{{ comment }}'
WHERE
deployment_name = '{{ deployment_name }}' --required
AND id = '{{ id }}' --required
AND comment = '{{ comment }}' --required
RETURNING
comment;

Lifecycle Methods

Deletes a comment on a model version.

EXEC databricks_workspace.ml.model_registry_comments.delete 
@id='{{ id }}' --required,
@deployment_name='{{ deployment_name }}' --required
;