Skip to main content

model_latest_versions

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

Overview

Namemodel_latest_versions
TypeResource
Iddatabricks_workspace.machinelearning.model_latest_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
run_idstring
user_idstring
creation_timestampinteger
current_stagestring
descriptionstring
last_updated_timestampinteger
run_linkstring
sourcestring
statusstring
status_messagestring
tagsarray
versionstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getlatestversionsselectdeployment_nameGets the latest version of a registered model.

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)

SELECT examples

Gets the latest version of a registered model.

SELECT
name,
run_id,
user_id,
creation_timestamp,
current_stage,
description,
last_updated_timestamp,
run_link,
source,
status,
status_message,
tags,
version
FROM databricks_workspace.machinelearning.model_latest_versions
WHERE deployment_name = '{{ deployment_name }}' -- required;