model_version_comments
Operations on a model_version_comments
resource.
Overview
Name | model_version_comments |
Type | Resource |
Id | databricks_workspace.machinelearning.model_version_comments |
SELECT
not supported for this resource, see the methods section for supported operations.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
createcomment | INSERT | deployment_name | Posts 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. |
deletecomment | DELETE | id, deployment_name | Deletes a comment on a model version. |
updatecomment | UPDATE | deployment_name | Post 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.
- model_version_comments
- Manifest
/*+ create */
INSERT INTO databricks_workspace.machinelearning.model_version_comments (
deployment_name,
data__name,
data__version,
data__comment
)
SELECT
'{{ deployment_name }}',
'{{ name }}',
'{{ version }}',
'{{ comment }}'
;
- name: your_resource_model_name
props:
- name: name
value: search_ads_model
- name: version
value: '1'
- name: comment
value: This version is great!
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 }}';