Skip to content

Commit

Permalink
Adicionar test microdados
Browse files Browse the repository at this point in the history
  • Loading branch information
Winzen committed Sep 5, 2024
1 parent 2dfb4c4 commit 9e1c0e5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions models/br_ibge_pnadc/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,40 @@ version: 2
models:
- name: br_ibge_pnadc__microdados
description: Microdados PNADC
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns: [ano, trimestre, id_pessoa]
columns:
- name: ano
description: Ano
tests:
- relationships:
to: ref('br_bd_diretorios_data_tempo__ano')
field: ano.ano
- name: trimestre
description: Trimestre
tests:
- relationships:
to: ref('br_bd_diretorios_data_tempo__trimestre')
field: trimestre
- name: id_uf
description: ID Unidade da Federação
tests:
- relationships:
to: ref('br_bd_diretorios_brasil__uf')
field: id_uf
- name: sigla_uf
description: Sigla da Unidade da Federação
tests:
- relationships:
to: ref('br_bd_diretorios_brasil__uf')
field: sigla
- name: capital
description: Município da Capital
tests:
- relationships:
to: ref('br_bd_diretorios_brasil__uf')
field: id_uf
- name: rm_ride
description: Região Metropolitana e Região Administrativa Integrada
- name: id_upa
Expand Down

0 comments on commit 9e1c0e5

Please sign in to comment.