-
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.
- Loading branch information
Showing
19 changed files
with
1,693 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{{ | ||
config( | ||
alias="microdados", | ||
schema="br_inep_enem", | ||
partition_by={ | ||
"field": "ano", | ||
"data_type": "int64", | ||
"range": {"start": 1998, "end": 2023, "interval": 1}, | ||
}, | ||
labels={"project_id": "basedosdados", "tema": "educacao"}, | ||
) | ||
}} | ||
|
||
select | ||
safe_cast(ano as int64) ano, | ||
safe_cast(id_inscricao as string) id_inscricao, | ||
safe_cast(faixa_etaria as string) faixa_etaria, | ||
safe_cast(sexo as string) sexo, | ||
safe_cast(id_municipio_residencia as string) id_municipio_residencia, | ||
safe_cast(sigla_uf_residencia as string) sigla_uf_residencia, | ||
safe_cast(estado_civil as string) estado_civil, | ||
safe_cast(cor_raca as string) cor_raca, | ||
safe_cast(nacionalidade as string) nacionalidade, | ||
safe_cast(situacao_conclusao as string) situacao_conclusao, | ||
safe_cast(ano_conclusao as int64) ano_conclusao, | ||
safe_cast(tipo_escola as string) tipo_escola, | ||
safe_cast(ensino as string) ensino, | ||
safe_cast(indicador_treineiro as boolean) indicador_treineiro, | ||
safe_cast(id_municipio_escola as string) id_municipio_escola, | ||
safe_cast(sigla_uf_escola as string) sigla_uf_escola, | ||
safe_cast( | ||
dependencia_administrativa_escola as string | ||
) dependencia_administrativa_escola, | ||
safe_cast(localizacao_escola as string) localizacao_escola, | ||
safe_cast(situacao_funcionamento_escola as string) situacao_funcionamento_escola, | ||
safe_cast(indicador_certificado as boolean) indicador_certificado, | ||
safe_cast(nome_certificadora as string) nome_certificadora, | ||
safe_cast(sigla_uf_certificadora as string) sigla_uf_certificadora, | ||
safe_cast(id_municipio_prova as string) id_municipio_prova, | ||
safe_cast(sigla_uf_prova as string) sigla_uf_prova, | ||
safe_cast(presenca_objetiva as string) presenca_objetiva, | ||
safe_cast(tipo_prova_objetiva as string) tipo_prova_objetiva, | ||
safe_cast(nota_objetiva_competencia_1 as float64) nota_objetiva_competencia_1, | ||
safe_cast(nota_objetiva_competencia_2 as float64) nota_objetiva_competencia_2, | ||
safe_cast(nota_objetiva_competencia_3 as float64) nota_objetiva_competencia_3, | ||
safe_cast(nota_objetiva_competencia_4 as float64) nota_objetiva_competencia_4, | ||
safe_cast(nota_objetiva_competencia_5 as float64) nota_objetiva_competencia_5, | ||
safe_cast(nota_objetiva as float64) nota_objetiva, | ||
safe_cast(respostas_objetiva as string) respostas_objetiva, | ||
safe_cast(gabarito_objetiva as string) gabarito_objetiva, | ||
safe_cast(presenca_ciencias_natureza as string) presenca_ciencias_natureza, | ||
safe_cast(presenca_ciencias_humanas as string) presenca_ciencias_humanas, | ||
safe_cast(presenca_linguagens_codigos as string) presenca_linguagens_codigos, | ||
safe_cast(presenca_matematica as string) presenca_matematica, | ||
safe_cast(tipo_prova_ciencias_natureza as string) tipo_prova_ciencias_natureza, | ||
safe_cast(tipo_prova_ciencias_humanas as string) tipo_prova_ciencias_humanas, | ||
safe_cast(tipo_prova_linguagens_codigos as string) tipo_prova_linguagens_codigos, | ||
safe_cast(tipo_prova_matematica as string) tipo_prova_matematica, | ||
safe_cast(nota_ciencias_natureza as float64) nota_ciencias_natureza, | ||
safe_cast(nota_ciencias_humanas as float64) nota_ciencias_humanas, | ||
safe_cast(nota_linguagens_codigos as float64) nota_linguagens_codigos, | ||
safe_cast(nota_matematica as float64) nota_matematica, | ||
safe_cast(respostas_ciencias_natureza as string) respostas_ciencias_natureza, | ||
safe_cast(respostas_ciencias_humanas as string) respostas_ciencias_humanas, | ||
safe_cast(respostas_linguagens_codigos as string) respostas_linguagens_codigos, | ||
safe_cast(respostas_matematica as string) respostas_matematica, | ||
safe_cast(gabarito_ciencias_natureza as string) gabarito_ciencias_natureza, | ||
safe_cast(gabarito_ciencias_humanas as string) gabarito_ciencias_humanas, | ||
safe_cast(gabarito_linguagens_codigos as string) gabarito_linguagens_codigos, | ||
safe_cast(gabarito_matematica as string) gabarito_matematica, | ||
safe_cast(lingua_estrangeira as string) lingua_estrangeira, | ||
safe_cast(presenca_redacao as string) presenca_redacao, | ||
safe_cast(nota_redacao_competencia_1 as float64) nota_redacao_competencia_1, | ||
safe_cast(nota_redacao_competencia_2 as float64) nota_redacao_competencia_2, | ||
safe_cast(nota_redacao_competencia_3 as float64) nota_redacao_competencia_3, | ||
safe_cast(nota_redacao_competencia_4 as float64) nota_redacao_competencia_4, | ||
safe_cast(nota_redacao_competencia_5 as float64) nota_redacao_competencia_5, | ||
safe_cast(nota_redacao as float64) nota_redacao, | ||
safe_cast( | ||
indicador_questionario_socioeconomico as boolean | ||
) indicador_questionario_socioeconomico | ||
from `basedosdados-dev.br_inep_enem_staging.microdados` as t |
30 changes: 30 additions & 0 deletions
30
models/br_inep_enem/br_inep_enem__questionario_socioeconomico_2023.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,30 @@ | ||
{{ config(alias="questionario_socioeconomico_2023", schema="br_inep_enem") }} | ||
|
||
select | ||
safe_cast(id_inscricao as string) id_inscricao, | ||
safe_cast(q001 as string) q001, | ||
safe_cast(q002 as string) q002, | ||
safe_cast(q003 as string) q003, | ||
safe_cast(q004 as string) q004, | ||
safe_cast(q005 as string) q005, | ||
safe_cast(q006 as string) q006, | ||
safe_cast(q007 as string) q007, | ||
safe_cast(q008 as string) q008, | ||
safe_cast(q009 as string) q009, | ||
safe_cast(q010 as string) q010, | ||
safe_cast(q011 as string) q011, | ||
safe_cast(q012 as string) q012, | ||
safe_cast(q013 as string) q013, | ||
safe_cast(q014 as string) q014, | ||
safe_cast(q015 as string) q015, | ||
safe_cast(q016 as string) q016, | ||
safe_cast(q017 as string) q017, | ||
safe_cast(q018 as string) q018, | ||
safe_cast(q019 as string) q019, | ||
safe_cast(q020 as string) q020, | ||
safe_cast(q021 as string) q021, | ||
safe_cast(q022 as string) q022, | ||
safe_cast(q023 as string) q023, | ||
safe_cast(q024 as string) q024, | ||
safe_cast(q025 as string) q025 | ||
from `basedosdados-dev.br_inep_enem_staging.questionario_socioeconomico_2023` as t |
Oops, something went wrong.