Skip to content

Commit

Permalink
Update br_inep_enem__microdados.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
rdahis authored Sep 12, 2023
1 parent 20f966f commit e77a7f5
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions models/br_inep_enem/br_inep_enem__microdados.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
{{config(alias='microdados', schema='br_inep_enem')}}
{{
config(
alias = 'microdados',
schema='br_inep_enem',
partition_by={
"field": "ano",
"data_type": "int64",
"range": {
"start": 1998,
"end": 2022,
"interval": 1}
},
labels = {'project_id': 'basedosdados-dev', 'tema': 'educacao'}
}}

SELECT
SAFE_CAST(ano AS INT64) ano,
Expand Down Expand Up @@ -64,4 +77,4 @@ 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-staging.br_inep_enem_staging.microdados AS t
FROM basedosdados-staging.br_inep_enem_staging.microdados AS t

0 comments on commit e77a7f5

Please sign in to comment.