From e5e3e2c8a9d94ceee4c48c0d2cdd6bebbc9c8647 Mon Sep 17 00:00:00 2001 From: uiro-bi Date: Thu, 1 Aug 2024 15:38:56 -0300 Subject: [PATCH 1/2] feat: remove not_null_multiple_columns test --- models/br_me_comex_stat/schema.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/models/br_me_comex_stat/schema.yml b/models/br_me_comex_stat/schema.yml index 59622845..ae7d19e8 100644 --- a/models/br_me_comex_stat/schema.yml +++ b/models/br_me_comex_stat/schema.yml @@ -13,10 +13,6 @@ models: - id_pais - sigla_uf - id_municipio - - not_null_proportion_multiple_columns: - at_least: 0.05 - config: - where: __most_recent_year_month__ columns: - name: ano description: Ano @@ -68,10 +64,6 @@ models: - id_municipio config: where: __most_recent_year_month__ - - not_null_proportion_multiple_columns: - at_least: 0.05 - config: - where: __most_recent_year_month__ columns: - name: ano description: Ano @@ -124,10 +116,6 @@ models: - id_urf config: where: __most_recent_year_month__ - - not_null_proportion_multiple_columns: - at_least: 0.05 - config: - where: __most_recent_year_month__ columns: - name: ano description: Ano @@ -189,10 +177,6 @@ models: - id_urf config: where: __most_recent_year_month__ - - not_null_proportion_multiple_columns: - at_least: 0.05 - config: - where: __most_recent_year_month__ columns: - name: ano description: Ano @@ -247,8 +231,6 @@ models: - nome_coluna - chave - cobertura_temporal - - not_null_proportion_multiple_columns: - at_least: 0.05 columns: - name: id_tabela description: ID da tabela From e33b5156632bf6b06bb2d3e265b953b5a9185a08 Mon Sep 17 00:00:00 2001 From: uiro-bi Date: Thu, 1 Aug 2024 16:13:02 -0300 Subject: [PATCH 2/2] fix: siconfi linter --- .../br_me_siconfi/br_me_siconfi__municipio_despesas_funcao.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/br_me_siconfi/br_me_siconfi__municipio_despesas_funcao.sql b/models/br_me_siconfi/br_me_siconfi__municipio_despesas_funcao.sql index a8ffaed8..7cbcaf95 100644 --- a/models/br_me_siconfi/br_me_siconfi__municipio_despesas_funcao.sql +++ b/models/br_me_siconfi/br_me_siconfi__municipio_despesas_funcao.sql @@ -11,6 +11,7 @@ ) }} + select safe_cast(ano as int64) ano, safe_cast(sigla_uf as string) sigla_uf, @@ -22,4 +23,4 @@ select safe_cast(id_conta_bd as string) id_conta_bd, safe_cast(conta_bd as string) conta_bd, safe_cast(valor as float64) valor -from `basedosdados-staging.br_me_siconfi_staging.municipio_despesas_funcao` as t \ No newline at end of file +from `basedosdados-staging.br_me_siconfi_staging.municipio_despesas_funcao` as t