Skip to content

Commit

Permalink
[HOTFIX] fix subsidio_km_teto (#230)
Browse files Browse the repository at this point in the history
* fix indicador_viagem_dentro_limite

* registra flow

* fix subsidio_km_teto

* registra flow
  • Loading branch information
akaBotelho authored Sep 16, 2024
1 parent e253fc8 commit 9367700
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pipelines/migration/projeto_subsidio_sppo/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
Flows for projeto_subsidio_sppo
DBT 2024-09-13
DBT 2024-09-16
"""

from prefect import Parameter, case, task
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ WITH
data_fim,
status,
subsidio_km,
MAX(subsidio_km) OVER (PARTITION BY data_inicio, data_fim) AS subsidio_km_teto,
MAX(subsidio_km) OVER (PARTITION BY DATE_TRUNC(data_inicio, YEAR), data_fim) AS subsidio_km_teto,
indicador_penalidade_judicial
FROM
{{ ref("subsidio_valor_km_tipo_viagem") }}
Expand Down

0 comments on commit 9367700

Please sign in to comment.