Skip to content

Commit

Permalink
correção na query teste_subsido_viagens_atualizadas
Browse files Browse the repository at this point in the history
  • Loading branch information
vtr363 committed Aug 19, 2024
1 parent 5ad7639 commit fa8320b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions pipelines/migration/projeto_subsidio_sppo/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,8 @@ class constants(Enum): # pylint: disable=c0103
-- `rj-smtr.dashboard_subsidio_sppo.sumario_servico_dia_historico`
`rj-smtr-dev.dashboard_subsidio_sppo_novos_teste_subsidio.sumario_servico_dia_historico`
WHERE
DATA BETWEEN "{start_timestamp}"
AND "{end_timestamp}" )
DATA BETWEEN DATE("{start_timestamp}")
AND DATE("{end_timestamp}")
SELECT
DISTINCT DATA
FROM
Expand Down Expand Up @@ -543,9 +543,6 @@ class constants(Enum): # pylint: disable=c0103
"Todos os dados de status dos veículos foram devidamente tratados": {
"test": "check_sppo_veiculo_dia",
},
"Todas as viagens foram processadas com feed atualizado do GTFS": {
"test": "check_viagem_completa",
},
}
}
SUBSIDIO_SPPO_DATA_CHECKS_POS_LIST = {
Expand Down Expand Up @@ -698,8 +695,11 @@ class constants(Enum): # pylint: disable=c0103
"Todas viagens com valor de subsídio por km não nulo e maior ou igual a zero": {
"expression": "subsidio_km IS NOT NULL AND subsidio_km >= 0",
},
"Todas as viagens foram atualizadas antes do processamento do subsídio": {
"Todas viagens atualizadas antes do processamento do subsídio": {
"test": "teste_subsido_viagens_atualizadas"
},
"Todas viagens processadas com feed atualizado do GTFS": {
"test": "check_viagem_completa",
},
},
}
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-08-19
DBT 2024-08-19
"""

from prefect import Parameter, case, task
Expand Down

0 comments on commit fa8320b

Please sign in to comment.