Skip to content

Commit

Permalink
Hotfix: use only daily info for daily user id (#1664)
Browse files Browse the repository at this point in the history
  • Loading branch information
ifoukarakis authored Nov 11, 2024
1 parent 908fffe commit 74007a6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ with tmp as (
)
select
-- Surrogate key required as it's both a good practice, as well as allows merge incremental strategy.
{{ dbt_utils.generate_surrogate_key(['received_at_date', 'activity_date', 'server_id', 'user_id']) }} as daily_user_id
{{ dbt_utils.generate_surrogate_key(['activity_date', 'server_id', 'user_id']) }} as daily_user_id
, activity_date
, server_id
, user_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ with tmp as (
)
select
-- Surrogate key required as it's both a good practice, as well as allows merge incremental strategy.
{{ dbt_utils.generate_surrogate_key(['received_at_date', 'activity_date', 'server_id', 'user_id']) }} as daily_user_id
{{ dbt_utils.generate_surrogate_key(['activity_date', 'server_id', 'user_id']) }} as daily_user_id
, activity_date
, server_id
, user_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ with tmp as (
)
select
-- Surrogate key required as it's both a good practice, as well as allows merge incremental strategy.
{{ dbt_utils.generate_surrogate_key(['received_at_date', 'activity_date', 'server_id', 'user_id']) }} as daily_user_id
{{ dbt_utils.generate_surrogate_key(['activity_date', 'server_id', 'user_id']) }} as daily_user_id
, activity_date
, server_id
, user_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ with tmp as (
)
select
-- Surrogate key required as it's both a good practice, as well as allows merge incremental strategy.
{{ dbt_utils.generate_surrogate_key(['received_at_date', 'activity_date', 'server_id', 'user_id']) }} as daily_user_id
{{ dbt_utils.generate_surrogate_key(['activity_date', 'server_id', 'user_id']) }} as daily_user_id
, activity_date
, server_id
, user_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ with tmp as (
)
select
-- Surrogate key required as it's both a good practice, as well as allows merge incremental strategy.
{{ dbt_utils.generate_surrogate_key(['received_at_date', 'activity_date', 'server_id', 'user_id']) }} as daily_user_id
{{ dbt_utils.generate_surrogate_key(['activity_date', 'server_id', 'user_id']) }} as daily_user_id
, activity_date
, server_id
, user_id
Expand Down

0 comments on commit 74007a6

Please sign in to comment.