diff --git a/dbt_project.yml b/dbt_project.yml index b5501402..8d5fc96a 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -291,6 +291,9 @@ models: mundo_transfermarkt_competicoes_internacionais: +materialized: table +schema: mundo_transfermarkt_competicoes_internacionais + world_ampas_oscar: + +materialized: table + +schema: world_ampas_oscar world_iea_pirls: +materialized: table +schema: world_iea_pirls diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__morador_cor_raca_tipo_domicilio_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__morador_cor_raca_tipo_domicilio_municipio.sql index 50842dcf..b510fa2d 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__morador_cor_raca_tipo_domicilio_municipio.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__morador_cor_raca_tipo_domicilio_municipio.sql @@ -14,5 +14,5 @@ select moradores_em_domicilios_particulares_permanentes_ocupados_pessoas_ as int64 ) moradores, from - `basedosdados-staging.br_ibge_censo_2022_staging.morador_cor_racao_tipo_domicilio_municipio` + `basedosdados-staging.br_ibge_censo_2022_staging.morador_cor_raca_tipo_domicilio_municipio` as t diff --git a/models/world_ampas_oscar/schema.yml b/models/world_ampas_oscar/schema.yml new file mode 100644 index 00000000..98025eba --- /dev/null +++ b/models/world_ampas_oscar/schema.yml @@ -0,0 +1,28 @@ +--- +version: 2 +models: + - name: world_ampas_oscar__winner_demographics + description: The table presents demographic information of Oscar winners across + various categories, including Best Director, Best Actor, Best Supporting Actor, + Best Actress, and Best Supporting Actress. The data spans from the 1927 edition + to the 2014 edition of the Oscars, providing insights into the winners' demographics + over time. + columns: + - name: name + description: Winner name + - name: birth_date + description: Date of birth + - name: birthplace + description: Birthplace + - name: race_ethnicity + description: Race ethnicity + - name: religion + description: Religion + - name: sexual_orientation + description: Sexual orientation + - name: year_edition + description: Year of the award edition + - name: category + description: Award category + - name: movie + description: Movie \ No newline at end of file diff --git a/models/world_ampas_oscar/world_ampas_oscar__winner_demographics.sql b/models/world_ampas_oscar/world_ampas_oscar__winner_demographics.sql new file mode 100644 index 00000000..8c08f78e --- /dev/null +++ b/models/world_ampas_oscar/world_ampas_oscar__winner_demographics.sql @@ -0,0 +1,19 @@ +{{ + config( + alias="winner_demographics", + schema="world_ampas_oscar", + materialized="table", + ) +}} + +select distinct + safe_cast(name as string) name, + safe_cast(birth_date as date) birth_date, + safe_cast(birthplace as string) birthplace, + safe_cast(race_ethnicity as string) race_ethnicity, + safe_cast(religion as string) religion, + safe_cast(sexual_orientation as string) sexual_orientation, + safe_cast(year_edition as int64) year_edition, + safe_cast(category as string) category, + safe_cast(movie as string) movie, +from `basedosdados-staging.world_ampas_oscar_staging.winner_demographics` as t