diff --git a/models/marts/dim_characters.sql b/models/marts/dim_characters.sql index 7060f8f..8c2acbe 100644 --- a/models/marts/dim_characters.sql +++ b/models/marts/dim_characters.sql @@ -25,6 +25,7 @@ with characters as ( , appearance_counts.episode_count , characters.loaded_at , 2 as col2 + , 3 as col3 from characters left join personality_traits diff --git a/models/staging/stg_writers.sql b/models/staging/stg_writers.sql new file mode 100644 index 0000000..b8891f0 --- /dev/null +++ b/models/staging/stg_writers.sql @@ -0,0 +1,10 @@ +{{ + config(materialized='view') +}} + +select + id as writer_id + , name as writer_name + , current_timestamp() as loaded_at + +from {{ ref('writers') }} diff --git a/seeds/writers.csv b/seeds/writers.csv new file mode 100644 index 0000000..4e0ef43 --- /dev/null +++ b/seeds/writers.csv @@ -0,0 +1,2 @@ +ID,Name +1,Mike Judge \ No newline at end of file