Skip to content

Commit

Permalink
#1088 fix rodars_factors -> itsc_factors inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielwol committed Jan 10, 2025
1 parent ab3388b commit 497c481
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions events/construction/sql/create-view-rodars_locations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ SELECT
iil.fromroadname,
iil.toroadname,
iil.streetnumber,
rodars_factors.locationblocklevel.locationblocklevel,
rodars_factors.roadclosuretype_old.roadclosuretype AS roadclosuretype_desc,
itsc_factors.locationblocklevel.locationblocklevel,
itsc_factors.roadclosuretype_old.roadclosuretype AS roadclosuretype_desc,
iil.locationdescription_toplevel,
d2.direction,
iil.roadname,
Expand All @@ -69,14 +69,14 @@ JOIN congestion_events.rodars_issue_locations AS iil
AND iil.divisionid = ii.divisionid
AND iil.timestamputc = ii.timestamputc
LEFT JOIN gis_core.centreline_latest USING (centreline_id)
LEFT JOIN rodars_factors.direction AS d1
LEFT JOIN itsc_factors.direction AS d1
ON d1.code = iil.direction_toplevel
LEFT JOIN rodars_factors.direction AS d2
LEFT JOIN itsc_factors.direction AS d2
ON d2.code = iil.direction::numeric::integer
LEFT JOIN rodars_factors.locationblocklevel
ON iil.laneblocklevel::numeric::integer = rodars_factors.locationblocklevel.code
LEFT JOIN rodars_factors.roadclosuretype_old
ON iil.roadclosuretype::numeric::integer = rodars_factors.roadclosuretype_old.code,
LEFT JOIN itsc_factors.locationblocklevel
ON iil.laneblocklevel::numeric::integer = itsc_factors.locationblocklevel.code
LEFT JOIN itsc_factors.roadclosuretype_old
ON iil.roadclosuretype::numeric::integer = itsc_factors.roadclosuretype_old.code,
LATERAL (
SELECT
get_lanesaffected_sums.lane_open_auto,
Expand All @@ -88,7 +88,7 @@ LEFT JOIN rodars_factors.roadclosuretype_old
get_lanesaffected_sums.lane_open_bus,
get_lanesaffected_sums.lane_closed_bus
--expand lanesaffectedpattern column.
FROM rodars_factors.get_lanesaffected_sums(iil.lanesaffectedpattern)
FROM itsc_factors.get_lanesaffected_sums(iil.lanesaffectedpattern)

Check failure on line 91 in events/construction/sql/create-view-rodars_locations.sql

View workflow job for this annotation

GitHub Actions / SQLFluff Lint

SQLFluff

LT02: Expected line break and indent of 12 spaces before 'itsc_factors'.
AS get_lanesaffected_sums (
lane_open_auto, lane_closed_auto, lane_open_bike, lane_closed_bike,
lane_open_ped, lane_closed_ped, lane_open_bus, lane_closed_bus
Expand Down

0 comments on commit 497c481

Please sign in to comment.