Skip to content

Commit

Permalink
10 — Start modeling, all dbt stg_ models
Browse files Browse the repository at this point in the history
  • Loading branch information
Bl3f committed Aug 31, 2023
1 parent caad0b9 commit 8f1f4f5
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
11 changes: 11 additions & 0 deletions analytics/models/stg_riders.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SELECT
name,
slug,
bib,
team,
country,
strava,
height,
weight,
birthday
FROM {{ source('lake', 'riders') }}
3 changes: 0 additions & 3 deletions analytics/models/stg_stages.sql

This file was deleted.

14 changes: 14 additions & 0 deletions analytics/models/stg_stages_gpx.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
SELECT
stage_id,
latitude,
longitude,
altitude,
slope,
dvdone,
dvrest,
kmdone,
kmto,
cpnumero,
cptype,
sumcategory
FROM {{ source('lake', 'stages') }} AS stages
6 changes: 6 additions & 0 deletions analytics/models/stg_stages_info.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SELECT
stage,
date,
start_label,
end_label
FROM {{ source('lake', 'stages_info') }}

0 comments on commit 8f1f4f5

Please sign in to comment.