Skip to content

Commit

Permalink
update cep test
Browse files Browse the repository at this point in the history
  • Loading branch information
folhesgabriel committed Jun 13, 2024
1 parent 06cf16f commit b1b9fb9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions models/br_bcb_agencia/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ models:
- relationships:
to: ref('br_bd_diretorios_data_tempo__data')
field: mes
config:
where: __most_recent_year_month__
- name: sigla_uf
description: Sigla da Unidade da Federação
tests:
Expand All @@ -37,6 +39,8 @@ models:
- relationships:
to: ref('br_bd_diretorios_brasil__municipio')
field: id_municipio
config:
where: __most_recent_year_month__
- dbt_utils.not_null_proportion:
at_least: 0.95
config:
Expand Down Expand Up @@ -65,9 +69,10 @@ models:
- name: cep
description: CEP
tests:
- relationships:
- custom_relationships:
to: ref('br_bd_diretorios_brasil__cep')
field: cep
field: cep.cep
proportion_allowed_failures: 20
config:
where: __most_recent_year_month__
- dbt_utils.not_null_proportion:
Expand Down

0 comments on commit b1b9fb9

Please sign in to comment.