Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions models/marts/mrt_results_circuits.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ int_pit_stops as (
race_id,
driver_id,
max(total_pit_stops_per_race) as total_pit_stops_per_race

from {{ ref('mrt_pit_stops') }}
group by 1,2

Expand Down
4 changes: 2 additions & 2 deletions models/staging/formula1/stg_circuits.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ with
country as circuit_country,
lat as latitude,
lng as longitude,
to_number(iff(contains(alt, 'N'), null, alt)) as altitude,
url as circuit_url
to_number(iff(contains(alt, 'N'), null, alt)) as altitude
-- url as circuit_url
from circuits
)
select *
Expand Down