Week 10: dbt Transformations

Introduction to dbt Core

dbt Setup for Azure PostgreSQL

SQL and Jinja Templating

Materializations & Layers

dbt Tests

Docs & Extras

Practice

Assignment: Borough Stats

Gotchas & Pitfalls

Slides (PDF)

Career relevance: Week 10 in the NL data job market

Glossary

History of Analytics Engineering

Going Further: Optional Deep Dives

Slides (PDF)

The slide deck used in the Week 10 in-class session. The deck covers: welcome back + recap, the theme ("From SQL to dbt: Transformations as Code"), the assignment frame, a live build of the nyc_taxi project one chapter at a time (Ch1-Ch6) from the reference-repo branch chain (with a concept diagram for each key idea), one mixed live quiz, and an optional debugging drill.

<aside> 💡 Use this as a recap. If you missed class or want to re-walk the session, the deck mirrors the lesson: same order, chapter by chapter. Especially useful for the assignment frame and the per-chapter git switch + dbt build beats when you pick the project back up at home.

</aside>

Download

week_10__presentation.pdf

week_10__presentation.pdf

What's in it

The slides are deliberately student-facing only. The teacher's per-section script (pacing, timesink guardrails, quiz answer cribs, exercise reference solutions) lives in the GitHub-only week_10__lesson_plan.md (visible on GitHub only: not synced to Notion, so no link from this page).

Practice exercises (referenced in the drill slides)

The Week 10 practice drills are branches in the reference repo, each starting from the finished project (ch7-practice) so dbt actually runs. git switch to a branch, follow its EXERCISE.md, then git diff against the matching -solution branch.

Section Practice exercise What you practice
Optional live drill exercise-debug-ref Compile-error reading, DAG debugging
After class exercise-macros safe_divide macro, computed columns
After class exercise-singular-test Singular test authoring, the failing-test decision
After class exercise-column-propagation Staging-to-mart column propagation, --select +
After class exercise-generic-tests The four generic tests

Compare your work against the matching -solution branch for each.


The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0 *https://hackyourfuture.net/*

CC BY-NC-SA 4.0 Icons

Built with ❤️ by the HackYourFuture community · Thank you, contributors

Found a mistake or have a suggestion? Let us know in the feedback form.