From fee792721099570e3fee4f06e0815e2adc2590b1 Mon Sep 17 00:00:00 2001 From: Victor Miguel Rocha Date: Wed, 9 Oct 2024 10:02:59 -0300 Subject: [PATCH] Ajusta tipo_os das datas 13/09/24 a 15/09/24 e de 19/09/24 a 22/09/24 para Rock in Rio (#264) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ajusta tipo_os das datas 13/09/24, 14/09/24, 15/09/24, 19/09/24, 20/09/24, 21/09/24 e 22/09/24 para Rock in Rio * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * atualiza changelog * corrige changelog * adiciona tipo_os 'Verão + Rock in Rio' --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- queries/models/projeto_subsidio_sppo/CHANGELOG.md | 8 +++++++- .../subsidio_data_versao_efetiva.sql | 5 +++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/queries/models/projeto_subsidio_sppo/CHANGELOG.md b/queries/models/projeto_subsidio_sppo/CHANGELOG.md index ef4b79f3..0caf5bee 100644 --- a/queries/models/projeto_subsidio_sppo/CHANGELOG.md +++ b/queries/models/projeto_subsidio_sppo/CHANGELOG.md @@ -1,11 +1,17 @@ # Changelog - projeto_subsidio_sppo -## [9.0.4] - 2024-10-08 +## [9.0.5] - 2024-10-08 ### Corrigido - Corrigido a duplicação de viagens no modelo `viagens_planejadas` (https://github.com/prefeitura-rio/pipelines_rj_smtr/pull/266) +## [9.0.4] - 2024-10-07 + +### Alterado + +- Alterados os tipo_os de `13/09/24` a `15/09/24` e `19/09/24` a `22/09/24` para `Rock in Rio` (https://github.com/prefeitura-rio/pipelines_rj_smtr/pull/264) + ## [9.0.3] - 2024-09-23 ### 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 91246461..a6129eeb 100644 --- a/queries/models/projeto_subsidio_sppo/subsidio_data_versao_efetiva.sql +++ b/queries/models/projeto_subsidio_sppo/subsidio_data_versao_efetiva.sql @@ -347,8 +347,9 @@ WITH WHEN data = DATE(2024,05,04) THEN "Madonna 2024-05-04" WHEN data = DATE(2024,05,05) THEN "Madonna 2024-05-05" WHEN data = DATE(2024,08,18) THEN "CNU" -- Processo.Rio MTR-PRO-2024/13252 - WHEN data = DATE(2024,09,14) THEN "Extraordinária - Verão" -- Processo.Rio - WHEN data = DATE(2024,09,15) THEN "Extraordinária - Verão" -- Processo.Rio + 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" ELSE "Regular" END AS tipo_os, FROM UNNEST(GENERATE_DATE_ARRAY("{{var('DATA_SUBSIDIO_V6_INICIO')}}", "2024-12-31")) AS data),