Skip to content

Commit

Permalink
Merge pull request #671 from basedosdados/add-test-in-diretorios
Browse files Browse the repository at this point in the history
[fix] br_bd_diretorios
  • Loading branch information
tricktx authored Jul 8, 2024
2 parents 42b62a3 + 29b7461 commit 36a2979
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
}}

select
safe_cast(ano as int64) ano,
safe_cast(id_distrito as string) id_distrito,
safe_cast(nome as string) nome,
safe_cast(id_municipio as string) id_municipio,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
}}

select
safe_cast(ano as int64) ano,
safe_cast(id_distrito as string) id_distrito,
safe_cast(nome as string) nome,
safe_cast(id_municipio as string) id_municipio,
Expand Down
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'

0 comments on commit 36a2979

Please sign in to comment.