Skip to content

Commit

Permalink
Merge pull request #593 from basedosdados/staging/br_tse_eleicoes
Browse files Browse the repository at this point in the history
[update]br_tse_eleicoes.bens_candidato
  • Loading branch information
Winzen authored Aug 15, 2024
2 parents 62e558a + 10e99b4 commit 22d68bf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 2 additions & 0 deletions models/br_tse_eleicoes/br_tse_eleicoes__bens_candidato.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
select
safe_cast(ano as int64) ano,
safe_cast(sigla_uf as string) sigla_uf,
safe_cast(id_eleicao as string) id_eleicao,
safe_cast(tipo_eleicao as string) tipo_eleicao,
safe_cast(data_eleicao as string) data_eleicao,
safe_cast(sequencial_candidato as string) sequencial_candidato,
safe_cast(id_candidato_bd as string) id_candidato_bd,
safe_cast(id_tipo_item as string) id_tipo_item,
Expand Down
18 changes: 13 additions & 5 deletions models/br_tse_eleicoes/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,38 @@ models:
description: Declaração de bens de candidatos em eleições brasileiras.
tests:
- not_null_proportion_multiple_columns:
at_least: 0.05
at_least: 0.95
columns:
- name: ano
description: Ano
tests:
- relationships:
to: ref('br_bd_diretorios_data_tempo__ano')
field: ano.ano
- name: data_eleicao
description: Data da eleição
- name: descricao_item
description: Descrição do Item
description: Descrição do item
- name: id_candidato_bd
description: ID Candidato - Base dos Dados
- name: id_eleicao
description: ID Eleição
- name: id_tipo_item
description: ID Tipo Item
- name: sequencial_candidato
description: Sequencial do Candidato
- name: sigla_uf
description: Sigla da Unidade da Federação
tests:
- relationships:
to: ref('br_bd_diretorios_brasil__uf')
field: sigla
- name: tipo_eleicao
description: Tipo da Eleição
description: Tipo da eleição
- name: tipo_item
description: Tipo Item
description: Tipo do item
- name: valor_item
description: Valor do Item
description: Valor do item
- name: br_tse_eleicoes__candidatos
description: Dados de candidatos em eleições brasileiras.
tests:
Expand Down

0 comments on commit 22d68bf

Please sign in to comment.