Learning Data

Topics › Analytics engineering › In the weeds of data crafting

Start from a question: model only what it touches

John Snow's map showed only what his question needed. Jun's model starts the same way: one question from Planning, with a decision behind it, four things to model, and the person who owns each meaning, named before anyone opens a source.

5 min4 labs8 scenariosPause and thinkEnglish captions

Builds on Declare it, then build it

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 2 of 10.

← Previous · Film 1 of 10

Declare it, then build it

dbt calls every query a model. The data model is the blueprint: declared beside the code, and checked by the tests.

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

Next · Film 3 of 10 →

What makes it the same one

One learner, three keys, and a look-alike. Rules match most of them; a person decides the rest, and the decision becomes data and a test.

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