Skip to content

Commit

Permalink
fix: measurement unit to x1000
Browse files Browse the repository at this point in the history
  • Loading branch information
rdahis committed Aug 14, 2024
1 parent 872d685 commit 444ed6d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions models/br_ibge_pib/br_ibge_pib__municipio.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 444ed6d

Please sign in to comment.