feat: migrate transform to 3-layer architecture with per-layer schemas
Remove raw/ layer — staging models now read landing JSON directly. Rename all model schemas from padelnomics.* to staging.*/foundation.*/serving.*. Web app queries updated to serving.planner_defaults via SERVING_DUCKDB_PATH. Supervisor gets daily sleep interval between pipeline runs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
-- Units are explicit in column names (EUR, %, h). All monetary values in EUR.
|
||||
|
||||
MODEL (
|
||||
name padelnomics.planner_defaults,
|
||||
name serving.planner_defaults,
|
||||
kind FULL,
|
||||
cron '@daily',
|
||||
grain city_slug
|
||||
@@ -43,7 +43,7 @@ city_venue_density AS (
|
||||
population,
|
||||
venues_per_100k,
|
||||
market_score
|
||||
FROM padelnomics.city_market_profile
|
||||
FROM serving.city_market_profile
|
||||
)
|
||||
SELECT
|
||||
cvd.city_slug,
|
||||
|
||||
Reference in New Issue
Block a user