Skip to main content

pipeline_updates

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

Overview

Namepipeline_updates
TypeResource
Iddatabricks_workspace.deltalivetables.pipeline_updates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cluster_idstring
pipeline_idstring
update_idstring
causestring
configobject
creation_timeinteger
full_refreshboolean
full_refresh_selectionarray
refresh_selectionarray
statestring
validate_onlyboolean

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listupdatesselectdeployment_nameList updates for an active pipeline.
getupdateselectdeployment_nameGets an update from an active pipeline.
startupdateexecdeployment_nameStarts a new update for the pipeline. If there is already an active update for the pipeline, the request will fail and the active update will remain running.

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

List updates for an active pipeline.

SELECT
cluster_id,
pipeline_id,
update_id,
cause,
config,
creation_time,
full_refresh,
full_refresh_selection,
refresh_selection,
state,
validate_only
FROM databricks_workspace.deltalivetables.pipeline_updates
WHERE deployment_name = '{{ deployment_name }}' -- required;

Lifecycle Methods

Starts a new update for the pipeline. If there is already an active update for the pipeline, the request will fail and the active update will remain running.

EXEC databricks_workspace.deltalivetables.pipeline_updates.startupdate 
@deployment_name='{{ deployment_name }}' --required
@@json=
'{
"full_refresh": {{ full_refresh }},
"validate_only": {{ validate_only }},
"cause": "{{ cause }}",
"refresh_selection": "{{ refresh_selection }}",
"full_refresh_selection": "{{ full_refresh_selection }}"
}';