From 69550c9b3dc85c78dd3f70d0ec750f98ec3700a0 Mon Sep 17 00:00:00 2001 From: PedroSiqueira1 Date: Wed, 30 Oct 2024 11:29:33 -0300 Subject: [PATCH 1/5] fix: Change models to correct dataset --- queries/models/atividade_economica/fact_fatoalvaras.sql | 2 +- queries/models/atividade_economica/fact_fatocp.sql | 2 +- queries/models/atividade_economica/tab_alvara.sql | 2 +- queries/models/atividade_economica/tab_atvprocesso.sql | 2 +- queries/models/atividade_economica/tab_cae.sql | 2 +- queries/models/atividade_economica/tab_cnae.sql | 2 +- queries/models/atividade_economica/tab_consulta.sql | 2 +- queries/models/atividade_economica/tab_direcionamento.sql | 2 +- .../tab_tipocontribuinte_tipocontribuint.sql | 2 +- queries/models/atividade_economica/tab_tiposolicitacao.sql | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/queries/models/atividade_economica/fact_fatoalvaras.sql b/queries/models/atividade_economica/fact_fatoalvaras.sql index 8d2e057..617fee8 100644 --- a/queries/models/atividade_economica/fact_fatoalvaras.sql +++ b/queries/models/atividade_economica/fact_fatoalvaras.sql @@ -11,4 +11,4 @@ SELECT SAFE_CAST(ID_TipoContribuint AS STRING) AS ID_TipoContribuint, SAFE_CAST(ID_TipoSolicitacao AS STRING) AS ID_TipoSolicitacao -FROM `rj-iplanrio.alvaras_staging.fact_fatoalvaras` \ No newline at end of file +FROM `rj-smfp.atividade_economica_staging.fact_fatoalvaras` \ No newline at end of file diff --git a/queries/models/atividade_economica/fact_fatocp.sql b/queries/models/atividade_economica/fact_fatocp.sql index ec3ad82..7c4405e 100644 --- a/queries/models/atividade_economica/fact_fatocp.sql +++ b/queries/models/atividade_economica/fact_fatocp.sql @@ -9,4 +9,4 @@ SELECT SAFE_CAST(ID_TipoContribuint AS STRING) AS ID_TipoContribuint, SAFE_CAST(ID_TipoSolicitacao AS STRING) AS ID_TipoSolicitacao -FROM `rj-iplanrio.alvaras_staging.fact_fatocp` \ No newline at end of file +FROM `rj-smfp.atividade_economica_staging.fact_fatocp` \ No newline at end of file diff --git a/queries/models/atividade_economica/tab_alvara.sql b/queries/models/atividade_economica/tab_alvara.sql index 063944a..8933a6f 100644 --- a/queries/models/atividade_economica/tab_alvara.sql +++ b/queries/models/atividade_economica/tab_alvara.sql @@ -19,4 +19,4 @@ SELECT SAFE_CAST(DSC_Numero AS FLOAT64) AS DSC_Numero, SAFE_CAST(DSC_AlvaraLiberado AS STRING) AS DSC_AlvaraLiberado -FROM `rj-iplanrio.alvaras_staging.tab_alvara` \ No newline at end of file +FROM `rj-smfp.atividade_economica_staging.tab_alvara` \ No newline at end of file diff --git a/queries/models/atividade_economica/tab_atvprocesso.sql b/queries/models/atividade_economica/tab_atvprocesso.sql index 4d2f84b..ab363c3 100644 --- a/queries/models/atividade_economica/tab_atvprocesso.sql +++ b/queries/models/atividade_economica/tab_atvprocesso.sql @@ -4,4 +4,4 @@ SELECT SAFE_CAST(DSC_RespAtividade AS STRING) AS DSC_RespAtividade, SAFE_CAST(DSC_RefAtividade AS STRING) AS DSC_RefAtividade -FROM `rj-iplanrio.alvaras_staging.tab_atvprocesso` \ No newline at end of file +FROM `rj-smfp.atividade_economica_staging.tab_atvprocesso` \ No newline at end of file diff --git a/queries/models/atividade_economica/tab_cae.sql b/queries/models/atividade_economica/tab_cae.sql index aa66752..81febd6 100644 --- a/queries/models/atividade_economica/tab_cae.sql +++ b/queries/models/atividade_economica/tab_cae.sql @@ -4,4 +4,4 @@ SELECT SAFE_CAST(ID_TipoAtividade AS STRING) AS ID_TipoAtividade, SAFE_CAST(DSC_TipoAtividade AS STRING) AS DSC_TipoAtividade -FROM `rj-iplanrio.alvaras_staging.tab_cae` \ No newline at end of file +FROM `rj-smfp.atividade_economica_staging.tab_cae` \ No newline at end of file diff --git a/queries/models/atividade_economica/tab_cnae.sql b/queries/models/atividade_economica/tab_cnae.sql index fc157dc..eb21462 100644 --- a/queries/models/atividade_economica/tab_cnae.sql +++ b/queries/models/atividade_economica/tab_cnae.sql @@ -2,4 +2,4 @@ SELECT SAFE_CAST(ID_CNAE AS STRING) AS ID_CNAE, SAFE_CAST(DSC_CNAE AS STRING) AS DSC_CNAE -FROM `rj-iplanrio.alvaras_staging.tab_cnae` \ No newline at end of file +FROM `rj-smfp.atividade_economica_staging.tab_cnae` \ No newline at end of file diff --git a/queries/models/atividade_economica/tab_consulta.sql b/queries/models/atividade_economica/tab_consulta.sql index c894370..5610bb9 100644 --- a/queries/models/atividade_economica/tab_consulta.sql +++ b/queries/models/atividade_economica/tab_consulta.sql @@ -10,4 +10,4 @@ SELECT SAFE_CAST(DSC_TipoAnalise_cp AS STRING) AS DSC_TipoAnalise_cp, SAFE_CAST(DSC_Status_cp AS STRING) AS DSC_Status_cp -FROM `rj-iplanrio.alvaras_staging.tab_consulta` \ No newline at end of file +FROM `rj-smfp.atividade_economica_staging.tab_consulta` \ No newline at end of file diff --git a/queries/models/atividade_economica/tab_direcionamento.sql b/queries/models/atividade_economica/tab_direcionamento.sql index ff71845..8562965 100644 --- a/queries/models/atividade_economica/tab_direcionamento.sql +++ b/queries/models/atividade_economica/tab_direcionamento.sql @@ -2,4 +2,4 @@ SELECT SAFE_CAST(ID_Direcionamento AS STRING) AS ID_Direcionamento, SAFE_CAST(DSC_Direcionamento AS STRING) AS DSC_Direcionamento -FROM `rj-iplanrio.alvaras_staging.tab_direcionamento` \ No newline at end of file +FROM `rj-smfp.atividade_economica_staging.tab_direcionamento` \ No newline at end of file diff --git a/queries/models/atividade_economica/tab_tipocontribuinte_tipocontribuint.sql b/queries/models/atividade_economica/tab_tipocontribuinte_tipocontribuint.sql index 44d4fab..6916abc 100644 --- a/queries/models/atividade_economica/tab_tipocontribuinte_tipocontribuint.sql +++ b/queries/models/atividade_economica/tab_tipocontribuinte_tipocontribuint.sql @@ -1,4 +1,4 @@ SELECT SAFE_CAST(ID_TipoContribuint AS STRING) AS ID_TipoContribuint, SAFE_CAST(DSC_TipoContribuint AS STRING) AS DSC_TipoContribuint -FROM `rj-iplanrio.alvaras_staging.tab_tipocontribuinte_tipocontribuint` \ No newline at end of file +FROM `rj-smfp.atividade_economica_staging.tab_tipocontribuinte_tipocontribuint` \ No newline at end of file diff --git a/queries/models/atividade_economica/tab_tiposolicitacao.sql b/queries/models/atividade_economica/tab_tiposolicitacao.sql index 5b37c83..6aff1db 100644 --- a/queries/models/atividade_economica/tab_tiposolicitacao.sql +++ b/queries/models/atividade_economica/tab_tiposolicitacao.sql @@ -2,4 +2,4 @@ SELECT SAFE_CAST(ID_TipoSolicitacao AS STRING) AS ID_TipoSolicitacao, SAFE_CAST(DSC_TipoSolicitacao AS STRING) AS DSC_TipoSolicitacao -FROM `rj-iplanrio.alvaras_staging.tab_tiposolicitacao` \ No newline at end of file +FROM `rj-smfp.atividade_economica_staging.tab_tiposolicitacao` \ No newline at end of file From 9c8c189c63c1006702cc3b6e5f27a5ac97756f33 Mon Sep 17 00:00:00 2001 From: PedroSiqueira1 Date: Wed, 30 Oct 2024 11:49:16 -0300 Subject: [PATCH 2/5] Dummy commit to registrer flow --- pipelines/atividade_economica/dump_db/schedules.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pipelines/atividade_economica/dump_db/schedules.py b/pipelines/atividade_economica/dump_db/schedules.py index b396c3b..dbf7078 100644 --- a/pipelines/atividade_economica/dump_db/schedules.py +++ b/pipelines/atividade_economica/dump_db/schedules.py @@ -222,3 +222,4 @@ ) alvaras_infra_daily_update_schedule = Schedule(clocks=untuple(alvaras_infra_clocks)) + From b9c81ad852b2cc8d14ceb3591022e8b97f9f534b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 30 Oct 2024 14:49:27 +0000 Subject: [PATCH 3/5] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pipelines/atividade_economica/dump_db/schedules.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pipelines/atividade_economica/dump_db/schedules.py b/pipelines/atividade_economica/dump_db/schedules.py index dbf7078..b396c3b 100644 --- a/pipelines/atividade_economica/dump_db/schedules.py +++ b/pipelines/atividade_economica/dump_db/schedules.py @@ -222,4 +222,3 @@ ) alvaras_infra_daily_update_schedule = Schedule(clocks=untuple(alvaras_infra_clocks)) - From e335fe01ebd113fbfcd40e32d71fb82dbcb9d55b Mon Sep 17 00:00:00 2001 From: PedroSiqueira1 Date: Wed, 30 Oct 2024 11:52:37 -0300 Subject: [PATCH 4/5] Dummy commit to registrer new models --- pipelines/templates/run_dbt_model/flows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelines/templates/run_dbt_model/flows.py b/pipelines/templates/run_dbt_model/flows.py index 2c36ed3..0f8db74 100644 --- a/pipelines/templates/run_dbt_model/flows.py +++ b/pipelines/templates/run_dbt_model/flows.py @@ -35,4 +35,4 @@ default_parameters=templates_run_dbt_model_smas_default_parameters, ) -# add comment to trigger build +# add comment to trigger build From ae12db2f19fd2118ee851fc13a27935920827700 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 30 Oct 2024 14:53:26 +0000 Subject: [PATCH 5/5] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pipelines/templates/run_dbt_model/flows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelines/templates/run_dbt_model/flows.py b/pipelines/templates/run_dbt_model/flows.py index 0f8db74..2c36ed3 100644 --- a/pipelines/templates/run_dbt_model/flows.py +++ b/pipelines/templates/run_dbt_model/flows.py @@ -35,4 +35,4 @@ default_parameters=templates_run_dbt_model_smas_default_parameters, ) -# add comment to trigger build +# add comment to trigger build