feat(week-10): add dbt SQL practice exercises#35
Merged
Conversation
Four exercises covering the core dbt skills from Week 10 chapters: - Exercise 1: safe_divide macro + computed columns in stg_trips - Exercise 2: singular test for negative fares (FAIL 182 -> PASS cycle) - Exercise 3: debug a broken ref() at compile time - Exercise 4: propagate a column change from staging to mart with +select Each exercise provides starter files to copy into the student's existing dbt project, with solutions/ containing WHY-annotated reference implementations. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
data-track/week-10/with 4 dbt SQL exercises for Week 10 (dbt Core)solutions/folder with WHY-annotated reference implementationsExercises
safe_dividemacro + computed columns instg_tripsmacros/safe_divide.sql,models/staging/stg_trips.sqltests/assert_fare_amount_non_negative.sqlref()at compile timemodels/marts/fct_trips.sql(broken version)models/staging/stg_trips.sql,models/marts/fct_trips.sqlTest plan
-- WHYannotation on non-obvious choices{{ ref() }}call so dbt's compile-time error points directly at it+fct_tripsis needed vs plainfct_trips🤖 Generated with Claude Code