-
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.
Merge pull request #257 from basedosdados/world_wb_mides_continuation
`world_wb_mides`
- Loading branch information
Showing
8 changed files
with
608 additions
and
100 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{ | ||
config( | ||
schema = "world_wb_mides", | ||
materialized = "table" | ||
) | ||
}} | ||
SELECT | ||
SAFE_CAST(id_tabela AS STRING) id_tabela, | ||
SAFE_CAST(coluna AS STRING) coluna, | ||
SAFE_CAST(chave AS STRING) chave, | ||
SAFE_CAST(cobertura_temporal AS STRING) cobertura_temporal, | ||
SAFE_CAST(valor AS STRING) valor | ||
FROM basedosdados-staging.world_wb_mides_staging.dicionario AS t |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{ | ||
config( | ||
schema = "world_wb_mides", | ||
materialized = "table", | ||
cluster_by = ["sigla_uf"], | ||
labels = {"project_id": "basedosdados", "tema": "economia"} | ||
) | ||
}} | ||
SELECT | ||
SAFE_CAST(ano AS STRING) ano, | ||
SAFE_CAST(sigla_uf AS STRING) sigla_uf, | ||
SAFE_CAST(id_municipio AS STRING) id_municipio, | ||
SAFE_CAST(orgao AS STRING) orgao, | ||
SAFE_CAST(nome_orgao AS STRING) nome_orgao, | ||
SAFE_CAST(id_unidade_gestora AS STRING) id_unidade_gestora, | ||
SAFE_CAST(nome_unidade_gestora AS STRING) nome_unidade_gestora, | ||
SAFE_CAST(esfera AS STRING) esfera | ||
FROM basedosdados-staging.world_wb_mides_staging.orgao_unidade_gestora AS t |
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
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