Learning Data

Topics › Analytics engineering › In the weeds of data crafting

Promises and proofs: promise it in a contract, prove it with a test, first

Since 1300, English silver has been tested before it's marked. A core model makes the same kind of promise: every gap between what the business expects and what the sources hold gets a decision, the contracts say what's promised, and the tests prove it, written before the code they check.

5½ min4 labs8 scenariosPause and thinkEnglish captions

Builds on One row of what, and when

Watch the film

Press Play, or pick a chapter. Turn on Pause and think to stop for one question at the end of chapters.

0:00

See it in the project

Every card in the film shows a real file from the example dbt project. Open the ones each chapter shows, on GitHub, or run the whole project yourself.

Think it through

The four Pause and think questions, for a class or a team. Open one to see the answer.

In the series: In the weeds of data crafting

Film 5 of 10.

← Previous · Film 4 of 10

One row of what, and when

Twelve on census day, nine today: both right. Say what one row is and which day it describes, before any SQL, and test both.

5 min · 4 labs · 8 scenarios · In the weeds of data crafting

Next · Film 6 of 10 →

Built in layers

Four layers turn the tests green. Each layer has one job; each CTE, one step; and the rule is written once.

4½ min · 4 labs · 8 scenarios · In the weeds of data crafting

  1. 1Declare it, then build it
  2. 2Start from a question
  3. 3What makes it the same one
  4. 4One row of what, and when
  5. 5Promises and proofs
  6. 6Built in layers
  7. 7Who owns what
  8. 8An agent on the team
  9. 9Written once
  10. 10End to end