Data Quality/Quality checks by warehouseData Engineer

How do I enforce a schema contract on a MotherDuck table?

Encode required columns, types, and accepted values as checks on the MotherDuck asset. A breaking change fails the run and is caught in CI.

Command

bruin run

Defined in

YAML + SQL

Works with

MotherDuck + Bruin CLI

What you get

Data contractsin-pipelineblocking

How it works in code

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

Run bruin run and the MotherDuck 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.