Skip to content

Commit

Permalink
corrige join em sumario_servico_dia_historico e data de DATA_SUBSIDIO…
Browse files Browse the repository at this point in the history
…_V8_INICIO (#271)

* corrige join sem sumario_servico_dia_historico e data de DATA_SUBSIDIO_V8_INICIO

* atualiza changelog
  • Loading branch information
vtr363 authored Oct 16, 2024
1 parent f6e34e1 commit 021fc6b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion queries/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ vars:
# Feature Apuração Madonna · The Celebration Tour in Rio
DATA_SUBSIDIO_V7_INICIO: "2024-05-01"
# Feature Viagens sem transação
DATA_SUBSIDIO_V8_INICIO: "2024-07-19"
DATA_SUBSIDIO_V8_INICIO: "2024-07-20"
# Feature Apuração por faixa horária
DATA_SUBSIDIO_V9_INICIO: "2024-08-16"
# valor_subsidio: "`rj-smtr-dev.projeto_subsidio_sppo.valor_subsidio`"
Expand Down
6 changes: 6 additions & 0 deletions queries/models/dashboard_subsidio_sppo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog - dashboard_subsidio_sppo

## [7.0.5] - 2024-10-16

### Corrigido

- Corrigido join em `sumario_servico_dia_historico` (https://github.com/prefeitura-rio/pipelines_rj_smtr/pull/271)

## [7.0.4] - 2024-09-27

### Corrigido
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ WITH
LEFT JOIN
{{ ref("ordem_servico_gtfs") }} AS o
-- rj-smtr.gtfs.ordem_servico AS o
USING
(feed_start_date, servico, tipo_os)
ON v.feed_start_date = o.feed_start_date
AND v.servico = o.servico
AND sdve.tipo_os = o.tipo_os
WHERE
data >= "{{ var('DATA_SUBSIDIO_V7_INICIO') }}"
)
Expand Down

0 comments on commit 021fc6b

Please sign in to comment.