Start here
What this is
Advent of dbt is a puzzle calendar: twelve weekdays in December, one puzzle a day on what's new in dbt v2, solved on your laptop in one growing dbt project. There's a story too: Jairko, a toastie iron and a very old recipe.
How it works
- A new day opens every weekday at 8am CET (7am GMT, 2am ET, 6pm AEDT). Nothing is timed: start late and catch up whenever you like.
- Each day has two parts, and each part ends with a crumb: a number or a short word you find by running dbt. Type it into the answer box to check it. Find all 24 and the Golden Jaffle toasts.
- Plan on 15 to 30 minutes a day. Each day's solution comes out with the next day's puzzle.
- Your progress is saved in this browser only.
What you need
- dbt v2, version 2.0.13 or later (how to install it). Check with
dbt --version. - A terminal: macOS, Linux or Windows (PowerShell, Git Bash or WSL, not the old Command Prompt). The database is DuckDB, a single file: nothing else to install for the early days.
- git, recommended. No git? Every day page has a zip.
- An editor, such as VS Code, with the official dbt extension (publisher dbt Labs LLC).
Get the project
git clone https://github.com/dbt-labs/advent-of-dbt advent-of-dbt
cd advent-of-dbt
git checkout -f day-01-start
Each day's starter is a tag in the repo. To jump to the start of any day, say day 5:
git fetch --tags --force
git checkout -f day-05-start
git clean -fd
Careful: this replaces your working copy.
git checkout -fthrows away your changes, andgit clean -fddeletes any file you added, notes included. Copy anything you want to keep first.
Can I use an AI agent?
Of course, nobody's checking. We'd still suggest you don't: what's new in dbt sticks best when you type the commands and read the output yourself.
Ready? Open day 1 from the calendar.