Skip to content

Commit

Permalink
Merge pull request #600 from basedosdados/br-sinan-dengue
Browse files Browse the repository at this point in the history
[br_ms_sinan] model dbt and tests in table microdados_dengue
  • Loading branch information
tricktx authored May 16, 2024
2 parents 4bdafb6 + 3d2cdfb commit 3133b3a
Show file tree
Hide file tree
Showing 3 changed files with 1,490 additions and 436 deletions.
11 changes: 8 additions & 3 deletions models/br_ms_sinan/br_ms_sinan__dicionario.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{{ config(alias="dicionario", schema="br_ms_sinan") }}
{{
config(
alias="dicionario",
schema="br_ms_sinan",
)
}}
select
safe_cast(id_tabela as string) id_tabela,
safe_cast(coluna as string) nome_coluna,
safe_cast(chave as string) chave,
safe_cast(cobertura_temporal as string) cobertura_temporal,
safe_cast(valor as string) valor,
safe_cast(replace(cobertura_temporal, '-1', '(1)') as string) cobertura_temporal,
safe_cast(valor as string) valor
from `basedosdados-staging.br_ms_sinan_staging.dicionario` as t
Loading

0 comments on commit 3133b3a

Please sign in to comment.