Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dados] world_ampas_oscar #482

Merged
merged 2 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Loading