From 222e3bf07de89dc529559be2c9e56b0abb65797a Mon Sep 17 00:00:00 2001 From: Victor Miguel Rocha Date: Fri, 3 Jan 2025 15:53:31 -0300 Subject: [PATCH] Corrige data final de subsidio_data_versao_efetiva (#378) * corrige data final de subsidio_data_versao_efetiva * atualiza changelog --------- 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 | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pipelines/migration/projeto_subsidio_sppo/flows.py b/pipelines/migration/projeto_subsidio_sppo/flows.py index 28edb52a..9542259b 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-12-20 +DBT: 2025-01-03 """ 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 677ca808..73a3c52d 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.1.3] - 2025-01-03 + +### Alterado + +- Alterado a data final no modelo `subsidio_data_versao_efetiva.sql` (https://github.com/prefeitura-rio/pipelines_rj_smtr/pull/378) + ## [9.1.2] - 2024-12-18 ### Alterado 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 17b75813..834910e1 100644 --- a/queries/models/projeto_subsidio_sppo/subsidio_data_versao_efetiva.sql +++ b/queries/models/projeto_subsidio_sppo/subsidio_data_versao_efetiva.sql @@ -361,7 +361,7 @@ WITH WHEN data BETWEEN DATE(2024,12,14) AND DATE(2024,12,15) THEN "Extraordinária - Verão" -- Processo.Rio MTR-DES-2024/74396 ELSE "Regular" END AS tipo_os, - FROM UNNEST(GENERATE_DATE_ARRAY("{{var('DATA_SUBSIDIO_V6_INICIO')}}", "2024-12-31")) AS data), + FROM UNNEST(GENERATE_DATE_ARRAY("{{var('DATA_SUBSIDIO_V6_INICIO')}}", "2025-12-31")) AS data), data_versao_efetiva_manual AS ( SELECT data,