Skip to content

Commit

Permalink
Add app id pe 6692 (#80)
Browse files Browse the repository at this point in the history
Added app_id column to models
  • Loading branch information
OscarSnowPlow authored Oct 21, 2024
1 parent 3e723ee commit da0665c
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.user_id
,ev.play_id
,ev.media_ad_break__break_id as ad_break_id
Expand Down Expand Up @@ -81,7 +82,7 @@ events_this_run as (

from events_this_run as ev

{{ dbt_utils.group_by(n=9+(var('snowplow__ad_views_passthroughs', [])|length)) }}
{{ dbt_utils.group_by(n=10+(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 da0665c

Please sign in to comment.