Skip to content
All demos
Demo 5 of 12 Video in production

Add quality rules

Quality rules are source files, reviewed and reverted like code. An assertion stops the run; an expectation records a reason and continues.

2 min On Aldgate, a sample asset manager we built to prove the platform
Product screen used as the poster for “Add quality rules”

Video in production

The script is below; the recording is being made on a sample tenant.

Poster: a product screen of a fictional sample organisation. The script below is what the recording will follow.

Chapters

  1. 0:00A .dq file
  2. 0:35assert versus expect
  3. 1:05A rule that cannot compile
  4. 1:35The run and the report

The script

The spec the recording follows: what the browser does on screen, then what the narration says.

1. A .dq file

Screen. Open quality/aldgate_quality.dq. Scroll the rule blocks.

Say. Quality rules live in the repository as .dq source. They are diffed in review and reverted like anything else. A rule nobody can diff is a rule nobody trusts.

2. assert versus expect

Screen. Highlight an assert block (not-null on isin) and an expect block (freshness within 24 hours).

Say. An assertion stops the run. An expectation records a reason and lets it finish. Severity follows how critical the element is, not how alarming it feels.

3. A rule that cannot compile

Screen. Add a rule on a column that does not exist. Save. Show the compile diagnostic. Remove it.

Say. A rule naming a column that is not there fails to compile. It cannot be published and then quietly never fire.

4. The run and the report

Screen. Run the pipeline. Open Quality. Show the suite result: assertions passed, one expectation recorded with its reason. Open the row.

Say. The run passed its assertions and recorded one expectation with the reason. The rule and the result are in the same place, and the catalog entry for the asset shows its quality score without anyone copying it there.