Skip to content

Commit

Permalink
Merge branch 'main' into pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Oct 15, 2024
2 parents 4fca00a + 22a1420 commit 066f4ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions queries/models/utils/placas_antes_depois.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ WITH all_readings AS (
camera_longitude AS longitude,
DATETIME(datahora_captura, 'America/Sao_Paulo') AS datahora_captura,
ROW_NUMBER() OVER (PARTITION BY placa, datahora ORDER BY datahora) AS row_num_duplicate
FROM `rj-cetrio.ocr_radar.readings_2024*`
FROM `rj-cetrio.ocr_radar.readings_*`
WHERE
DATETIME(datahora, "America/Sao_Paulo")
BETWEEN DATETIME_SUB(start_datetime, INTERVAL 1 DAY)
AND DATETIME_ADD(end_datetime, INTERVAL 1 DAY)
QUALIFY(row_num_duplicate) = 1
-- ORDER BY datahora
),

all_loc AS (
Expand Down

0 comments on commit 066f4ea

Please sign in to comment.