From 05741e4c3f746eccfbef8374048b8d0b52c8a11b Mon Sep 17 00:00:00 2001 From: PedroSiqueira1 Date: Mon, 13 Jan 2025 19:19:17 -0300 Subject: [PATCH] fix: Fix columns errors --- pipelines/sislic/dump_db_sislic/schedules.py | 4 ++-- pipelines/templates/run_dbt_model/flows.py | 2 +- queries/models/adm_licenca_urbanismo/alvara_obra_privada.sql | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pipelines/sislic/dump_db_sislic/schedules.py b/pipelines/sislic/dump_db_sislic/schedules.py index 8f57a2d..8754e7e 100644 --- a/pipelines/sislic/dump_db_sislic/schedules.py +++ b/pipelines/sislic/dump_db_sislic/schedules.py @@ -1113,9 +1113,9 @@ SELECT cod_dlf, tipo, - Nr_documento, + Nr_documento - FROM SMU_PRD.dbo.tbLIC_DocCancelados + FROM SMU_PRD.dbo.tbLIC_DocCancelados """, "biglake_table": True, }, diff --git a/pipelines/templates/run_dbt_model/flows.py b/pipelines/templates/run_dbt_model/flows.py index b4403b7..4e1faa4 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_smdue_default_parameters, ) -# RUN DBT MODEL +# RUN DBT MODEL ! diff --git a/queries/models/adm_licenca_urbanismo/alvara_obra_privada.sql b/queries/models/adm_licenca_urbanismo/alvara_obra_privada.sql index bc024b3..d7b5da0 100644 --- a/queries/models/adm_licenca_urbanismo/alvara_obra_privada.sql +++ b/queries/models/adm_licenca_urbanismo/alvara_obra_privada.sql @@ -7,7 +7,7 @@ CAST(dt_emissao AS DATETIME) AS data_emissao, CAST(dt_inicio_validade AS DATETIME) AS data_inicio_validade, CAST(dt_venc AS DATETIME) AS data_vencimento, CAST(CAST(prazo AS FLOAT64) AS int64) AS prazo, -CAST(CAST(Dt_alvara AS DATETIME) AS int64) AS data_passe_alvara, +CAST(Dt_alvara AS DATETIME) AS data_passe_alvara, num_darm_pg AS numero_darm_pago, CAST(vl_lic AS float64) AS valor_darm, requerente AS requerente,