From 444ed6d96a839bd1fcb19ba02db0b38e64b99c9c Mon Sep 17 00:00:00 2001 From: Ricardo Dahis Date: Wed, 14 Aug 2024 17:57:33 +1000 Subject: [PATCH] fix: measurement unit to x1000 --- models/br_ibge_pib/br_ibge_pib__municipio.sql | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/models/br_ibge_pib/br_ibge_pib__municipio.sql b/models/br_ibge_pib/br_ibge_pib__municipio.sql index 635e3f1c..2f6da94a 100644 --- a/models/br_ibge_pib/br_ibge_pib__municipio.sql +++ b/models/br_ibge_pib/br_ibge_pib__municipio.sql @@ -2,11 +2,11 @@ select safe_cast(id_municipio as string) id_municipio, safe_cast(ano as int64) ano, - safe_cast(pib as int64) pib, - safe_cast(impostos_liquidos as int64) impostos_liquidos, - safe_cast(va as int64) va, - safe_cast(va_agropecuaria as int64) va_agropecuaria, - safe_cast(va_industria as int64) va_industria, - safe_cast(va_servicos as int64) va_servicos, - safe_cast(va_adespss as int64) va_adespss + safe_cast(1000 * pib as int64) pib, + safe_cast(1000 * impostos_liquidos as int64) impostos_liquidos, + safe_cast(1000 * va as int64) va, + safe_cast(1000 * va_agropecuaria as int64) va_agropecuaria, + safe_cast(1000 * va_industria as int64) va_industria, + safe_cast(1000 * va_servicos as int64) va_servicos, + safe_cast(1000 * va_adespss as int64) va_adespss from `basedosdados-staging.br_ibge_pib_staging.municipio` as t