Skip to content

Commit

Permalink
add model dbt sinan dengue
Browse files Browse the repository at this point in the history
  • Loading branch information
tricktx committed May 15, 2024
1 parent 559c36c commit 66b96e6
Show file tree
Hide file tree
Showing 4 changed files with 1,531 additions and 477 deletions.
13 changes: 9 additions & 4 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,
from `basedosdados-staging.br_ms_sinan_staging.dicionario` as t
safe_cast(replace(cobertura_temporal, '-1', '(1)') as string) cobertura_temporal,
safe_cast(valor as string) valor
from `basedosdados-dev.br_ms_sinan_staging.dicionario` as t
Loading

0 comments on commit 66b96e6

Please sign in to comment.