Skip to content

Commit

Permalink
Merge branch 'main' into trigger-saeb-dicionario
Browse files Browse the repository at this point in the history
  • Loading branch information
aspeddro authored Sep 9, 2024
2 parents f539835 + 4885e36 commit c4de1e8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models/br_bcb_sicor/br_bcb_sicor__microdados_liberacao.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ select
safe_cast(ano as int64) ano,
safe_cast(mes as int64) mes,
safe_cast(data_liberacao as date) data_liberacao,
safe_cast(id_referencia_bacen as string) id_referencia_bacen,
safe_cast(numero_ordem as string) numero_ordem,
safe_cast(valor_liberado as float64) valor_liberado
safe_cast(valor_liberado as string) id_referencia_bacen,
safe_cast(id_referencia_bacen as string) numero_ordem,
safe_cast(numero_ordem as float64) valor_liberado
from `basedosdados-staging.br_bcb_sicor_staging.microdados_liberacao` as t
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 c4de1e8

Please sign in to comment.