Commit 4ffb4ab
Fix PostgreSQL type casting issues in Week 9 solutions (#32)
* fix(data-track/week-9): clarify validation expectations, deterministic sample, assignment cast note
Polish from a Week 9 exercise review (all solutions live-verified against the
shared Azure Postgres: Manhattan top, 0 NULL pickups, 189 duplicate groups,
0 orphans, fact view 56,369 = 56,551 - 182 negatives).
- Ex1: add ORDER BY pickup_datetime before LIMIT 5 so the sample is stable
between runs (a bare LIMIT returns an arbitrary 5 rows).
- Ex5: tell students 5a returns 0 and 5c returns empty BY DESIGN (pickup IDs
are complete; orphans do not exist on this load). A 0 is the check passing,
not a mistake. Prevents the "did I break it?" confusion.
- Ex6: note the practice view is scaled down; the assignment's vw_fact_trips
also casts pickup_datetime::TIMESTAMP. Flag it so students do not under-build
the assignment deliverable.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Fix double precision to numeric type casting issue for ROUND() in week 9 exercise solutions
---------
Co-authored-by: Lasse Benninga <devops.pipeline@example.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 81016a8 commit 4ffb4ab
3 files changed
Lines changed: 3 additions & 3 deletions
File tree
- data-track/week-9
- exercise_2/solutions
- exercise_4/solutions
- exercise_6/solutions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments