Skip to content

Commit

Permalink
Corrige parametros materialize_gps_15_min (#149)
Browse files Browse the repository at this point in the history
* add schedule every_15_minute

* cria flow gps 15 min

* altera label schedule

* remove parametro

* altera GPS_SPPO_15_MIN_TREATED_TABLE_ID

* add data dbt

* cria modelo gps_sppo_15_minutos

* altera para prod

* add changelogs

* altera materialized e filtros

* teste var fifteen_minutes

* corrige _vars

* altera para dev

* altera materialized

* altera condições where

* corrige refs

* altera refs

* altera materialized

* volta materialized para view

* altera schedule do flow recaptura_15min

* adiciona truncate_minutes

* altera materialized para ephemeral

* altera para prod

* altera default parameters de materialize_gps_15_min

* altera default parameters de materialize_gps_15_min

* add changelog

* corrige digitação

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
akaBotelho and mergify[bot] authored Aug 20, 2024
1 parent 71fd7a4 commit f5c77fc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog - br_rj_riodejaneiro_onibus_gps

## [1.0.1] - 2024-08-19

### Alterado
- Alterado os default parameters do flow materialize_gps_15_min (https://github.com/prefeitura-rio/pipelines_rj_smtr/pull/149)

## [1.0.0] - 2024-08-07

### Adicionado
Expand Down
13 changes: 12 additions & 1 deletion pipelines/migration/br_rj_riodejaneiro_onibus_gps/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
set_last_run_timestamp,
upload_logs_to_bq,
)
from pipelines.migration.utils import set_default_parameters
from pipelines.schedules import (
every_10_minutes,
every_15_minutes,
Expand Down Expand Up @@ -537,6 +538,16 @@


materialize_gps_15_min = deepcopy(materialize_sppo)
materialize_gps_15_min = set_default_parameters(
flow=materialize_gps_15_min,
default_parameters={
"raw_table_id": "sppo_registros",
"table_id": constants.GPS_SPPO_15_MIN_TREATED_TABLE_ID.value,
"materialize_delay_hours": 0,
"truncate_minutes": False,
"fifteen_minutes": "_15_minutos",
},
)
materialize_gps_15_min.name = "SMTR: GPS SPPO 15 Minutos - Materialização (subflow)"

with Flow("SMTR: GPS SPPO 15 Minutos - Tratamento") as recaptura_15min:
Expand All @@ -555,7 +566,7 @@
flow_name=materialize_gps_15_min.name,
project_name=PROJECT,
labels=LABELS,
run_name=materialize_sppo.name,
run_name=materialize_gps_15_min.name,
parameters={
"table_id": constants.GPS_SPPO_15_MIN_TREATED_TABLE_ID.value,
"rebuild": rebuild,
Expand Down

0 comments on commit f5c77fc

Please sign in to comment.