Skip to content

Commit

Permalink
Merge pull request #756 from basedosdados/staging/br_ibge_pnadc
Browse files Browse the repository at this point in the history
[fix]br_ibge_pnadc.microdados
  • Loading branch information
Winzen authored Sep 5, 2024
2 parents 7980586 + d1347d1 commit 4885e36
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 4885e36

Please sign in to comment.