From 9607bfdd84563b865d8c60465d175505ab4a5a01 Mon Sep 17 00:00:00 2001 From: gabrielwol <80077912+gabrielwol@users.noreply.github.com> Date: Tue, 30 Jul 2024 16:54:13 -0400 Subject: [PATCH] Change intersection_uid to id Chris prefers this id for entering into his tracker. --- .../sql/data_checks/select-ongoing_intersection_outages.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/volumes/miovision/sql/data_checks/select-ongoing_intersection_outages.sql b/volumes/miovision/sql/data_checks/select-ongoing_intersection_outages.sql index 1c632736f..d0527d506 100644 --- a/volumes/miovision/sql/data_checks/select-ongoing_intersection_outages.sql +++ b/volumes/miovision/sql/data_checks/select-ongoing_intersection_outages.sql @@ -1,6 +1,6 @@ WITH ongoing_outages AS ( SELECT - i.intersection_name || ' (uid: ' || i.intersection_uid || ') - data last received: ' + i.intersection_name || ' (id: ' || i.id || ') - data last received: ' || MAX(v.datetime_bin::date) || ' (' || '{{ macros.ds_add(ds, 6) }}'::date --noqa: TMP, LT05 - MAX(v.datetime_bin::date) || ' days)' AS descrip FROM miovision_api.volumes AS v @@ -23,4 +23,4 @@ SELECT || CASE WHEN COUNT(ongoing_outages.*) = 1 THEN ' ongoing outage.' ELSE ' ongoing outages.' END AS summ, --gap_threshold array_agg(ongoing_outages.descrip || chr(10)) AS gaps -FROM ongoing_outages \ No newline at end of file +FROM ongoing_outages