feat(gold): Kimball star schema — 10 dimensions + 8 fact tables#116
Merged
EduardPetraeus merged 1 commit intomainfrom Mar 8, 2026
Merged
feat(gold): Kimball star schema — 10 dimensions + 8 fact tables#116EduardPetraeus merged 1 commit intomainfrom
EduardPetraeus merged 1 commit intomainfrom
Conversation
Implements a complete dimensional model in the Gold layer for cross-domain health analytics. 10 dimension tables (date, time_of_day, health_zone, source, body_system, metric, workout_type, meal_type, lab_marker, supplement) and 8 fact tables/views (daily_health_score, heart_rate_summary, sleep_session, workout, daily_nutrition, body_measurement, lab_result, daily_vitals_summary). DuckDB-native SQL with exclusive upper bound convention for zone joins. Verified against dev database with real data. Co-Authored-By: Claude Opus 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
dim_date,dim_time_of_day,dim_health_zone,dim_source,dim_body_system,dim_metric,dim_workout_type,dim_meal_type,dim_lab_marker,dim_supplementfct_daily_health_score(composite 35/35/30),fct_daily_heart_rate_summary,fct_sleep_session,fct_workout,fct_daily_nutrition,fct_body_measurement,fct_lab_result,fct_daily_vitals_summarytransformation_logic/gold/sql/(separate from Databricks gold views)score >= min AND score < max)Verification
Test plan
health_dw_dev.dbGenerated with Claude Code