Skip to content

Commit

Permalink
remove hardcoded source, remove old comments, add comment decribing b…
Browse files Browse the repository at this point in the history
…uffer distance
  • Loading branch information
charlie-costanzo committed Nov 18, 2024
1 parent 909ed9f commit 951e0c7
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ dim_stops_latest AS (
),

stg_state_geoportal__state_highway_network_stops AS (
SELECT *
-- FROM `cal-itp-data-infra-staging.external_state_geoportal.stg_state_geoportal__state_highway_network_stops`
FROM {{ ref('stg_state_geoportal__state_highway_network_stops') }}
SELECT *
FROM {{ ref('stg_state_geoportal__state_highway_network_stops') }}
),


buffer_geometry_table AS (
SELECT
-- equal to 100ft, as requested by Uriel
ST_BUFFER(wkt_coordinates,
30.48) AS buffer_geometry
FROM stg_state_geoportal__state_highway_network_stops
Expand All @@ -24,7 +24,6 @@ current_stops AS (
SELECT
pt_geom,
stop_id
--key
FROM dim_stops_latest
),

Expand All @@ -48,7 +47,6 @@ LEFT JOIN
stops_on_shn
ON
dim_stops_latest.stop_id = stops_on_shn.stop_id
-- dim_stops_latest.key = stops_on_shn.key
)

SELECT * FROM dim_stops_latest_with_shn_boolean

0 comments on commit 951e0c7

Please sign in to comment.