Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix]br_ibge_pnadc.microdados #756

Merged
merged 2 commits into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading