From 81f4a21ccd75a4ca85e6e45ab476cc2049b115cb Mon Sep 17 00:00:00 2001 From: Lasse Benninga Date: Mon, 6 Jul 2026 15:38:14 +0200 Subject: [PATCH 1/2] fix(assignment): target the existing dev_ schema, not dev__borough Least-privilege student roles have no CREATE on the database and only own their pre-provisioned dev_ schema. Telling students to build into dev__borough makes their first `dbt build` fail with "permission denied to create schema". Point the assignment at the schema they already own and used all through the Week 10 chapters. - profiles.yml.example: schema dev__borough -> dev_ - README.md, reports/answers.md: same rename (mart name fct_daily_borough_stats unchanged) - CI dbt-parse.yml: sed placeholder dev_ -> dev_ci (parse-only, no DB) Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/dbt-parse.yml | 2 +- README.md | 2 +- profiles.yml.example | 2 +- reports/answers.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dbt-parse.yml b/.github/workflows/dbt-parse.yml index 6e4f98c..df03e6f 100644 --- a/.github/workflows/dbt-parse.yml +++ b/.github/workflows/dbt-parse.yml @@ -39,6 +39,6 @@ jobs: PG_DBNAME: postgres run: | cp profiles.yml.example profiles.yml - sed -i 's/dev__borough/dev_ci_borough/' profiles.yml + sed -i 's/dev_/dev_ci/' profiles.yml dbt deps dbt parse diff --git a/README.md b/README.md index 31ca7ed..a18f257 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ The project is already initialised, so Task 1 is just pointing it at the databas ```bash cp profiles.yml.example profiles.yml -# edit profiles.yml: replace so schema reads dev__borough +# edit profiles.yml: replace so schema reads dev_ ``` 2. Export the connection env vars (values are in the class vault; ask your mentor if you are missing them): diff --git a/profiles.yml.example b/profiles.yml.example index 226a9e2..82c6ae0 100644 --- a/profiles.yml.example +++ b/profiles.yml.example @@ -8,7 +8,7 @@ nyc_taxi_borough_daily: user: "{{ env_var('PG_USER') }}" password: "{{ env_var('PG_PASSWORD') }}" dbname: "{{ env_var('PG_DBNAME', 'postgres') }}" - schema: "dev__borough" # TODO: replace with your first name + schema: "dev_" # TODO: replace with your first name (the schema you already own) threads: 1 # Copy this file to profiles.yml (same directory), fill in your name, and ensure diff --git a/reports/answers.md b/reports/answers.md index 822cae4..8937c95 100644 --- a/reports/answers.md +++ b/reports/answers.md @@ -1,6 +1,6 @@ # Business Question Answers -Queries run against `dev__borough.fct_daily_borough_stats`. +Queries run against `dev_.fct_daily_borough_stats`. ## Q1: Highest total `total_fare` across all of January 2024 From 858e2621bae3b902f6af154fcf7486d7f97ab4cb Mon Sep 17 00:00:00 2001 From: Lasse Benninga Date: Mon, 6 Jul 2026 16:53:07 +0200 Subject: [PATCH 2/2] fix: align Q1 heading with corrected assignment scope The mart's data runs 2023-12-31..2024-01-31, so "across all of January 2024" was inaccurate. Match the reworded curriculum question ("the whole loaded dataset"). Pairs with hyf-datatrack assignment data-fact fixes. Co-Authored-By: Claude Opus 4.8 (1M context) --- reports/answers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reports/answers.md b/reports/answers.md index 8937c95..8fb8cf2 100644 --- a/reports/answers.md +++ b/reports/answers.md @@ -2,7 +2,7 @@ Queries run against `dev_.fct_daily_borough_stats`. -## Q1: Highest total `total_fare` across all of January 2024 +## Q1: Highest total `total_fare` across the whole loaded dataset **SQL:**