-
Notifications
You must be signed in to change notification settings - Fork 1
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 #586 from basedosdados/educacao_especial
[dbt] br_inep_sinopse_educacao_basica__educacao_especial
- Loading branch information
Showing
7 changed files
with
338 additions
and
20 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
...ao_basica/br_inep_sinopse_estatistica_educacao_basica__educacao_especial_etapa_ensino.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,23 @@ | ||
{{ | ||
config( | ||
alias="educacao_especial_etapa_ensino", | ||
schema="br_inep_sinopse_estatistica_educacao_basica", | ||
materialized="table", | ||
partition_by={ | ||
"field": "ano", | ||
"data_type": "int64", | ||
"range": {"start": 2007, "end": 2023, "interval": 1}, | ||
}, | ||
cluster_by="sigla_uf", | ||
) | ||
}} | ||
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(tipo_classe as string) tipo_classe, | ||
safe_cast(etapa_ensino as string) etapa_ensino, | ||
safe_cast(quantidade_matricula as int64) quantidade_matricula, | ||
from | ||
`basedosdados-dev.br_inep_sinopse_estatistica_educacao_basica_staging.educacao_especial_etapa_ensino` | ||
as t |
23 changes: 23 additions & 0 deletions
23
...ao_basica/br_inep_sinopse_estatistica_educacao_basica__educacao_especial_faixa_etaria.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,23 @@ | ||
{{ | ||
config( | ||
alias="educacao_especial_faixa_etaria", | ||
schema="br_inep_sinopse_estatistica_educacao_basica", | ||
materialized="table", | ||
partition_by={ | ||
"field": "ano", | ||
"data_type": "int64", | ||
"range": {"start": 2007, "end": 2023, "interval": 1}, | ||
}, | ||
cluster_by="sigla_uf", | ||
) | ||
}} | ||
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(tipo_classe as string) tipo_classe, | ||
safe_cast(faixa_etaria as string) faixa_etaria, | ||
safe_cast(quantidade_matricula as int64) quantidade_matricula, | ||
from | ||
`basedosdados-dev.br_inep_sinopse_estatistica_educacao_basica_staging.educacao_especial_faixa_etaria` | ||
as t |
24 changes: 24 additions & 0 deletions
24
...cao_basica/br_inep_sinopse_estatistica_educacao_basica__educacao_especial_localizacao.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( | ||
alias="educacao_especial_localizacao", | ||
schema="br_inep_sinopse_estatistica_educacao_basica", | ||
materialized="table", | ||
partition_by={ | ||
"field": "ano", | ||
"data_type": "int64", | ||
"range": {"start": 2007, "end": 2023, "interval": 1}, | ||
}, | ||
cluster_by="sigla_uf", | ||
) | ||
}} | ||
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(tipo_classe as string) tipo_classe, | ||
safe_cast(rede as string) rede, | ||
safe_cast(localizacao as string) localizacao, | ||
safe_cast(quantidade_matricula as int64) quantidade_matricula, | ||
from | ||
`basedosdados-dev.br_inep_sinopse_estatistica_educacao_basica_staging.educacao_especial_localizacao` | ||
as t |
24 changes: 24 additions & 0 deletions
24
...o_basica/br_inep_sinopse_estatistica_educacao_basica__educacao_especial_sexo_raca_cor.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( | ||
alias="educacao_especial_sexo_raca_cor", | ||
schema="br_inep_sinopse_estatistica_educacao_basica", | ||
materialized="table", | ||
partition_by={ | ||
"field": "ano", | ||
"data_type": "int64", | ||
"range": {"start": 2007, "end": 2023, "interval": 1}, | ||
}, | ||
cluster_by="sigla_uf", | ||
) | ||
}} | ||
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(tipo_classe as string) tipo_classe, | ||
safe_cast(sexo as string) sexo, | ||
safe_cast(raca_cor as string) raca_cor, | ||
safe_cast(quantidade_matricula as int64) quantidade_matricula, | ||
from | ||
`basedosdados-dev.br_inep_sinopse_estatistica_educacao_basica_staging.educacao_especial_sexo_raca_cor` | ||
as t |
24 changes: 24 additions & 0 deletions
24
...ao_basica/br_inep_sinopse_estatistica_educacao_basica__educacao_especial_tempo_ensino.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( | ||
alias="educacao_especial_tempo_ensino", | ||
schema="br_inep_sinopse_estatistica_educacao_basica", | ||
materialized="table", | ||
partition_by={ | ||
"field": "ano", | ||
"data_type": "int64", | ||
"range": {"start": 2007, "end": 2023, "interval": 1}, | ||
}, | ||
cluster_by="sigla_uf", | ||
) | ||
}} | ||
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(tipo_classe as string) tipo_classe, | ||
safe_cast(rede as string) rede, | ||
safe_cast(tempo_ensino as string) tempo_ensino, | ||
safe_cast(quantidade_matricula as int64) quantidade_matricula, | ||
from | ||
`basedosdados-dev.br_inep_sinopse_estatistica_educacao_basica_staging.educacao_especial_tempo_ensino` | ||
as t |
23 changes: 23 additions & 0 deletions
23
...asica/br_inep_sinopse_estatistica_educacao_basica__educacao_especial_tipo_deficiencia.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,23 @@ | ||
{{ | ||
config( | ||
alias="educacao_especial_tipo_deficiencia", | ||
schema="br_inep_sinopse_estatistica_educacao_basica", | ||
materialized="table", | ||
partition_by={ | ||
"field": "ano", | ||
"data_type": "int64", | ||
"range": {"start": 2007, "end": 2023, "interval": 1}, | ||
}, | ||
cluster_by="sigla_uf", | ||
) | ||
}} | ||
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(tipo_classe as string) tipo_classe, | ||
safe_cast(tipo_deficiencia as string) tipo_deficiencia, | ||
safe_cast(quantidade_matricula as int64) quantidade_matricula, | ||
from | ||
`basedosdados-dev.br_inep_sinopse_estatistica_educacao_basica_staging.educacao_especial_tipo_deficiencia` | ||
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