A data quality rule used to be a nightly batch job that exported data to a separate tool, checked it and produced a report someone might read on Monday. In a modern stack, rules run where the data lives, at the moment it changes, and their results flow straight into the catalogue and the owner's queue.

1. Define once, as metadata

Every rule starts as a business statement linked to a critical data element: every active customer has a valid country code. It carries an owner, a quality dimension, a threshold and a severity. That definition lives in the catalogue, so the business can read it — and it is compiled into code, so engines can run it.

2. Version it like software

The executable rule — usually SQL or a declarative check — lives in Git. Changes are reviewed, tested against sample data in CI and promoted through environments. Rules-as-code means you can answer an auditor's favourite question: which version of this check was running on that date?

3. Execute where the data lives

There is no single execution engine. Mature teams use three modes side by side:

ModeHow it runsBest for
Push-downRules compile to SQL and run inside the warehouse or lakehouse — no data leaves the platformLarge tables, scheduled checks, data residency
Pipeline gatesChecks run as a step in the transformation pipeline and can stop a bad loadProtecting downstream reports and models
StreamingLightweight checks on events as they arrivePayments, IoT, operational data

Alongside explicit rules, adaptive checks learn the normal profile of a dataset — volumes, distributions, null rates — and flag anomalies nobody thought to write a rule for.

4. Trigger on events, not just the clock

Rules should run when a load completes, not at 02:00 regardless. Orchestrators publish a completion event, the rule set for that dataset runs, and downstream jobs wait for a pass. Critical failures act as a circuit breaker; warnings let data through but raise an issue.

5. Store results, not copies of the data

Each run writes pass and fail counts, the rule version and the keys of failing records to a results store. Avoid copying full failing rows — that quietly creates a second, ungoverned copy of personal data.

6. Close the loop

  • Results roll up into scorecards by dimension, data element, domain and owner
  • Breaches open a ticket for the accountable steward, with lineage to show the blast radius
  • Quality scores appear in the catalogue next to the dataset, where consumers decide whether to trust it
  • Recurring failures feed back into fixes at the source, not just in the warehouse

The bottom line

Modern rule execution is less about the engine and more about the loop: business definition, versioned code, execution close to the data, and results that land with an owner. Veloptin designs that loop and implements it on Collibra Data Quality and your existing platform.