diff --git a/models/br_bcb_taxa_cambio/taxa_cambio.sql b/models/br_bcb_taxa_cambio/taxa_cambio.sql index 9a1c0c1f..45303091 100644 --- a/models/br_bcb_taxa_cambio/taxa_cambio.sql +++ b/models/br_bcb_taxa_cambio/taxa_cambio.sql @@ -4,7 +4,7 @@ ) }} select - safe_cast(ano as string) as ano, + safe_cast(ano as string) ano, safe_cast(data_cotacao as date) data_cotacao, safe_cast(hora_cotacao as time) hora_cotacao, safe_cast(moeda as string) moeda, diff --git a/models/br_mme_consumo_energia_eletrica/br_mme_consumo_energia_eletrica__uf.sql b/models/br_mme_consumo_energia_eletrica/br_mme_consumo_energia_eletrica__uf.sql index 607cd4f0..620f7a43 100644 --- a/models/br_mme_consumo_energia_eletrica/br_mme_consumo_energia_eletrica__uf.sql +++ b/models/br_mme_consumo_energia_eletrica/br_mme_consumo_energia_eletrica__uf.sql @@ -15,5 +15,5 @@ select then null else safe_cast(numero_consumidores as int64) end as numero_consumidores, - safe_cast(consumo as float64) as consumo + safe_cast(consumo as int64) as consumo from `basedosdados-staging.br_mme_consumo_energia_eletrica_staging.uf` as t