From b41b0e70baad834a3a7643860c166348b254552b Mon Sep 17 00:00:00 2001 From: Victor Miguel Rocha Date: Tue, 22 Oct 2024 14:26:10 -0300 Subject: [PATCH] =?UTF-8?q?Adiciona=20o=20tipo=5Fos=20Elei=C3=A7=C3=A3o=20?= =?UTF-8?q?(#281)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Altera tipo os de 2024-10-06 para eleição * atualiza changelog * Registra flow de viagens --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- pipelines/migration/projeto_subsidio_sppo/flows.py | 2 +- queries/models/projeto_subsidio_sppo/CHANGELOG.md | 6 ++++++ .../projeto_subsidio_sppo/subsidio_data_versao_efetiva.sql | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pipelines/migration/projeto_subsidio_sppo/flows.py b/pipelines/migration/projeto_subsidio_sppo/flows.py index c8659ba8..c0a51764 100644 --- a/pipelines/migration/projeto_subsidio_sppo/flows.py +++ b/pipelines/migration/projeto_subsidio_sppo/flows.py @@ -3,7 +3,7 @@ """ Flows for projeto_subsidio_sppo -DBT: 2024-10-21 +DBT: 2024-10-22 """ from prefect import Parameter, case, task diff --git a/queries/models/projeto_subsidio_sppo/CHANGELOG.md b/queries/models/projeto_subsidio_sppo/CHANGELOG.md index 0caf5bee..984d82d9 100644 --- a/queries/models/projeto_subsidio_sppo/CHANGELOG.md +++ b/queries/models/projeto_subsidio_sppo/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog - projeto_subsidio_sppo +## [9.0.6] - 2024-10-22 + +### Corrigido + +- Alterado o tipo_os de 2024-10-06 para `Eleição` (https://github.com/prefeitura-rio/pipelines_rj_smtr/pull/281) + ## [9.0.5] - 2024-10-08 ### Corrigido diff --git a/queries/models/projeto_subsidio_sppo/subsidio_data_versao_efetiva.sql b/queries/models/projeto_subsidio_sppo/subsidio_data_versao_efetiva.sql index a6129eeb..a47f99d7 100644 --- a/queries/models/projeto_subsidio_sppo/subsidio_data_versao_efetiva.sql +++ b/queries/models/projeto_subsidio_sppo/subsidio_data_versao_efetiva.sql @@ -350,6 +350,7 @@ WITH WHEN data = DATE(2024,09,13) THEN "Rock in Rio" WHEN data BETWEEN DATE(2024,09,14) AND DATE(2024,09,15) THEN "Verão + Rock in Rio" WHEN data BETWEEN DATE(2024,09,19) AND DATE(2024,09,22) THEN "Rock in Rio" + WHEN data = DATE(2024,10,06) THEN "Eleição" ELSE "Regular" END AS tipo_os, FROM UNNEST(GENERATE_DATE_ARRAY("{{var('DATA_SUBSIDIO_V6_INICIO')}}", "2024-12-31")) AS data),