-
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 #794 from basedosdados/pedidos_lai
[dbt] br_inep_educacao_especial
- Loading branch information
Showing
19 changed files
with
6,874 additions
and
231 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
14 changes: 14 additions & 0 deletions
14
models/br_inep_educacao_especial/br_inep_educacao_especial__distorcao_idade_serie.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,14 @@ | ||
{{ | ||
config( | ||
alias="distorcao_idade_serie", | ||
schema="br_inep_educacao_especial", | ||
materialized="table", | ||
) | ||
}} | ||
|
||
select | ||
safe_cast(ano as int64) ano, | ||
safe_cast(sigla_uf as string) sigla_uf, | ||
safe_cast(etapa_ensino as string) etapa_ensino, | ||
safe_cast(tdi as numeric) tdi, | ||
from `basedosdados-staging.br_inep_educacao_especial_staging.distorcao_idade_serie` as t |
21 changes: 21 additions & 0 deletions
21
models/br_inep_educacao_especial/br_inep_educacao_especial__docente_aee.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,21 @@ | ||
{{ | ||
config( | ||
alias="docente_aee", | ||
schema="br_inep_educacao_especial", | ||
materialized="table", | ||
) | ||
}} | ||
|
||
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(quantidade_docente_regente as int64) quantidade_docente_regente, | ||
safe_cast(quantidade_docente_aee as int64) quantidade_docente_aee, | ||
safe_cast( | ||
quantidade_docente_regente_formacao_continuada as int64 | ||
) quantidade_docente_regente_formacao_continuada, | ||
safe_cast( | ||
quantidade_docente_aee_formacao_continuada as int64 | ||
) quantidade_docente_aee_formacao_continuada, | ||
from `basedosdados-staging.br_inep_educacao_especial_staging.docente_aee` as t |
18 changes: 18 additions & 0 deletions
18
models/br_inep_educacao_especial/br_inep_educacao_especial__docente_formacao.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,18 @@ | ||
{{ | ||
config( | ||
alias="docente_formacao", | ||
schema="br_inep_educacao_especial", | ||
materialized="table", | ||
) | ||
}} | ||
|
||
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(rede as string) rede, | ||
safe_cast( | ||
quantidade_docente_formacao_continuada as int64 | ||
) quantidade_docente_formacao_continuada, | ||
|
||
from `basedosdados-staging.br_inep_educacao_especial_staging.docente_formacao` 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
16 changes: 16 additions & 0 deletions
16
models/br_inep_educacao_especial/br_inep_educacao_especial__matricula_aee.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,16 @@ | ||
{{ | ||
config( | ||
alias="matricula_aee", | ||
schema="br_inep_educacao_especial", | ||
materialized="table", | ||
) | ||
}} | ||
|
||
select | ||
safe_cast(ano as int64) ano, | ||
safe_cast(sigla_uf as string) sigla_uf, | ||
safe_cast(rede as string) rede, | ||
safe_cast(quantidade_matricula as int64) quantidade_matricula, | ||
safe_cast(quantidade_matricula_aee as int64) quantidade_matricula_aee, | ||
|
||
from `basedosdados-staging.br_inep_educacao_especial_staging.matricula_aee` 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
16 changes: 16 additions & 0 deletions
16
models/br_inep_educacao_especial/br_inep_educacao_especial__taxa_rendimento.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,16 @@ | ||
{{ | ||
config( | ||
alias="taxa_rendimento", | ||
schema="br_inep_educacao_especial", | ||
materialized="table", | ||
) | ||
}} | ||
|
||
select | ||
safe_cast(ano as int64) ano, | ||
safe_cast(sigla_uf as string) sigla_uf, | ||
safe_cast(etapa_ensino as string) etapa_ensino, | ||
safe_cast(taxa_aprovacao as numeric) taxa_aprovacao, | ||
safe_cast(taxa_reprovacao as numeric) taxa_reprovacao, | ||
safe_cast(taxa_abandono as numeric) taxa_abandono, | ||
from `basedosdados-staging.br_inep_educacao_especial_staging.taxa_rendimento` 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
Oops, something went wrong.