diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__despesas_candidato.sql b/models/br_tse_eleicoes/br_tse_eleicoes__despesas_candidato.sql index d8f5f6d7..011633c2 100644 --- a/models/br_tse_eleicoes/br_tse_eleicoes__despesas_candidato.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__despesas_candidato.sql @@ -1,16 +1,15 @@ -select - {{ - config( - schema="br_tse_eleicoes", - alias="despesas_candidato", - materialized="table", - partition_by={ - "field": "ano", - "data_type": "int64", - "range": {"start": 2002, "end": 2022, "interval": 2}, - }, - ) - }} +{{ + config( + schema="br_tse_eleicoes", + alias="despesas_candidato", + materialized="table", + partition_by={ + "field": "ano", + "data_type": "int64", + "range": {"start": 2002, "end": 2022, "interval": 2}, + }, + ) +}} select safe_cast(ano as int64) ano, safe_cast(turno as int64) turno,