Skip to content

Commit

Permalink
remove unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie-costanzo committed Feb 27, 2025
1 parent 063a93d commit 45c946e
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
-- this was already here, no changes
WITH staging_breakdowns_by_agency AS (
SELECT *
FROM {{ ref('stg_ntd__breakdowns_by_agency') }}
),

-- 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
current_dim_organizations AS (
SELECT
ntd_id,
Expand All @@ -13,7 +11,6 @@ current_dim_organizations AS (
WHERE _is_current
),

-- this is a new CTE, perform the join on staging_breakdowns_by_agency to include caltrans_district
enrich_with_caltrans_district AS (
SELECT
staging_breakdowns_by_agency.*,
Expand All @@ -22,7 +19,6 @@ enrich_with_caltrans_district AS (
LEFT JOIN current_dim_organizations USING (ntd_id)
),

-- 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
fct_breakdowns_by_agency AS (
SELECT *
FROM enrich_with_caltrans_district
Expand Down Expand Up @@ -53,7 +49,6 @@ SELECT
sum_train_revenue_miles,
sum_vehicle_passenger_car_miles,
sum_vehicle_passenger_car_revenue,
-- include newly added column in column selection
caltrans_district,
dt,
execution_ts
Expand Down

0 comments on commit 45c946e

Please sign in to comment.