File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
opendata_stack_platform_dbt/models/gold/dimensions Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -22,17 +22,7 @@ with rate_code_mapping as (
22
22
when rate_code_id = 99 then ' Unknown'
23
23
else ' Unknown'
24
24
end as rate_code_desc
25
- from (
26
- -- Get all distinct ratecode_id values from Yellow Taxi
27
- select distinct coalesce(cast(ratecode_id as int ), 99 ) as rate_code_id
28
- from {{ source(' silver_yellow' , ' yellow_taxi_trip' ) }}
29
-
30
- union
31
-
32
- -- Get all distinct ratecode_id values from Green Taxi
33
- select distinct coalesce(cast(ratecode_id as int ), 99 ) as rate_code_id
34
- from {{ source(' silver_green' , ' green_taxi_trip' ) }}
35
- )
25
+ from {{ ref(' silver_taxi_trips_validated' ) }}
36
26
),
37
27
38
28
final as (
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ with trip_type_codes as (
23
23
-- FHVHV is always dispatch type (2)
24
24
-- Yellow Taxi is always street-hail (1)
25
25
select distinct trip_type as trip_type_id
26
- from {{ source( ' silver_green ' , ' green_taxi_trip ' ) }}
26
+ from {{ ref( ' silver_taxi_trips_validated ' ) }}
27
27
where trip_type is not null
28
28
)
29
29
union all
You can’t perform that action at this time.
0 commit comments