Manage pipelines

This document describes how to manage BigQuery pipelines, including how to view, schedule, deploy, and delete pipelines.

This document also describes how to view and manage pipeline metadata in Knowledge Catalog.

Pipelines are powered by Dataform. You can organize and manage pipelines stored in Files and Folders (user folders and team folders) or in BigQuery Studio Git repositories (Git Folders) (Preview).

Before you begin

  1. Create a BigQuery pipeline.
  2. To manage pipeline metadata in Knowledge Catalog, ensure that the Dataplex API is enabled in your Google Cloud project.

Required roles

To get the permissions that you need to manage pipelines, ask your administrator to grant you the following IAM roles:

For more information about granting roles, see Manage access to projects, folders, and organizations.

You might also be able to get the required permissions through custom roles or other predefined roles.

For more information about Dataform IAM, see Control access with IAM. For more information about roles for folders, see Create and manage folders. For more information about roles for Git repositories, see Manage code with BigQuery Studio Git repositories.

If you use a custom service account to run pipelines, you must grant the following roles to that service account:

View pipelines

You can view and inspect pipelines stored in folders or Git folders in the Files pane. You can view standalone pipelines and pipelines stored in folders in the Explorer pane. Pipelines stored in Git folders are not displayed in the Explorer pane.

View pipelines in the Files pane

Pipelines stored in folders or in Git folders appear directly in the Files pane.

To view a pipeline stored in a folder or Git folder, follow these steps:

  1. In the Google Cloud console, go to the BigQuery page.

    Go to BigQuery

  2. In the left pane, click Files to open the file browser.

    If you don't see the left pane, click Expand left pane to open the pane.

  3. Expand your User folder, a Team folder, or a connected Git repository folder.

    Pipelines are displayed with a Pipeline icon instead of a standard folder icon.

  4. Click a pipeline folder to open the Pipeline Viewer.

    The Pipeline Viewer displays the compiled Directed Acyclic Graph (DAG) of your pipeline tasks, execution status, and configuration tabs.

  5. Expand the pipeline directory in the file browser to browse nested directories (such as definitions/) and individual task files.

View pipelines in the Explorer pane

To view a list of standalone pipelines and pipelines stored in folders, do the following:

  1. In the Google Cloud console, go to the BigQuery page.

    Go to BigQuery

  2. In the left pane, click Explorer:

    Highlighted button for the Explorer pane.

    If you don't see the left pane, click Expand left pane to open the pane.

  3. In the Explorer pane, expand your project and click Pipelines.

  4. Select a pipeline to open it in the Pipeline Viewer.

View past manual runs

To view past manual runs of a selected pipeline, follow these steps:

  1. In the Google Cloud console, go to the BigQuery page.

    Go to BigQuery

  2. In the left pane, click Explorer:

    Highlighted button for the Explorer pane.

  3. In the Explorer pane, expand your project, click Pipelines, and then select a pipeline.

  4. Click Executions.

  5. Optional: To refresh the list of past runs, click Refresh.

Configure alerts for failed pipeline runs

Each pipeline has a corresponding Dataform repository ID. Each BigQuery pipeline run is logged in Cloud Logging using the corresponding Dataform repository ID. You can use Cloud Monitoring to observe trends in Cloud Logging logs for BigQuery pipeline runs and to notify you when conditions you describe occur.

To receive alerts when a BigQuery pipeline run fails, you can create a log-based alerting policy for the corresponding Dataform repository ID. For instructions, see Configure alerts for failed workflow invocations.

To find the Dataform repository ID of your pipeline, do the following:

  1. In the Google Cloud console, go to the BigQuery page.

    Go to BigQuery

  2. In the left pane, click Explorer:

    Highlighted button for the Explorer pane.

  3. In the Explorer pane, expand your project, click Pipelines, and then select a pipeline.

  4. Click Settings.

    The Dataform repository ID of your pipeline is displayed at the bottom of the Settings tab.

Delete a pipeline

To permanently delete a pipeline, follow these steps:

  1. In the Google Cloud console, go to the BigQuery page. Go to BigQuery
  • To delete a pipeline stored in a folder or Git folder, do the following:

    1. In the left pane, click Files.

    2. In the file tree, find the pipeline folder that you want to delete.

    3. Click View actions next to the pipeline folder, and then click Delete.

    4. In the confirmation dialog, click Delete.

      The pipeline folder and all tasks and files contained within it are deleted from your workspace.

  • To delete a pipeline listed in the Explorer pane, do the following:

    1. In the left pane, click Explorer:

      Highlighted button for the Explorer pane.

    2. In the Explorer pane, expand your project and click Pipelines.

    3. Find the pipeline that you want to delete.

    4. Click View actions next to the pipeline, and then click Delete.

    5. Click Delete.

Manage metadata in Knowledge Catalog

Knowledge Catalog lets you store and manage metadata for pipelines. Pipelines are available in Knowledge Catalog by default, without additional configuration.

You can use Knowledge Catalog to manage pipelines in all pipeline locations. Managing pipelines in Knowledge Catalog is subject to Knowledge Catalog quotas and limits and Knowledge Catalog pricing.

Knowledge Catalog automatically retrieves the following metadata from pipelines:

  • Data asset name
  • Data asset parent
  • Data asset location
  • Data asset type
  • Corresponding Google Cloud project

Knowledge Catalog logs pipelines as entries with the following entry values:

System entry group
The system entry group for pipelines is @dataform. To view details of pipeline entries in Knowledge Catalog, you need to view the dataform system entry group. For instructions about how to view a list of all entries in an entry group, see View details of an entry group in the Knowledge Catalog documentation.
System entry type
The system entry type for pipelines is dataform-code-asset. To view details of pipelines,you need to view the dataform-code-asset system entry type, filter the results with an aspect-based filter, and set the type field inside dataform-code-asset aspect to WORKFLOW. Then, select an entry of the selected pipeline. For instructions about how to view details of a selected entry type, see View details of an entry type in the Knowledge Catalog documentation. For instructions about how to view details of a selected entry, see View details of an entry in the Knowledge Catalog documentation.
System aspect type
The system aspect type for pipelines is dataform-code-asset. To provide additional context to pipelines in Knowledge Catalog by annotating data pipeline entries with aspects, view the dataform-code-asset aspect type, filter the results with an aspect-based filter, and set the type field inside dataform-code-asset aspect to WORKFLOW. For instructions about how to annotate entries with aspects, see Manage aspects and enrich metadata in the Knowledge Catalog documentation.
Type
The type for data canvases is WORKFLOW. This type lets you filter pipelines in the dataform-code-asset system entry type and the dataform-code-asset aspect type by using the aspect:dataplex-types.global.dataform-code-asset.type=WORKFLOW query in an aspect-based filter.

For instructions about how to search for assets in Knowledge Catalog, see Search for data assets in Knowledge Catalog in the Knowledge Catalog documentation.

Metadata enrichment and data quality scorecard integration

Dataform can publish the following metadata to Knowledge Catalog:

  • Overview aspect type
  • Generic aspect type
  • Data quality scorecard aspect type

Dataform assertions are automatically integrated with the Knowledge Catalog data quality scorecard. During pipeline execution, the results of any Dataform assertions are automatically published to Knowledge Catalog. These results populate the Knowledge Catalog data quality scorecard with a pass or fail status.

To check the status of a metadata update, follow the instructions in View past manual runs.

After the metadata has been synchronized, you can search for and view the entry in Knowledge Catalog. For more information, see Search for resources.

What's next