Here are 12 dates with records that should be nulls but are not. You were lucky to pick one of them at random! I will create a new issue for this investigation.
"datetime_bin" |
"count" |
"2024-02-05" |
46 |
"2024-02-01" |
43 |
"2024-01-20" |
3990 |
"2024-01-19" |
4032 |
"2024-01-18" |
4032 |
"2024-01-17" |
4032 |
"2024-01-16" |
4032 |
"2024-01-15" |
4032 |
"2024-01-14" |
4032 |
"2024-01-13" |
4032 |
"2024-01-02" |
44 |
"2023-01-22" |
42 |
SELECT datetime_bin::date, COUNT(*)
FROM miovision_api.volumes_15min_mvt AS v
JOIN miovision_api.unacceptable_gaps AS un USING (intersection_uid, datetime_bin)
WHERE v.volume IS NOT NULL
GROUP BY 1
ORDER BY 1 DESC
Originally posted by @gabrielwol in #863 (comment)