-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
1,531 additions
and
477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.