Skip to content

Commit

Permalink
Merge branch 'Release-snowplow-media-player/0.9.1' into fix_duplicate…
Browse files Browse the repository at this point in the history
…s_media_ads
  • Loading branch information
ilias1111 authored Oct 22, 2024
2 parents 28228e0 + da0665c commit e9d013b
Show file tree
Hide file tree
Showing 10 changed files with 293 additions and 277 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions models/base/scratch/base_scratch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ models:
description: '{{ doc("col_original_session_identifier") }}'
- name: session_identifier
description: '{{ doc("col_session_identifier") }}'
- name: app_id
description: '{{doc("col_app_id")}}'
- name: user_identifier
description: '{{ doc("col_user_identifier") }}'
- name: media_identifier
Expand Down
2 changes: 2 additions & 0 deletions models/media_ad_views/media_ad_views.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ models:
description: '{{ doc("col_user_id")}}'
- name: session_identifier
description: '{{ doc("col_session_identifier")}}'
- name: app_id
description: '{{doc("col_app_id")}}'
- name: play_id
description: '{{ doc("col_play_id")}}'
- name: ad_break_id
Expand Down
2 changes: 2 additions & 0 deletions models/media_ad_views/scratch/base_scratch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ models:
description: '{{ doc("col_user_id")}}'
- name: session_identifier
description: '{{ doc("col_session_identifier")}}'
- name: app_id
description: '{{doc("col_app_id")}}'
- name: domain_sessionid_array
description: '{{ doc("col_domain_sessionid_array") }}'
- name: play_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ events_this_run as (
,ev.media_identifier
,ev.user_identifier
,ev.session_identifier
,ev.app_id
,ev.play_id
,ev.media_ad_break__break_id as ad_break_id
,ev.media_ad__ad_id as ad_id
Expand Down Expand Up @@ -80,8 +81,8 @@ events_this_run as (
,{{ snowplow_utils.get_string_agg('original_session_identifier', 'ev', is_distinct=True) }} as domain_sessionid_array

from events_this_run as ev
{{ dbt_utils.group_by(n=9+(var('snowplow__ad_views_passthroughs', [])|length)) }}

{{ dbt_utils.group_by(n=8+(var('snowplow__ad_views_passthroughs', [])|length)) }}

)

Expand All @@ -93,6 +94,7 @@ select
,p.media_label
,p.user_identifier
,p.session_identifier
,p.app_id
,p.domain_sessionid_array
,p.user_id
,p.play_id
Expand Down
2 changes: 2 additions & 0 deletions models/media_base/media_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ models:
description: '{{ doc("col_media_label") }}'
- name: session_identifier
description: '{{ doc("col_session_identifier") }}'
- name: app_id
description: '{{doc("col_app_id")}}'
- name: domain_sessionid_array
description: '{{ doc("col_domain_sessionid_array") }}'
- name: user_identifier
Expand Down
2 changes: 2 additions & 0 deletions models/media_base/scratch/base_scratch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ models:
description: '{{ doc("col_media_label") }}'
- name: session_identifier
description: '{{ doc("col_session_identifier") }}'
- name: app_id
description: '{{doc("col_app_id")}}'
- name: domain_sessionid_array
description: '{{ doc("col_domain_sessionid_array") }}'
- name: user_identifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ events_this_run as (
,i.player_id
,i.media_label
,i.session_identifier
,i.app_id
,i.user_identifier
,i.user_id
,i.platform
Expand Down Expand Up @@ -86,7 +87,7 @@ events_this_run as (

from events_this_run as i

{{ dbt_utils.group_by(n=17+(var('snowplow__base_passthroughs', [])|length)) }}
{{ dbt_utils.group_by(n=18+(var('snowplow__base_passthroughs', [])|length)) }}

)

Expand Down Expand Up @@ -206,6 +207,7 @@ select
d.player_id,
d.media_label,
d.session_identifier,
d.app_id,
d.domain_sessionid_array,
d.user_identifier,
d.user_id,
Expand Down
2 changes: 2 additions & 0 deletions models/media_plays/media_plays.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ models:
description: '{{ doc("col_media_label") }}'
- name: session_identifier
description: '{{ doc("col_session_identifier") }}'
- name: app_id
description: '{{doc("col_app_id")}}'
- name: domain_sessionid_array
description: '{{ doc("col_domain_sessionid_array") }}'
- name: user_identifier
Expand Down

0 comments on commit e9d013b

Please sign in to comment.