Skip to content

Commit

Permalink
sobe pedidos LAI de educação especial em novo conjunto e move sinopse…
Browse files Browse the repository at this point in the history
… de educação especial para esse novo conjunto
  • Loading branch information
vilelaluiza committed Oct 18, 2024
1 parent d1d750a commit 667b933
Show file tree
Hide file tree
Showing 14 changed files with 445 additions and 231 deletions.
3 changes: 3 additions & 0 deletions dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ models:
br_inep_censo_escolar:
+materialized: table
+schema: br_inep_censo_escolar
br_inep_educacao_especial:
+materialized: table
+schema: br_inep_educacao_especial
br_inep_enem:
+materialized: table
+schema: br_inep_enem
Expand Down
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-dev.br_inep_educacao_especial_staging.distorcao_idade_serie` as t
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-dev.br_inep_educacao_especial_staging.docente_aee` as t
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-dev.br_inep_educacao_especial_staging.docente_formacao` as t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{
config(
alias="educacao_especial_etapa_ensino",
schema="br_inep_sinopse_estatistica_educacao_basica",
alias="etapa_ensino",
schema="br_inep_educacao_especial",
materialized="table",
partition_by={
"field": "ano",
Expand All @@ -24,6 +24,4 @@ select
end as string
) etapa_ensino,
safe_cast(quantidade_matricula as numeric) quantidade_matricula
from
`basedosdados-dev.br_inep_sinopse_estatistica_educacao_basica_staging.educacao_especial_etapa_ensino`
as t
from `basedosdados-dev.br_inep_educacao_especial_staging.etapa_ensino` as t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{
config(
alias="educacao_especial_faixa_etaria",
schema="br_inep_sinopse_estatistica_educacao_basica",
alias="faixa_etaria",
schema="br_inep_educacao_especial",
materialized="table",
partition_by={
"field": "ano",
Expand All @@ -18,6 +18,4 @@ select
safe_cast(tipo_classe as string) tipo_classe,
safe_cast(faixa_etaria as string) faixa_etaria,
safe_cast(quantidade_matricula as numeric) quantidade_matricula,
from
`basedosdados-dev.br_inep_sinopse_estatistica_educacao_basica_staging.educacao_especial_faixa_etaria`
as t
from `basedosdados-dev.br_inep_educacao_especial_staging.faixa_etaria` as t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{
config(
alias="educacao_especial_localizacao",
schema="br_inep_sinopse_estatistica_educacao_basica",
alias="localizacao",
schema="br_inep_educacao_especial",
materialized="table",
partition_by={
"field": "ano",
Expand All @@ -19,6 +19,4 @@ select
safe_cast(rede as string) rede,
safe_cast(localizacao as string) localizacao,
safe_cast(quantidade_matricula as numeric) quantidade_matricula,
from
`basedosdados-dev.br_inep_sinopse_estatistica_educacao_basica_staging.educacao_especial_localizacao`
as t
from `basedosdados-dev.br_inep_educacao_especial_staging.localizacao` as t
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-dev.br_inep_educacao_especial_staging.matricula_aee` as t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{
config(
alias="educacao_especial_sexo_raca_cor",
schema="br_inep_sinopse_estatistica_educacao_basica",
alias="sexo_raca_cor",
schema="br_inep_educacao_especial",
materialized="table",
partition_by={
"field": "ano",
Expand All @@ -21,6 +21,4 @@ select
case when raca_cor = 'Fmarela' then 'Amarela' else raca_cor end as string
) raca_cor,
safe_cast(quantidade_matricula as numeric) quantidade_matricula,
from
`basedosdados-dev.br_inep_sinopse_estatistica_educacao_basica_staging.educacao_especial_sexo_raca_cor`
as t
from `basedosdados-dev.br_inep_educacao_especial_staging.sexo_raca_cor` as t
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-dev.br_inep_educacao_especial_staging.taxa_rendimento` as t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{
config(
alias="educacao_especial_tempo_ensino",
schema="br_inep_sinopse_estatistica_educacao_basica",
alias="tempo_ensino",
schema="br_inep_educacao_especial",
materialized="table",
partition_by={
"field": "ano",
Expand All @@ -19,6 +19,4 @@ select
safe_cast(rede as string) rede,
safe_cast(tempo_ensino as string) tempo_ensino,
safe_cast(quantidade_matricula as numeric) quantidade_matricula,
from
`basedosdados-dev.br_inep_sinopse_estatistica_educacao_basica_staging.educacao_especial_tempo_ensino`
as t
from `basedosdados-dev.br_inep_educacao_especial_staging.tempo_ensino` as t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{
config(
alias="educacao_especial_tipo_deficiencia",
schema="br_inep_sinopse_estatistica_educacao_basica",
alias="tipo_deficiencia",
schema="br_inep_educacao_especial",
materialized="table",
partition_by={
"field": "ano",
Expand All @@ -24,6 +24,4 @@ select
end as string
) tipo_deficiencia,
safe_cast(quantidade_matricula as numeric) quantidade_matricula,
from
`basedosdados-dev.br_inep_sinopse_estatistica_educacao_basica_staging.educacao_especial_tipo_deficiencia`
as t
from `basedosdados-dev.br_inep_educacao_especial_staging.tipo_deficiencia` as t
Loading

0 comments on commit 667b933

Please sign in to comment.