-
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 #671 from basedosdados/add-test-in-diretorios
[fix] br_bd_diretorios
- Loading branch information
Showing
3 changed files
with
15 additions
and
2 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
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
15 changes: 15 additions & 0 deletions
15
models/br_bd_diretorios_brasil/br_bd_diretorios_brasil__distrito_2010.sql
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,15 @@ | ||
{{ | ||
config( | ||
alias="distrito_2010", | ||
schema="br_bd_diretorios_brasil", | ||
materialized="table", | ||
) | ||
}} | ||
|
||
select | ||
safe_cast(id_distrito as string) id_distrito, | ||
safe_cast(nome as string) nome, | ||
safe_cast(id_municipio as string) id_municipio, | ||
safe_cast(sigla_uf as string) sigla_uf | ||
from `basedosdados-staging.br_bd_diretorios_brasil_staging.distrito` | ||
where ano = '2010' |