mmune

Whitepaper ยท dbt

Why dbt tests pass while source data drifts

Four ways a green dbt run sits on top of wrong numbers, and where the check has to sit instead.

Example ยท Alerts ยท Value drift
Value drift findings

Nothing failed. The number is still wrong.

The models built, not_null and unique passed, freshness came back green. Then finance asks why EMEA revenue doesn't match the ERP.

dbt tests what you wrote down. It can't see the source change underneath.

dbt answers

Did data arrive, and does it fit my rules?

It doesn't answer

Is this still the same data?

Four ways it stays green

1. Freshness passes because something landed

Half a batch arrives on time. The newest row is recent, so the table looks healthy.

2. accepted_values passes because the value fits

Dollars become cents. A discount becomes a rate. Still valid, still wrong.

3. The column was never in a test

The source has sixty columns. The model selects eight.

4. The test runs on a copy

Connectors widen types on the way in. dbt only sees what survived the trip.

Example: gross becomes net

Release dayA billing release changes invoice totals from gross to net. Every test passes.
Weeks 1 to 3Warehouse revenue runs a few percent low.
CloseA variance nobody can explain.
With mmuneWith billing and the ERP set up as a pair, the totals stop agreeing on the next check.
Example ยท Data ยท Reconciliation
Reconciliation pairing
Example: Totals, both sides. One pair, set up once on PostgreSQL or SQL Server. Checked every 15 minutes by default.
Example ยท Alerts ยท Schema drift
Schema drift findings
Example: At the source. A retyped or dropped column, before the connector hides it.

More dbt tests help. They still run after load.

elementarySchema and volume anomalies, on the warehouse copy
dbt_expectationsRanges and null shares, on the columns you test
dbt contractsYour own model changes, not upstream ones
mmuneValues and schema in the source databases it can read, every few minutes by default

If a vendor changed what a field means tomorrow, which check would notice, and when?

See what's silently wrong.

10-day passive evaluation. Read-only on your data.

mmune.io