-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/not-null-test
- Loading branch information
Showing
4 changed files
with
51 additions
and
1 deletion.
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
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,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 |
19 changes: 19 additions & 0 deletions
19
models/world_ampas_oscar/world_ampas_oscar__winner_demographics.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,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 |