Skip to content

Commit

Permalink
Include album release date when generating track_id
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrewwm committed Nov 30, 2024
1 parent c97d655 commit 3a945ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbt_spotify/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'dbt_spotify'
version: '2.0.1'
version: '2.0.2'

profile: 'dbt_spotify'

Expand Down
2 changes: 1 addition & 1 deletion dbt_spotify/models/staging/stg_recent_tracks.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ select
}} as play_id,
{{
dbt_utils.generate_surrogate_key(
['track_name', 'track_album', 'track_artists']
['track_name', 'track_album', 'album_release_date', 'track_artists']
)
}} as track_id,
{{
Expand Down

0 comments on commit 3a945ab

Please sign in to comment.