-
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 branch 'main' into add-taxa-alfabetizacao-saeb
- Loading branch information
Showing
11 changed files
with
424 additions
and
3 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
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
24 changes: 24 additions & 0 deletions
24
models/br_me_siconfi/br_me_siconfi__municipio_balanco_patrimonial.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,24 @@ | ||
{{ | ||
config( | ||
schema="br_me_siconfi", | ||
alias="municipio_balanco_patrimonial", | ||
materialized="table", | ||
partition_by={ | ||
"field": "ano", | ||
"data_type": "int64", | ||
"range": {"start": 1998, "end": 2024, "interval": 1}, | ||
}, | ||
) | ||
}} | ||
|
||
|
||
select | ||
safe_cast(ano as int64) ano, | ||
safe_cast(sigla_uf as string) sigla_uf, | ||
safe_cast(id_municipio as string) id_municipio, | ||
safe_cast(portaria as string) portaria, | ||
safe_cast(conta as string) conta, | ||
safe_cast(id_conta_bd as string) id_conta_bd, | ||
safe_cast(conta_bd as string) conta_bd, | ||
safe_cast(valor as float64) valor | ||
from `basedosdados-staging.br_me_siconfi_staging.municipio_balanco_patrimonial` as t |
25 changes: 25 additions & 0 deletions
25
models/br_me_siconfi/br_me_siconfi__municipio_despesas_funcao.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,25 @@ | ||
{{ | ||
config( | ||
schema="br_me_siconfi", | ||
alias="municipio_despesas_funcao", | ||
materialized="table", | ||
partition_by={ | ||
"field": "ano", | ||
"data_type": "int64", | ||
"range": {"start": 2004, "end": 2024, "interval": 1}, | ||
}, | ||
) | ||
}} | ||
|
||
select | ||
safe_cast(ano as int64) ano, | ||
safe_cast(sigla_uf as string) sigla_uf, | ||
safe_cast(id_municipio as string) id_municipio, | ||
safe_cast(estagio as string) estagio, | ||
safe_cast(portaria as string) portaria, | ||
safe_cast(conta as string) conta, | ||
safe_cast(estagio_bd as string) estagio_bd, | ||
safe_cast(id_conta_bd as string) id_conta_bd, | ||
safe_cast(conta_bd as string) conta_bd, | ||
safe_cast(valor as float64) valor | ||
from `basedosdados-staging.br_me_siconfi_staging.municipio_despesas_funcao` as t |
25 changes: 25 additions & 0 deletions
25
models/br_me_siconfi/br_me_siconfi__municipio_despesas_orcamentarias.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,25 @@ | ||
{{ | ||
config( | ||
schema="br_me_siconfi", | ||
alias="municipio_despesas_orcamentarias", | ||
materialized="table", | ||
partition_by={ | ||
"field": "ano", | ||
"data_type": "int64", | ||
"range": {"start": 1989, "end": 2024, "interval": 1}, | ||
}, | ||
) | ||
}} | ||
|
||
select | ||
safe_cast(ano as int64) ano, | ||
safe_cast(sigla_uf as string) sigla_uf, | ||
safe_cast(id_municipio as string) id_municipio, | ||
safe_cast(estagio as string) estagio, | ||
safe_cast(portaria as string) portaria, | ||
safe_cast(conta as string) conta, | ||
safe_cast(estagio_bd as string) estagio_bd, | ||
safe_cast(id_conta_bd as string) id_conta_bd, | ||
safe_cast(conta_bd as string) conta_bd, | ||
safe_cast(valor as float64) valor | ||
from `basedosdados-staging.br_me_siconfi_staging.municipio_despesas_orcamentarias` as t |
25 changes: 25 additions & 0 deletions
25
models/br_me_siconfi/br_me_siconfi__municipio_receitas_orcamentarias.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,25 @@ | ||
{{ | ||
config( | ||
schema="br_me_siconfi", | ||
alias="municipio_receitas_orcamentarias", | ||
materialized="table", | ||
partition_by={ | ||
"field": "ano", | ||
"data_type": "int64", | ||
"range": {"start": 1989, "end": 2024, "interval": 1}, | ||
}, | ||
) | ||
}} | ||
|
||
select | ||
safe_cast(ano as int64) ano, | ||
safe_cast(sigla_uf as string) sigla_uf, | ||
safe_cast(id_municipio as string) id_municipio, | ||
safe_cast(estagio as string) estagio, | ||
safe_cast(portaria as string) portaria, | ||
safe_cast(conta as string) conta, | ||
safe_cast(estagio_bd as string) estagio_bd, | ||
safe_cast(id_conta_bd as string) id_conta_bd, | ||
safe_cast(conta_bd as string) conta_bd, | ||
safe_cast(valor as float64) valor | ||
from `basedosdados-staging.br_me_siconfi_staging.municipio_receitas_orcamentarias` as t |
25 changes: 25 additions & 0 deletions
25
models/br_me_siconfi/br_me_siconfi__uf_despesas_funcao.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,25 @@ | ||
{{ | ||
config( | ||
schema="br_me_siconfi", | ||
alias="uf_despesas_funcao", | ||
materialized="table", | ||
partition_by={ | ||
"field": "ano", | ||
"data_type": "int64", | ||
"range": {"start": 2013, "end": 2024, "interval": 1}, | ||
}, | ||
) | ||
}} | ||
|
||
select | ||
safe_cast(ano as int64) ano, | ||
safe_cast(sigla_uf as string) sigla_uf, | ||
safe_cast(id_uf as string) id_uf, | ||
safe_cast(estagio as string) estagio, | ||
safe_cast(portaria as string) portaria, | ||
safe_cast(conta as string) conta, | ||
safe_cast(estagio_bd as string) estagio_bd, | ||
safe_cast(id_conta_bd as string) id_conta_bd, | ||
safe_cast(conta_bd as string) conta_bd, | ||
safe_cast(valor as float64) valor | ||
from `basedosdados-staging.br_me_siconfi_staging.uf_despesas_funcao` as t |
25 changes: 25 additions & 0 deletions
25
models/br_me_siconfi/br_me_siconfi__uf_despesas_orcamentarias.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,25 @@ | ||
{{ | ||
config( | ||
schema="br_me_siconfi", | ||
alias="uf_despesas_orcamentarias", | ||
materialized="table", | ||
partition_by={ | ||
"field": "ano", | ||
"data_type": "int64", | ||
"range": {"start": 2013, "end": 2024, "interval": 1}, | ||
}, | ||
) | ||
}} | ||
|
||
select | ||
safe_cast(ano as int64) ano, | ||
safe_cast(sigla_uf as string) sigla_uf, | ||
safe_cast(id_uf as string) id_uf, | ||
safe_cast(estagio as string) estagio, | ||
safe_cast(portaria as string) portaria, | ||
safe_cast(conta as string) conta, | ||
safe_cast(estagio_bd as string) estagio_bd, | ||
safe_cast(id_conta_bd as string) id_conta_bd, | ||
safe_cast(conta_bd as string) conta_bd, | ||
safe_cast(valor as float64) valor | ||
from `basedosdados-staging.br_me_siconfi_staging.uf_despesas_orcamentarias` as t |
25 changes: 25 additions & 0 deletions
25
models/br_me_siconfi/br_me_siconfi__uf_receitas_orcamentarias.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,25 @@ | ||
{{ | ||
config( | ||
schema="br_me_siconfi", | ||
alias="uf_receitas_orcamentarias", | ||
materialized="table", | ||
partition_by={ | ||
"field": "ano", | ||
"data_type": "int64", | ||
"range": {"start": 2013, "end": 2024, "interval": 1}, | ||
}, | ||
) | ||
}} | ||
|
||
select | ||
safe_cast(ano as int64) ano, | ||
safe_cast(sigla_uf as string) sigla_uf, | ||
safe_cast(id_uf as string) id_uf, | ||
safe_cast(estagio as string) estagio, | ||
safe_cast(portaria as string) portaria, | ||
safe_cast(conta as string) conta, | ||
safe_cast(estagio_bd as string) estagio_bd, | ||
safe_cast(id_conta_bd as string) id_conta_bd, | ||
safe_cast(conta_bd as string) conta_bd, | ||
safe_cast(valor as float64) valor | ||
from `basedosdados-staging.br_me_siconfi_staging.uf_receitas_orcamentarias` as t |
Oops, something went wrong.