Skip to content

Commit

Permalink
Add in session event packing
Browse files Browse the repository at this point in the history
  • Loading branch information
agregori97 committed Jul 12, 2024
1 parent 30cc147 commit 4f3839c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/sessions/session_event_packing.view.lkml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ view: session_event_packing {
, sl.ga_session_number ga_session_number
, sl.user_pseudo_id user_pseudo_id
, sl.sl_key
, ARRAY_AGG(STRUCT(
, ARRAY_AGG(STRUCT(sl_key,
event_rank,
page_view_rank,
page_view_reverse_rank,
Expand Down Expand Up @@ -48,7 +48,7 @@ view: session_event_packing {
FROM ${session_list_with_event_history.SQL_TABLE_NAME} AS sl
WHERE sl.sl_key IN (SELECT sl_key FROM ${session_facts.SQL_TABLE_NAME}
WHERE CASE WHEN "@{EVENT_COUNT}" = "" THEN 1=1 WHEN "@{EVENT_COUNT}" != "" THEN
session_event_count< SAFE_CAST("@{EVENT_COUNT}" AS INT64) END) AND event_name IS NOT NULL
session_event_count< SAFE_CAST("@{EVENT_COUNT}" AS INT64) END) AND event_name IS NOT NULL
AND {% incrementcondition %} session_date {% endincrementcondition %}
GROUP BY 1,2,3,4,5;;
}
Expand Down

0 comments on commit 4f3839c

Please sign in to comment.