Skip to main content

pipeline_updates

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

Overview

Namepipeline_updates
TypeResource
Iddatabricks_workspace.pipelines.pipeline_updates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
updateobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectpipeline_id, update_id, deployment_nameGets an update from an active pipeline.
listselectpipeline_id, deployment_namemax_results, page_token, until_update_idList updates for an active pipeline.
startexecpipeline_id, deployment_nameStarts a new update for the pipeline. If there is already an active update for the pipeline, the

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)
pipeline_idstring:param cause: :class:StartUpdateCause (optional)
update_idstringThe ID of the update.
max_resultsintegerMax number of entries to return in a single page.
page_tokenstringPage token returned by previous call
until_update_idstringIf present, returns updates until and including this update_id.

SELECT examples

Gets an update from an active pipeline.

SELECT
update
FROM databricks_workspace.pipelines.pipeline_updates
WHERE pipeline_id = '{{ pipeline_id }}' -- required
AND update_id = '{{ update_id }}' -- required
AND 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

EXEC databricks_workspace.pipelines.pipeline_updates.start 
@pipeline_id='{{ pipeline_id }}' --required,
@deployment_name='{{ deployment_name }}' --required
@@json=
'{
"cause": "{{ cause }}",
"full_refresh": {{ full_refresh }},
"full_refresh_selection": "{{ full_refresh_selection }}",
"refresh_selection": "{{ refresh_selection }}",
"rewind_spec": "{{ rewind_spec }}",
"validate_only": {{ validate_only }}
}'
;