Skip to content

Commit

Permalink
Merge branch 'main' into feat/not-null-test
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfg authored Mar 5, 2024
2 parents 2f8fe4c + fde2cb7 commit f8d1ce6
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
28 changes: 28 additions & 0 deletions models/world_ampas_oscar/schema.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f8d1ce6

Please sign in to comment.