Data Quality/Quality checks by warehouseData Engineer

How do I fail a run when a BigQuery source is stale?

Add a freshness check on the BigQuery source. If the latest data is older than the threshold, Bruin fails the run before building stale downstream models.

Command

bruin run

Defined in

YAML + SQL

Works with

BigQuery + Bruin CLI

What you get

Freshness gatesin-pipelineblocking

How it works in code

custom_checks:
  - name: fresh
    query: SELECT count(*) FROM t WHERE loaded_at < now() - interval '1 day'  -- bigquery

Run bruin run and the BigQuery run stops the moment the rule is violated.

Catch bad data before it ships

Open source. Built-in and custom checks that run on every pipeline run.

Sign up to our newsletter

Practical updates on open-source data pipelines, AI analysts, governance, and what we are shipping at Bruin.