Skip to content

Commit 2dbbd0e

Browse files
remove unnecessary comments
1 parent 7fc85d1 commit 2dbbd0e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

warehouse/models/mart/ntd_annual_reporting/fct_breakdowns_by_agency.sql

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
-- this was already here, no changes
21
WITH staging_breakdowns_by_agency AS (
32
SELECT *
43
FROM {{ ref('stg_ntd__breakdowns_by_agency') }}
54
),
65

7-
-- this is a new CTE, which pulls two columns from dim_organizations: ntd_id to join on in the CTE immediately below, and caltrans_district to enrich the final table
86
current_dim_organizations AS (
97
SELECT
108
ntd_id,
@@ -13,7 +11,6 @@ current_dim_organizations AS (
1311
WHERE _is_current
1412
),
1513

16-
-- this is a new CTE, perform the join on staging_breakdowns_by_agency to include caltrans_district
1714
enrich_with_caltrans_district AS (
1815
SELECT
1916
staging_breakdowns_by_agency.*,
@@ -22,7 +19,6 @@ enrich_with_caltrans_district AS (
2219
LEFT JOIN current_dim_organizations USING (ntd_id)
2320
),
2421

25-
-- this CTE was here previously, but it used to pull from the first CTE (staging_breakdowns_by_agency). now I have ajusted the from statement to pull from the new CTE that performs the join and enriches with caltrans_district
2622
fct_breakdowns_by_agency AS (
2723
SELECT *
2824
FROM enrich_with_caltrans_district
@@ -53,7 +49,6 @@ SELECT
5349
sum_train_revenue_miles,
5450
sum_vehicle_passenger_car_miles,
5551
sum_vehicle_passenger_car_revenue,
56-
-- include newly added column in column selection
5752
caltrans_district,
5853
dt,
5954
execution_ts

0 commit comments

Comments
 (0)