[ COURSE · DBT ON DUCKDB ]

dbt Masterclass

A zero-to-hero dbt course you take on your own laptop. dbt Core against DuckDB, on a synthetic online shop with real mess left in it. No accounts, no warehouse to provision, nothing to spend.

dbt CoreDuckDBSQLJinjaSnowflake-compatibleClaude Code
$ open_the_course → one HTML page · 1.5 MB · runs offline once loaded
21modules
77lessons
50quiz questions
4levels, Beginner to Expert
0accounts to create

[01] why i built it

Two shifts at once

A lot of Snowflake migrations now arrive with a second shift bolted to them: the ETL gets rebuilt as an ELT-first pipeline, with dbt in the middle of it. That's two shifts at once — a new platform, and a different idea of where transformation belongs.

I wanted to be fluent in that before it sat on a deadline. So I started a personal project to bring myself up to speed with dbt. Small, at first — then the more I added, the more it stopped being a practice project and became a course. Two weekends, on and off, is what it took.

[02] what i wanted from it

Four requirements, settled early

Everything after followed from them.

01 It runs on a laptop, with no accounts No warehouse to provision, no credentials to request, no spend to justify. If the first lesson is "wait for IT", nobody gets to the second one.
02 The database behaves like an analytical engine dbt habits that make sense on Postgres quietly teach you the wrong instincts about a columnar warehouse. DuckDB is columnar, runs in-process, reads Parquet and CSV off disk, and its SQL is close enough to Snowflake that the muscle memory transfers.
03 There's enough mess in the data to be real A toy table of ten rows can't teach incremental models, snapshots, or why a relationships test matters. So the shop is synthetic but has shape to it — orders, customers, payments, sessions, and a few known problems left deliberately in place.
04 Snowflake-compatible by intent, not by accident The point was to arrive ready. So I gathered what I could on dbt best practice and on how dbt is used with Snowflake specifically, and built the lessons from that. A course you take on DuckDB that doesn't teach you anything you'd have to unlearn.

[03] what you actually do

You finish with a working mart on your own disk

You start by downloading a starter kit and setting it up on your own machine, with the steps written out separately for macOS and for Windows, because that's where most people give up.

Each lesson introduces a concept first, then hands you the scripts to type or paste. Type them if you want to learn; paste them if you want to move. Either way you end up with staging models, intermediate models, facts and dimensions, tests, contracts and snapshots — and then the course shows you how to build dashboards on top of it, which is the part most dbt material leaves as an exercise for the reader.

The starter kit also ships a small CLI, apex, which exists purely to keep you moving when something breaks: apex diagnose names the cause and the next command to run, apex check is the pre-PR gate, and apex solution <module> --diff compares your work against the answer key and only fills in what's missing.

[04] access

Half of it is open. Half of it needs a code.

● OPEN TO ANYONE Beginner and Intermediate 10 modules · 43 lessons Setup, sources and staging, the star schema, tests, documentation, and dashboard design at the end. Open the page and start. Nothing to sign up for and nothing to ask me for.
◆ UNLOCKS WITH A CODE Advanced and Expert 11 modules · 34 lessons Encrypted when the page is built, and decrypted in your browser with an access code. I hand the code out by email rather than publish it. The locked text is genuinely absent from the page until the code arrives — it isn't hidden in the markup.

There's a bar on asking, and it's the part of the design I'd defend hardest. The request button inside the course stays disabled until the page can see that you've loaded the source tables, built the star schema, and answered six quiz questions. It isn't a score and it isn't an exam — the quiz check counts answers attempted, not answers correct. It's evidence that the pipeline has actually run on your machine.

The reason is simple: Advanced picks up exactly where the mart leaves off. A code sent to someone who hasn't built one is a code that goes nowhere, for both of us.

Two holes in that are left open deliberately. Progress lives in your own browser, so if you did the course on a different laptop the page will think you're a beginner — the panel prints my address in plain text for exactly that person. And a code that has already been issued always works, whatever the page thinks you've done. The bar gates asking, not unlocking.

Already built the mart, or built one somewhere the page can't see? Write to wbiffi@swisstechai.com and say so.

[05] two things i only found by measuring

Plausible is the dangerous failure mode

Both of these were in the course as confident, plausible, wrong statements. Neither would have been caught by thinking harder about it.

An MCP server named after its technology will silently answer for the wrong project The course teaches you to connect your agent to the warehouse so you can ask questions of your own data. The config called the server duckdb — the obvious name. What I hadn't appreciated is that the server name becomes the assistant's tool name, and tool names are global to the assistant rather than scoped to the folder you started it in. I have another project whose config also said duckdb. Asking about revenue didn't produce an error. It produced answers — from the other project's database, in the right shape, completely wrong. We only caught it by running the query and reading the catalogue name in the result. The server is now called apex-dev, and the incident is a lesson in the course, because the failure mode is worse than a crash: it looks like success.
A read-only connection does block a writer — but the agent wasn't holding one The course warned that you have to shut the agent down before running dbt build, because DuckDB gives write access to one process at a time. Sensible-sounding, and half right. So we measured it. lsof on the running MCP server processes showed zero open handles on the database file, including immediately after one had served a query — it connects per query and lets go. A write connection succeeded while all of them were running. A held read-only connection does block a writer, and we proved that too, with the lock error to show for it. The difference is that the Streamlit dashboard holds its connection from the moment it starts, and an idle agent holds nothing. So the rule in the course is now the true one: stop the dashboard before you build; leave the agent alone.

What I take from both: when you're writing teaching material with an agent, plausible is the dangerous failure mode, not broken. Broken announces itself. The division of labour was clean and stayed clean — I supplied the requirements and the judgement, Claude produced the code and the prose, and I tested it. That third part is the one people skip, and it's the one that matters. The course exists because every lesson was executed on a real machine before it was written down as a lesson.

Want something like this for your team?

I design data and AI systems, and build the small tools that show how.

$ work_with_me → ./open_the_course