Skip to content

Commit

Permalink
Change sessions logic
Browse files Browse the repository at this point in the history
  • Loading branch information
agregori97 committed Jul 11, 2024
1 parent 01b541a commit 8ea391b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions views/sessions.view.lkml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ view: sessions {
increment_offset: 3
sql:
-- Final Select Statement:
select se.session_date as session_date
select select se.session_date as session_date
, se.ga_session_id as ga_session_id
, se.ga_session_number as ga_session_number
, se.user_pseudo_id as user_pseudo_id
Expand Down Expand Up @@ -53,7 +53,7 @@ select se.session_date as session_date
, d.geo__metro
, d.geo__sub_continent
, d.geo__region) geo_data
, (SELECT ARRAY_AGG(STRUCT se.sl_key
, (SELECT AS STRUCT se.sl_key
, se.event_rank
, se.page_view_rank
, se.page_view_reverse_rank
Expand All @@ -80,7 +80,7 @@ select se.session_date as session_date
, se.platform
, se.event_dimensions
, se.ecommerce
, se.items)) se.event_data event_data
, se.items) as event_data
from ${session_event_packing.SQL_TABLE_NAME} as se
left join ${session_tags.SQL_TABLE_NAME} as sa
on se.sl_key = sa.sl_key
Expand Down
1 change: 0 additions & 1 deletion views/sessions/session_event_packing.view.lkml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ view: session_event_packing {
, sl.event_bundle_sequence_id
, sl.event_server_timestamp_offset
, sl.user_id
, sl.user_pseudo_id
, sl.user_properties
, sl.user_first_touch_timestamp
, sl.user_ltv
Expand Down

0 comments on commit 8ea391b

Please sign in to comment.