Skip to main content

feature_lineage

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

Overview

Namefeature_lineage
TypeResource
Iddatabricks_workspace.ml.feature_lineage

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
feature_specsarray
modelsarrayList of Unity Catalog models that were trained on this feature.
online_featuresarrayList of online features that use this feature as source.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecttable_name, feature_name, deployment_nameGet Feature Lineage.

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)
feature_namestringThe name of the feature.
table_namestringThe full name of the feature table in Unity Catalog.

SELECT examples

Get Feature Lineage.

SELECT
feature_specs,
models,
online_features
FROM databricks_workspace.ml.feature_lineage
WHERE table_name = '{{ table_name }}' -- required
AND feature_name = '{{ feature_name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;