Skip to content

Commit

Permalink
change array_agg
Browse files Browse the repository at this point in the history
  • Loading branch information
agregori97 committed Jul 12, 2024
1 parent f1e4751 commit 9a8e90c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion views/sessions.view.lkml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ extends: [event_funnel, page_funnel]
dimension: event_data {
hidden: yes
type: string
sql: SELECT ARRAY_AGG(event_data) FROM sessions ;;
sql: WITH t1 AS(SELECT ARRAY_AGG(${TABLE}.event_data) as event_data)
SELECT event_data FROM t1;;
## This is the parent array that contains the event_data struct elements. It is not directly useably as a dimension.
## It is necessary for proper unnesting in the model Join.
}
Expand Down

0 comments on commit 9a8e90c

Please sign in to comment.