Glossary · Pipelines and tooling
What is data pipeline?
A data pipeline is an automated sequence of steps that moves data from sources to destinations and transforms it on the way: ingest, clean, model and serve. Pipelines run on a schedule, on events or continuously, and are usually orchestrated as a DAG.
The stages of a pipeline
- Ingest: copy data from databases, SaaS tools, files and event streams into the platform.
- Transform: clean, deduplicate, join and aggregate, usually in SQL inside the warehouse (ELT).
- Serve: publish tables, data products, dashboards, ML features or exports.
- Orchestrate: run the steps in dependency order, retry failures and alert, typically as a DAG.
Pipelines on Google Cloud and BigQuery
- Ingestion: BigQuery batch load jobs, the BigQuery Data Transfer Service (SaaS connectors and scheduled queries), Datastream for change data capture, Pub/Sub BigQuery subscriptions for events, the Storage Write API, and Dataflow for custom batch and streaming jobs.
- Transformation: dbt, Dataform, scheduled queries, stored procedures and continuous queries for SQL that runs on streaming data.
- Orchestration: Apache Airflow on Managed Service for Apache Airflow (formerly Cloud Composer), Dataform workflow configurations, dbt's own scheduler, or Workflows.
Every step that touches BigQuery leaves a job record, so pipeline health is visible from metadata. Failed jobs in the last day, grouped by the label your orchestrator sets:
SELECT
IFNULL((SELECT value FROM UNNEST(labels) WHERE key = 'pipeline'), user_email) AS pipeline,
error_result.reason AS reason,
COUNT(*) AS failed_jobs,
MAX(creation_time) AS last_failure,
ANY_VALUE(error_result.message) AS sample_message
FROM `region-us`.INFORMATION_SCHEMA.JOBS
WHERE creation_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 DAY)
AND error_result IS NOT NULL
GROUP BY pipeline, reason
ORDER BY failed_jobs DESC;
A pipeline can also fail without an error: the job succeeds but loads half the rows, or arrives late. Those cases need freshness and volume monitoring, covered under pipeline observability.
Design principles
- Rerunnable steps. A rerun should produce the same result, not duplicates; see idempotent pipeline.
- Incremental by default. Process new partitions, not all history, and keep a path for backfills.
- Push compute down. Let BigQuery do joins and aggregations; orchestrators should coordinate work, not move data through their workers.
- Owners and labels. Every pipeline needs an owner and a label on its jobs, so failures and costs land with the right team.
Common pitfalls
- Silent partial failures: green runs that wrote wrong or incomplete data.
- Pipelines nobody needs: outputs that no one reads still cost compute on every run. See dead-end table.
- Hidden coupling: a schema change upstream breaks models downstream that nobody knew depended on it. Lineage and data contracts make the dependency explicit.
FAQ
What is the difference between a batch and a streaming pipeline?
A batch pipeline processes data in chunks on a schedule, such as yesterday's orders every morning. A streaming pipeline processes events continuously as they arrive, with latency in seconds. Many platforms combine both: streaming ingestion into raw tables and batch transformations on top.
What is the difference between a data pipeline and ETL?
ETL (or ELT) describes one kind of pipeline: extract, transform, load. Data pipeline is the broader term and also covers replication, reverse ETL into business tools, ML feature pipelines and exports.
