Skip to content

Commit

Permalink
corrige tratamento tunel
Browse files Browse the repository at this point in the history
  • Loading branch information
pixuimpou committed Sep 17, 2024
1 parent 900a760 commit 10f1439
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion queries/models/planejamento/segmento_shape.sql
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ indicador_validacao_shape AS (
SELECT
*,
(
indicador_tunel
(
indicador_tunel
AND (
(id_segmento > 1)
OR (shape_id < MAX(id_segmento) OVER (PARTITION BY feed_start_date, shape_id))
)
)
OR indicador_area_prejudicada
OR indicador_segmento_pequeno
) AS indicador_segmento_desconsiderado,
Expand Down

0 comments on commit 10f1439

Please sign in to comment.