Skip to main content

pipelines

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

Overview

Namepipelines
TypeResource
Iddatabricks_workspace.deltalivetables.pipelines

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
cluster_idstring
pipeline_idstring
creator_user_namestring
run_as_user_namestring
latest_updatesarray
specobject
statestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdeployment_name
listpipelinesselectdeployment_nameLists pipelines defined in the Delta Live Tables system.
createinsertdeployment_nameCreates a new data processing pipeline based on the requested configuration. If successful, this method returns the ID of the new pipeline.
updateupdatedeployment_nameUpdates a pipeline with the supplied configuration.
deletedeletedeployment_nameDeletes a pipeline.
stopexecdeployment_nameStops the pipeline by canceling the active update. If there is no active update for the pipeline, this request is a no-op.

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

No description available.

SELECT
name,
cluster_id,
pipeline_id,
creator_user_name,
run_as_user_name,
latest_updates,
spec,
state
FROM databricks_workspace.deltalivetables.pipelines
WHERE deployment_name = '{{ deployment_name }}' -- required;

INSERT examples

Creates a new data processing pipeline based on the requested configuration. If successful, this method returns the ID of the new pipeline.

INSERT INTO databricks_workspace.deltalivetables.pipelines (
data__id,
data__name,
data__storage,
data__target,
data__schema,
data__continuous,
data__development,
data__photon,
data__edition,
data__channel,
data__catalog,
data__serverless,
data__allow_duplicate_names,
data__dry_run,
data__configuration,
data__clusters,
data__libraries,
data__trigger,
data__filters,
data__notifications,
data__deployment,
data__ingestion_definition,
deployment_name
)
SELECT
'{{ id }}',
'{{ name }}',
'{{ storage }}',
'{{ target }}',
'{{ schema }}',
{{ continuous }},
{{ development }},
{{ photon }},
'{{ edition }}',
'{{ channel }}',
'{{ catalog }}',
{{ serverless }},
{{ allow_duplicate_names }},
{{ dry_run }},
'{{ configuration }}',
'{{ clusters }}',
'{{ libraries }}',
'{{ trigger }}',
'{{ filters }}',
'{{ notifications }}',
'{{ deployment }}',
'{{ ingestion_definition }}',
'{{ deployment_name }}'
RETURNING
pipeline_id
;

UPDATE examples

Updates a pipeline with the supplied configuration.

UPDATE databricks_workspace.deltalivetables.pipelines
SET
data__id = '{{ id }}',
data__name = '{{ name }}',
data__storage = '{{ storage }}',
data__target = '{{ target }}',
data__schema = '{{ schema }}',
data__continuous = {{ continuous }},
data__development = {{ development }},
data__photon = {{ photon }},
data__edition = '{{ edition }}',
data__channel = '{{ channel }}',
data__catalog = '{{ catalog }}',
data__serverless = {{ serverless }},
data__pipeline_id = '{{ pipeline_id }}',
data__allow_duplicate_names = {{ allow_duplicate_names }},
data__expected_last_modified = {{ expected_last_modified }},
data__configuration = '{{ configuration }}',
data__clusters = '{{ clusters }}',
data__libraries = '{{ libraries }}',
data__trigger = '{{ trigger }}',
data__filters = '{{ filters }}',
data__notifications = '{{ notifications }}',
data__deployment = '{{ deployment }}',
data__ingestion_definition = '{{ ingestion_definition }}'
WHERE
deployment_name = '{{ deployment_name }}' --required;

DELETE examples

Deletes a pipeline.

DELETE FROM databricks_workspace.deltalivetables.pipelines
WHERE deployment_name = '{{ deployment_name }}' --required;

Lifecycle Methods

Stops the pipeline by canceling the active update. If there is no active update for the pipeline, this request is a no-op.

EXEC databricks_workspace.deltalivetables.pipelines.stop 
@deployment_name='{{ deployment_name }}' --required;