Skip to content

Commit

Permalink
Merge pull request #63 from tayloramurphy/gitlab-browser-changes
Browse files Browse the repository at this point in the history
Add browser columns and change Unioned CTE
  • Loading branch information
drewbanin authored Jun 24, 2019
2 parents 4dc4d66 + b874708 commit 692938e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions macros/adapters/default/page_views/snowplow_page_views.sql
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ prep as (
d.device_family as device,
{% else %}
null::text as browser,
null::text as browser_name,
null::text as browser_major_version,
null::text as browser_minor_version,
a.br_family as browser_name,
a.br_name as browser_major_version,
a.br_version as browser_minor_version,
null::text as browser_build_version,
a.os_family as os,
a.os_name as os_name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ relevant_existing as (
where page_view_id in (select page_view_id from relative)
),

unioned as (
unioned_cte as (

select
page_view_id,
Expand Down Expand Up @@ -179,7 +179,7 @@ merged as (
max(relative_vmin) as relative_vmin,
max(relative_vmax) as relative_vmax

from unioned
from unioned_cte
group by 1


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ relevant_existing as (

),

unioned as (
unioned_cte as (

select
page_view_id,
Expand Down Expand Up @@ -115,7 +115,7 @@ merged as (
sum(pp_count) as pp_count,
sum(time_engaged_in_s) as time_engaged_in_s

from unioned
from unioned_cte
group by 1


Expand Down

0 comments on commit 692938e

Please sign in to comment.