Skip to content

Commit

Permalink
change input
Browse files Browse the repository at this point in the history
  • Loading branch information
agregori97 committed Jul 12, 2024
1 parent 4f3839c commit d902845
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ view: training_input_arima {
events.event_name AS events_event_name,
COUNT(DISTINCT sessions.sl_key ) AS sum_of_session_event_count
FROM ${sessions.SQL_TABLE_NAME} AS sessions
LEFT JOIN sessions.event_data as events with offset as event_row
LEFT JOIN UNNEST(sessions.event_data) as events with offset as event_row
WHERE ((( TIMESTAMP_MICROS(events.event_timestamp) ) >= ((TIMESTAMP_ADD(TIMESTAMP_TRUNC(CURRENT_TIMESTAMP(), DAY), INTERVAL -89 DAY))) AND ( TIMESTAMP_MICROS(events.event_timestamp) ) < ((TIMESTAMP_ADD(TIMESTAMP_ADD(TIMESTAMP_TRUNC(CURRENT_TIMESTAMP(), DAY), INTERVAL -89 DAY), INTERVAL 90 DAY)))))
GROUP BY 1,2 ORDER BY 1 DESC;;
}
Expand Down
2 changes: 1 addition & 1 deletion views/bqml/avbb/training_data_avbb.view.lkml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ view: training_data_avbb {
SUM(session_data.session_page_view_count) as session_count,
COALESCE(SUM(event_data[SAFE_OFFSET(0)].user_ltv.revenue),0.0) as label
FROM ${sessions.SQL_TABLE_NAME} as sessions
LEFT JOIN sessions.event_data as events with offset as event_row GROUP BY 1,2,3,4,5,6,7;;
LEFT JOIN UNNEST(sessions.event_data) as events with offset as event_row GROUP BY 1,2,3,4,5,6,7;;
}
dimension: sl_key {
hidden: yes
Expand Down

0 comments on commit d902845

Please sign in to comment.