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_tse_eleicoes_candidato #428

Merged
merged 1 commit into from
Feb 9, 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
18 changes: 9 additions & 9 deletions models/br_tse_eleicoes/br_tse_eleicoes__candidatos.sql
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ SAFE_CAST(sigla_uf_nascimento AS STRING) sigla_uf_nascimento,
SAFE_CAST(municipio_nascimento AS STRING) municipio_nascimento,
SAFE_CAST(email AS STRING) email,
SAFE_CAST(raca AS STRING) raca,
SAFE_CAST(situacao_totalizacao AS STRING) situacao_totalizacao,
SAFE_CAST(numero_federacao AS STRING) numero_federacao,
SAFE_CAST(nome_federacao AS STRING) nome_federacao,
SAFE_CAST(sigla_federacao AS STRING) sigla_federacao,
SAFE_CAST(composicao_federacao AS STRING) composicao_federacao,
CASE
WHEN prestou_contas='N' THEN 'Não'
WHEN prestou_contas='S' THEN 'Sim'
END AS prestou_contas
-- SAFE_CAST(situacao_totalizacao AS STRING) situacao_totalizacao,
-- SAFE_CAST(numero_federacao AS STRING) numero_federacao,
-- SAFE_CAST(nome_federacao AS STRING) nome_federacao,
-- SAFE_CAST(sigla_federacao AS STRING) sigla_federacao,
-- SAFE_CAST(composicao_federacao AS STRING) composicao_federacao,
-- CASE
-- WHEN prestou_contas='N' THEN 'Nao'
-- WHEN prestou_contas='S' THEN 'Sim'
-- END AS prestou_contas
FROM basedosdados-staging.br_tse_eleicoes_staging.candidatos AS t
Loading