Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 93c4d36

Browse files
Dan Leedataform.co
authored andcommitted
give session length a name
1 parent 8e148cc commit 93c4d36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

includes/sessions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ select
4747
${ctx.when(global.session.config.warehouse == "bigquery", `struct(\n `)}
4848
count(segment_sessionized_events.track_id) as total_tracks,
4949
count(segment_sessionized_events.page_id) as total_pages,
50-
${crossdb.timestampDiff("millisecond", "min(segment_sessionized_events.timestamp)", "max(segment_sessionized_events.timestamp)")}
50+
${crossdb.timestampDiff("millisecond", "min(segment_sessionized_events.timestamp)", "max(segment_sessionized_events.timestamp)")} as duration_millis
5151
${ctx.when(global.session.config.warehouse == "bigquery", `) as stats`)},
5252
5353
-- first values in the session for page fields

0 commit comments

Comments
 (0)