[ COURSE · DBT ON DUCKDB ]
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.
[01] why i built it
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
Everything after followed from them.
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.
[03] what you actually do
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
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
Both of these were in the course as confident, plausible, wrong statements. Neither would have been caught by thinking harder about it.
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.
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.
I design data and AI systems, and build the small tools that show how.