From f5dcb192c5071f7db533f268d130f1d1863b6c11 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Tue, 18 Jun 2024 08:50:48 +0100 Subject: [PATCH] fix: filtering out replays with no URL (#23032) Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --- ...on_recording_list_from_session_replay.ambr | 80 +++--- .../session_recording_list_from_filters.py | 9 +- ...sion_recording_list_from_replay_summary.py | 2 +- ...t_session_recording_list_from_filters.ambr | 232 +++++++++--------- ...on_recording_list_from_session_replay.ambr | 200 +++++++-------- ...est_session_recording_list_from_filters.py | 12 +- 6 files changed, 265 insertions(+), 270 deletions(-) diff --git a/ee/session_recordings/queries/test/__snapshots__/test_session_recording_list_from_session_replay.ambr b/ee/session_recordings/queries/test/__snapshots__/test_session_recording_list_from_session_replay.ambr index 41094c453fec8..d8d0967eb9896 100644 --- a/ee/session_recordings/queries/test/__snapshots__/test_session_recording_list_from_session_replay.ambr +++ b/ee/session_recordings/queries/test/__snapshots__/test_session_recording_list_from_session_replay.ambr @@ -50,7 +50,7 @@ GROUP BY distinct_id HAVING argMax(is_deleted, version) = 0) as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT %(limit)s OFFSET %(offset)s @@ -107,7 +107,7 @@ GROUP BY distinct_id HAVING argMax(is_deleted, version) = 0) as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT %(limit)s OFFSET %(offset)s @@ -163,7 +163,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT %(limit)s OFFSET %(offset)s @@ -219,7 +219,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT %(limit)s OFFSET %(offset)s @@ -249,7 +249,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -292,7 +292,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -322,7 +322,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -365,7 +365,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -395,7 +395,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -438,7 +438,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -468,7 +468,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -511,7 +511,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -541,7 +541,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -592,7 +592,7 @@ GROUP BY distinct_id HAVING argMax(is_deleted, version) = 0) as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -622,7 +622,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -673,7 +673,7 @@ GROUP BY distinct_id HAVING argMax(is_deleted, version) = 0) as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -703,7 +703,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -754,7 +754,7 @@ GROUP BY distinct_id HAVING argMax(is_deleted, version) = 0) as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -784,7 +784,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -835,7 +835,7 @@ GROUP BY distinct_id HAVING argMax(is_deleted, version) = 0) as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -865,7 +865,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -916,7 +916,7 @@ GROUP BY distinct_id HAVING argMax(is_deleted, version) = 0) as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -946,7 +946,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -997,7 +997,7 @@ GROUP BY distinct_id HAVING argMax(is_deleted, version) = 0) as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1027,7 +1027,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1078,7 +1078,7 @@ GROUP BY distinct_id HAVING argMax(is_deleted, version) = 0) as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1108,7 +1108,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1159,7 +1159,7 @@ GROUP BY distinct_id HAVING argMax(is_deleted, version) = 0) as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1204,7 +1204,7 @@ HAVING argMax(is_deleted, version) = 0 AND current_person_id = '00000000-0000-0000-0000-000000000000') as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1249,7 +1249,7 @@ HAVING argMax(is_deleted, version) = 0 AND current_person_id = '00000000-0000-0000-0000-000000000000') as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1294,7 +1294,7 @@ HAVING argMax(is_deleted, version) = 0 AND current_person_id = '00000000-0000-0000-0000-000000000000') as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1339,7 +1339,7 @@ HAVING argMax(is_deleted, version) = 0 AND current_person_id = '00000000-0000-0000-0000-000000000000') as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1384,7 +1384,7 @@ HAVING argMax(is_deleted, version) = 0 AND current_person_id = '00000000-0000-0000-0000-000000000000') as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1429,7 +1429,7 @@ HAVING argMax(is_deleted, version) = 0 AND current_person_id = '00000000-0000-0000-0000-000000000000') as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1474,7 +1474,7 @@ HAVING argMax(is_deleted, version) = 0 AND current_person_id = '00000000-0000-0000-0000-000000000000') as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1519,7 +1519,7 @@ HAVING argMax(is_deleted, version) = 0 AND current_person_id = '00000000-0000-0000-0000-000000000000') as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1562,7 +1562,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1605,7 +1605,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1648,7 +1648,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1691,7 +1691,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 diff --git a/posthog/session_recordings/queries/session_recording_list_from_filters.py b/posthog/session_recordings/queries/session_recording_list_from_filters.py index 03485c05fef83..0b2ccc538641e 100644 --- a/posthog/session_recordings/queries/session_recording_list_from_filters.py +++ b/posthog/session_recordings/queries/session_recording_list_from_filters.py @@ -257,12 +257,7 @@ def _where_predicates(self) -> Union[ast.And, ast.Or]: return ast.And(exprs=exprs) def _having_predicates(self) -> ast.And | Constant: - exprs: list[ast.Expr] = [ - # a missing first url indicates delayed or incomplete ingestion and we can ignore those - ast.CompareOperation( - op=ast.CompareOperationOp.NotEq, left=ast.Field(chain=["first_url"]), right=ast.Constant(value=None) - ) - ] + exprs: list[ast.Expr] = [] if self._filter.recording_duration_filter: op = ( @@ -278,7 +273,7 @@ def _having_predicates(self) -> ast.And | Constant: ), ) - return ast.And(exprs=exprs) + return ast.And(exprs=exprs) if exprs else ast.Constant(value=True) def _strip_person_and_event_properties(self, property_group: PropertyGroup) -> PropertyGroup | None: property_groups_to_keep = [ diff --git a/posthog/session_recordings/queries/session_recording_list_from_replay_summary.py b/posthog/session_recordings/queries/session_recording_list_from_replay_summary.py index 1e34d247a42d3..78b204d872314 100644 --- a/posthog/session_recordings/queries/session_recording_list_from_replay_summary.py +++ b/posthog/session_recordings/queries/session_recording_list_from_replay_summary.py @@ -642,7 +642,7 @@ def ttl_days(self): {provided_session_ids_clause} {log_matching_session_ids_clause} GROUP BY session_id - HAVING s.first_url is not null {duration_clause} {console_log_clause} + HAVING 1=1 {duration_clause} {console_log_clause} {order_by_clause} LIMIT %(limit)s OFFSET %(offset)s """ diff --git a/posthog/session_recordings/queries/test/__snapshots__/test_session_recording_list_from_filters.ambr b/posthog/session_recordings/queries/test/__snapshots__/test_session_recording_list_from_filters.ambr index 260887e844608..f07ec709ed46f 100644 --- a/posthog/session_recordings/queries/test/__snapshots__/test_session_recording_list_from_filters.ambr +++ b/posthog/session_recordings/queries/test/__snapshots__/test_session_recording_list_from_filters.ambr @@ -24,7 +24,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['custom-event'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -61,7 +61,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['custom-event'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -98,7 +98,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['custom-event'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -135,7 +135,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['custom-event'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -180,7 +180,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview', 'custom-event'])))) GROUP BY s.session_id - HAVING and(isNotNull(first_url), ifNull(greaterOrEquals(duration, 60), 0)) + HAVING ifNull(greaterOrEquals(duration, 60), 0) ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -217,7 +217,7 @@ GROUP BY events.`$session_id` HAVING true))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -254,7 +254,7 @@ GROUP BY events.`$session_id` HAVING true))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -291,7 +291,7 @@ GROUP BY events.`$session_id` HAVING true))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -328,7 +328,7 @@ GROUP BY events.`$session_id` HAVING true))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -365,7 +365,7 @@ GROUP BY events.`$session_id` HAVING true))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -402,7 +402,7 @@ GROUP BY events.`$session_id` HAVING true))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -434,7 +434,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 13:46:23.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -466,7 +466,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 13:46:23.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING and(isNotNull(first_url), ifNull(greaterOrEquals(duration, 60), 0)) + HAVING ifNull(greaterOrEquals(duration, 60), 0) ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -498,7 +498,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 13:46:23.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING and(isNotNull(first_url), ifNull(greaterOrEquals(active_seconds, 60), 0)) + HAVING ifNull(greaterOrEquals(active_seconds, 60), 0) ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -530,7 +530,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 13:46:23.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING and(isNotNull(first_url), ifNull(greaterOrEquals(inactive_seconds, 60), 0)) + HAVING ifNull(greaterOrEquals(inactive_seconds, 60), 0) ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -562,7 +562,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 13:46:23.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY active_seconds DESC LIMIT 4 OFFSET 0 SETTINGS readonly=2, @@ -594,7 +594,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 13:46:23.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY console_error_count DESC LIMIT 4 OFFSET 0 SETTINGS readonly=2, @@ -626,7 +626,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 13:46:23.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 4 OFFSET 0 SETTINGS readonly=2, @@ -658,7 +658,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 13:46:23.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 2 OFFSET 0 SETTINGS readonly=2, @@ -690,7 +690,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 13:46:23.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 2 OFFSET 1 SETTINGS readonly=2, @@ -722,7 +722,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 13:46:23.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 2 OFFSET 2 SETTINGS readonly=2, @@ -754,7 +754,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 13:46:23.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -786,7 +786,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 13:46:23.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-30 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -818,7 +818,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 12:46:00.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-12 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 12:46:00.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -850,7 +850,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 12:46:00.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 12:46:00.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -882,7 +882,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 12:46:00.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-10 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 12:46:00.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -914,7 +914,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 13:46:23.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-28 23:59:59.999999', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -946,7 +946,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 13:46:23.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-29 23:59:59.999999', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -978,7 +978,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 13:46:23.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING and(isNotNull(first_url), ifNull(greaterOrEquals(duration, 60), 0)) + HAVING ifNull(greaterOrEquals(duration, 60), 0) ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1010,7 +1010,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 13:46:23.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING and(isNotNull(first_url), ifNull(lessOrEquals(duration, 60), 0)) + HAVING ifNull(lessOrEquals(duration, 60), 0) ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1047,7 +1047,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1084,7 +1084,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$autocapture'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1121,7 +1121,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1153,7 +1153,7 @@ FROM session_replay_events AS s WHERE and(equals(s.team_id, 2), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-11 13:46:23.000000', 6, 'UTC')), 0), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1190,7 +1190,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING and(isNotNull(first_url), ifNull(greaterOrEquals(duration, 60), 0)) + HAVING ifNull(greaterOrEquals(duration, 60), 0) ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1227,7 +1227,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING and(isNotNull(first_url), ifNull(greaterOrEquals(active_seconds, 60), 0)) + HAVING ifNull(greaterOrEquals(active_seconds, 60), 0) ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1269,7 +1269,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1306,7 +1306,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1360,7 +1360,7 @@ HAVING and(ifNull(equals(argMax(person.is_deleted, person.version), 0), 0), ifNull(less(argMax(person.created_at, person.version), plus(now64(6, 'UTC'), toIntervalDay(1))), 0)))), 0)) SETTINGS optimize_aggregation_in_order=1) AS person_distinct_ids__person ON equals(person_distinct_ids.person_distinct_ids___person_id, person_distinct_ids__person.id) WHERE ifNull(equals(person_distinct_ids__person.properties___email, 'bla'), 0))))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1414,7 +1414,7 @@ HAVING and(ifNull(equals(argMax(person.is_deleted, person.version), 0), 0), ifNull(less(argMax(person.created_at, person.version), plus(now64(6, 'UTC'), toIntervalDay(1))), 0)))), 0)) SETTINGS optimize_aggregation_in_order=1) AS person_distinct_ids__person ON equals(person_distinct_ids.person_distinct_ids___person_id, person_distinct_ids__person.id) WHERE ifNull(equals(person_distinct_ids__person.properties___email, 'bla'), 0))))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1451,7 +1451,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1505,7 +1505,7 @@ HAVING and(ifNull(equals(argMax(person.is_deleted, person.version), 0), 0), ifNull(less(argMax(person.created_at, person.version), plus(now64(6, 'UTC'), toIntervalDay(1))), 0)))), 0)) SETTINGS optimize_aggregation_in_order=1) AS person_distinct_ids__person ON equals(person_distinct_ids.person_distinct_ids___person_id, person_distinct_ids__person.id) WHERE ifNull(equals(person_distinct_ids__person.properties___email, 'bla'), 0))))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1559,7 +1559,7 @@ HAVING and(ifNull(equals(argMax(person.is_deleted, person.version), 0), 0), ifNull(less(argMax(person.created_at, person.version), plus(now64(6, 'UTC'), toIntervalDay(1))), 0)))), 0)) SETTINGS optimize_aggregation_in_order=1) AS person_distinct_ids__person ON equals(person_distinct_ids.person_distinct_ids___person_id, person_distinct_ids__person.id) WHERE ifNull(equals(person_distinct_ids__person.properties___email, 'bla'), 0))))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1611,7 +1611,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1663,7 +1663,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1700,7 +1700,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1737,7 +1737,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1774,7 +1774,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1811,7 +1811,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1848,7 +1848,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1885,7 +1885,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$autocapture'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1922,7 +1922,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1959,7 +1959,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -1996,7 +1996,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['a_different_event'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2033,7 +2033,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['a_different_event'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2070,7 +2070,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2107,7 +2107,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2144,7 +2144,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['a_different_event'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2181,7 +2181,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['a_different_event'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2235,7 +2235,7 @@ HAVING and(ifNull(equals(argMax(person.is_deleted, person.version), 0), 0), ifNull(less(argMax(person.created_at, person.version), plus(now64(6, 'UTC'), toIntervalDay(1))), 0)))), 0)) SETTINGS optimize_aggregation_in_order=1) AS person_distinct_ids__person ON equals(person_distinct_ids.person_distinct_ids___person_id, person_distinct_ids__person.id) WHERE ifNull(notILike(person_distinct_ids__person.properties___email, '%@posthog.com%'), 1))))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2272,7 +2272,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2326,7 +2326,7 @@ HAVING and(ifNull(equals(argMax(person.is_deleted, person.version), 0), 0), ifNull(less(argMax(person.created_at, person.version), plus(now64(6, 'UTC'), toIntervalDay(1))), 0)))), 0)) SETTINGS optimize_aggregation_in_order=1) AS person_distinct_ids__person ON equals(person_distinct_ids.person_distinct_ids___person_id, person_distinct_ids__person.id) WHERE ifNull(notILike(person_distinct_ids__person.properties___email, '%@posthog.com%'), 1))))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2363,7 +2363,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2400,7 +2400,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageleave', '$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2438,7 +2438,7 @@ WHERE and(equals(log_entries.team_id, 2), equals(log_entries.log_source, 'session_replay'))) AS console_logs_log_entries WHERE and(ifNull(in(console_logs_log_entries.level, ['warn', 'error']), 0), ifNull(greater(positionCaseInsensitive(console_logs_log_entries.message, 'message 4'), 0), 0))))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2476,7 +2476,7 @@ WHERE and(equals(log_entries.team_id, 2), equals(log_entries.log_source, 'session_replay'))) AS console_logs_log_entries WHERE and(ifNull(in(console_logs_log_entries.level, ['warn', 'error']), 0), ifNull(greater(positionCaseInsensitive(console_logs_log_entries.message, 'message 5'), 0), 0))))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2514,7 +2514,7 @@ WHERE and(equals(log_entries.team_id, 2), equals(log_entries.log_source, 'session_replay'))) AS console_logs_log_entries WHERE and(ifNull(in(console_logs_log_entries.level, ['warn', 'error']), 0), ifNull(greater(positionCaseInsensitive(console_logs_log_entries.message, 'MESSAGE 5'), 0), 0))))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2552,7 +2552,7 @@ WHERE and(equals(log_entries.team_id, 2), equals(log_entries.log_source, 'session_replay'))) AS console_logs_log_entries WHERE and(ifNull(in(console_logs_log_entries.level, ['info']), 0), ifNull(greater(positionCaseInsensitive(console_logs_log_entries.message, 'message 5'), 0), 0))))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2590,7 +2590,7 @@ WHERE and(equals(log_entries.team_id, 2), equals(log_entries.log_source, 'session_replay'))) AS console_logs_log_entries WHERE ifNull(in(console_logs_log_entries.level, ['error']), 0)))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2628,7 +2628,7 @@ WHERE and(equals(log_entries.team_id, 2), equals(log_entries.log_source, 'session_replay'))) AS console_logs_log_entries WHERE ifNull(in(console_logs_log_entries.level, ['info']), 0)))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2666,7 +2666,7 @@ WHERE and(equals(log_entries.team_id, 2), equals(log_entries.log_source, 'session_replay'))) AS console_logs_log_entries WHERE ifNull(in(console_logs_log_entries.level, ['info']), 0)))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2704,7 +2704,7 @@ WHERE and(equals(log_entries.team_id, 2), equals(log_entries.log_source, 'session_replay'))) AS console_logs_log_entries WHERE ifNull(in(console_logs_log_entries.level, ['warn']), 0)))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2742,7 +2742,7 @@ WHERE and(equals(log_entries.team_id, 2), equals(log_entries.log_source, 'session_replay'))) AS console_logs_log_entries WHERE ifNull(in(console_logs_log_entries.level, ['warn']), 0)))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2780,7 +2780,7 @@ WHERE and(equals(log_entries.team_id, 2), equals(log_entries.log_source, 'session_replay'))) AS console_logs_log_entries WHERE ifNull(in(console_logs_log_entries.level, ['info']), 0)))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2818,7 +2818,7 @@ WHERE and(equals(log_entries.team_id, 2), equals(log_entries.log_source, 'session_replay'))) AS console_logs_log_entries WHERE ifNull(in(console_logs_log_entries.level, ['warn', 'error']), 0)))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2856,7 +2856,7 @@ WHERE and(equals(log_entries.team_id, 2), equals(log_entries.log_source, 'session_replay'))) AS console_logs_log_entries WHERE ifNull(in(console_logs_log_entries.level, ['info']), 0)))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2893,7 +2893,7 @@ ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2930,7 +2930,7 @@ ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -2992,7 +2992,7 @@ FROM cohortpeople WHERE and(equals(cohortpeople.team_id, 2), equals(cohortpeople.cohort_id, 2), equals(cohortpeople.version, 0)))), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3059,7 +3059,7 @@ FROM cohortpeople WHERE and(equals(cohortpeople.team_id, 2), equals(cohortpeople.cohort_id, 2), equals(cohortpeople.version, 0)))), 0))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3106,7 +3106,7 @@ FROM cohortpeople WHERE and(equals(cohortpeople.team_id, 2), equals(cohortpeople.cohort_id, 2), equals(cohortpeople.version, 0)))), 0))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3155,7 +3155,7 @@ HAVING and(ifNull(equals(argMax(person.is_deleted, person.version), 0), 0), ifNull(less(argMax(person.created_at, person.version), plus(now64(6, 'UTC'), toIntervalDay(1))), 0)))), 0)) SETTINGS optimize_aggregation_in_order=1) AS person_distinct_ids__person ON equals(person_distinct_ids.person_distinct_ids___person_id, person_distinct_ids__person.id) WHERE ifNull(equals(person_distinct_ids__person.properties___email, 'bla@gmail.com'), 0)))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3204,7 +3204,7 @@ HAVING and(ifNull(equals(argMax(person.is_deleted, person.version), 0), 0), ifNull(less(argMax(person.created_at, person.version), plus(now64(6, 'UTC'), toIntervalDay(1))), 0)))), 0)) SETTINGS optimize_aggregation_in_order=1) AS person_distinct_ids__person ON equals(person_distinct_ids.person_distinct_ids___person_id, person_distinct_ids__person.id) WHERE ifNull(notILike(person_distinct_ids__person.properties___email, '%gmail.com%'), 1)))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3241,7 +3241,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview', 'new-event'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3278,7 +3278,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview', 'new-event2'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3315,7 +3315,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview', 'custom_event'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3352,7 +3352,7 @@ GROUP BY events.`$session_id` HAVING hasAny(groupUniqArray(events.event), ['$pageview', 'custom_event'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3390,7 +3390,7 @@ WHERE and(equals(log_entries.team_id, 2), equals(log_entries.log_source, 'session_replay'))) AS console_logs_log_entries WHERE and(ifNull(in(console_logs_log_entries.level, ['warn']), 0), ifNull(greater(positionCaseInsensitive(console_logs_log_entries.message, 'random'), 0), 0))))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3428,7 +3428,7 @@ WHERE and(equals(log_entries.team_id, 2), equals(log_entries.log_source, 'session_replay'))) AS console_logs_log_entries WHERE or(ifNull(in(console_logs_log_entries.level, ['warn']), 0), ifNull(greater(positionCaseInsensitive(console_logs_log_entries.message, 'random'), 0), 0))))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3473,7 +3473,7 @@ GROUP BY events.`$session_id` HAVING hasAny(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3518,7 +3518,7 @@ GROUP BY events.`$session_id` HAVING hasAny(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3555,7 +3555,7 @@ GROUP BY events.`$session_id` HAVING hasAny(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3592,7 +3592,7 @@ GROUP BY events.`$session_id` HAVING hasAny(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3641,7 +3641,7 @@ HAVING and(ifNull(equals(argMax(person.is_deleted, person.version), 0), 0), ifNull(less(argMax(person.created_at, person.version), plus(now64(6, 'UTC'), toIntervalDay(1))), 0)))), 0)) SETTINGS optimize_aggregation_in_order=1) AS person_distinct_ids__person ON equals(person_distinct_ids.person_distinct_ids___person_id, person_distinct_ids__person.id) WHERE and(ifNull(equals(person_distinct_ids__person.properties___email, 'test@posthog.com'), 0), ifNull(equals(person_distinct_ids__person.properties___email, 'david@posthog.com'), 0))))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3690,7 +3690,7 @@ HAVING and(ifNull(equals(argMax(person.is_deleted, person.version), 0), 0), ifNull(less(argMax(person.created_at, person.version), plus(now64(6, 'UTC'), toIntervalDay(1))), 0)))), 0)) SETTINGS optimize_aggregation_in_order=1) AS person_distinct_ids__person ON equals(person_distinct_ids.person_distinct_ids___person_id, person_distinct_ids__person.id) WHERE or(ifNull(equals(person_distinct_ids__person.properties___email, 'test@posthog.com'), 0), ifNull(equals(person_distinct_ids__person.properties___email, 'david@posthog.com'), 0))))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3730,7 +3730,7 @@ HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS person_distinct_ids WHERE ifNull(equals(person_distinct_ids.person_id, '00000000-0000-0000-0000-000000000000'), 0))), ifNull(greaterOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2020-12-25 00:00:00.000000', 6, 'UTC')), 0), ifNull(lessOrEquals(toTimeZone(s.min_first_timestamp, 'UTC'), toDateTime64('2021-01-01 13:46:23.000000', 6, 'UTC')), 0)) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3767,7 +3767,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3804,7 +3804,7 @@ GROUP BY events.`$session_id` HAVING true))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3841,7 +3841,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3878,7 +3878,7 @@ GROUP BY events.`$session_id` HAVING true))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3915,7 +3915,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3952,7 +3952,7 @@ GROUP BY events.`$session_id` HAVING true))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -3989,7 +3989,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -4026,7 +4026,7 @@ GROUP BY events.`$session_id` HAVING true))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -4063,7 +4063,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -4100,7 +4100,7 @@ GROUP BY events.`$session_id` HAVING true))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -4137,7 +4137,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -4174,7 +4174,7 @@ GROUP BY events.`$session_id` HAVING true))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -4211,7 +4211,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -4260,7 +4260,7 @@ HAVING and(ifNull(equals(argMax(person.is_deleted, person.version), 0), 0), ifNull(less(argMax(person.created_at, person.version), plus(now64(6, 'UTC'), toIntervalDay(1))), 0)))), 0)) SETTINGS optimize_aggregation_in_order=1) AS person_distinct_ids__person ON equals(person_distinct_ids.person_distinct_ids___person_id, person_distinct_ids__person.id) WHERE ifNull(equals(person_distinct_ids__person.properties___email, 'bla'), 0)))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -4297,7 +4297,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -4346,7 +4346,7 @@ HAVING and(ifNull(equals(argMax(person.is_deleted, person.version), 0), 0), ifNull(less(argMax(person.created_at, person.version), plus(now64(6, 'UTC'), toIntervalDay(1))), 0)))), 0)) SETTINGS optimize_aggregation_in_order=1) AS person_distinct_ids__person ON equals(person_distinct_ids.person_distinct_ids___person_id, person_distinct_ids__person.id) WHERE ifNull(equals(person_distinct_ids__person.properties___email, 'bla'), 0)))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -4383,7 +4383,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -4432,7 +4432,7 @@ HAVING and(ifNull(equals(argMax(person.is_deleted, person.version), 0), 0), ifNull(less(argMax(person.created_at, person.version), plus(now64(6, 'UTC'), toIntervalDay(1))), 0)))), 0)) SETTINGS optimize_aggregation_in_order=1) AS person_distinct_ids__person ON equals(person_distinct_ids.person_distinct_ids___person_id, person_distinct_ids__person.id) WHERE ifNull(equals(person_distinct_ids__person.properties___email, 'bla'), 0)))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -4469,7 +4469,7 @@ GROUP BY events.`$session_id` HAVING hasAll(groupUniqArray(events.event), ['$pageview'])))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, @@ -4518,7 +4518,7 @@ HAVING and(ifNull(equals(argMax(person.is_deleted, person.version), 0), 0), ifNull(less(argMax(person.created_at, person.version), plus(now64(6, 'UTC'), toIntervalDay(1))), 0)))), 0)) SETTINGS optimize_aggregation_in_order=1) AS person_distinct_ids__person ON equals(person_distinct_ids.person_distinct_ids___person_id, person_distinct_ids__person.id) WHERE ifNull(equals(person_distinct_ids__person.properties___email, 'bla'), 0)))) GROUP BY s.session_id - HAVING isNotNull(first_url) + HAVING true ORDER BY start_time DESC LIMIT 51 OFFSET 0 SETTINGS readonly=2, diff --git a/posthog/session_recordings/queries/test/__snapshots__/test_session_recording_list_from_session_replay.ambr b/posthog/session_recordings/queries/test/__snapshots__/test_session_recording_list_from_session_replay.ambr index 58c6d9940430b..45277b504d4b8 100644 --- a/posthog/session_recordings/queries/test/__snapshots__/test_session_recording_list_from_session_replay.ambr +++ b/posthog/session_recordings/queries/test/__snapshots__/test_session_recording_list_from_session_replay.ambr @@ -41,7 +41,7 @@ HAVING 1=1 AND hasAll(event_names, ['custom-event'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -88,7 +88,7 @@ HAVING 1=1 AND hasAll(event_names, ['custom-event'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -136,7 +136,7 @@ HAVING 1=1 AND hasAll(event_names, ['custom-event'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -184,7 +184,7 @@ HAVING 1=1 AND hasAll(event_names, ['custom-event'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -260,7 +260,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview', 'custom-event'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND duration > 60 ORDER BY start_time DESC LIMIT 51 @@ -304,7 +304,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -348,7 +348,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -392,7 +392,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -435,7 +435,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -479,7 +479,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -523,7 +523,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -553,7 +553,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -583,7 +583,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND duration > 60 ORDER BY start_time DESC LIMIT 51 @@ -614,7 +614,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND active_seconds > 60 ORDER BY start_time DESC LIMIT 51 @@ -645,7 +645,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND inactive_seconds > 60 ORDER BY start_time DESC LIMIT 51 @@ -676,7 +676,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY active_seconds DESC LIMIT 4 OFFSET 0 @@ -706,7 +706,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY console_error_count DESC LIMIT 4 OFFSET 0 @@ -736,7 +736,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 4 OFFSET 0 @@ -766,7 +766,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 2 OFFSET 0 @@ -796,7 +796,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 2 OFFSET 1 @@ -826,7 +826,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 2 OFFSET 2 @@ -856,7 +856,7 @@ AND s.min_first_timestamp >= '2021-01-01 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -886,7 +886,7 @@ AND s.min_first_timestamp >= '2020-12-30 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -916,7 +916,7 @@ AND s.min_first_timestamp >= '2020-12-12 00:00:00' AND s.min_first_timestamp <= '2021-01-01 12:46:00' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -946,7 +946,7 @@ AND s.min_first_timestamp >= '2020-12-11 00:00:00' AND s.min_first_timestamp <= '2021-01-01 12:46:00' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -976,7 +976,7 @@ AND s.min_first_timestamp >= '2020-12-10 00:00:00' AND s.min_first_timestamp <= '2021-01-01 12:46:00' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1006,7 +1006,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2020-12-28 23:59:59' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1036,7 +1036,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2020-12-29 23:59:59' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1066,7 +1066,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND duration > 60 ORDER BY start_time DESC LIMIT 51 @@ -1097,7 +1097,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND duration < 60 ORDER BY start_time DESC LIMIT 51 @@ -1143,7 +1143,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1188,7 +1188,7 @@ HAVING 1=1 AND hasAll(event_names, ['$autocapture'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1233,7 +1233,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1263,7 +1263,7 @@ AND s.min_first_timestamp >= '2020-12-25 00:00:00' AND s.min_first_timestamp <= '2021-01-01 13:46:23' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1308,7 +1308,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND duration > 60 ORDER BY start_time DESC LIMIT 51 @@ -1354,7 +1354,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND active_seconds > 60 ORDER BY start_time DESC LIMIT 51 @@ -1408,7 +1408,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1453,7 +1453,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1534,7 +1534,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1613,7 +1613,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1658,7 +1658,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1737,7 +1737,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1814,7 +1814,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1892,7 +1892,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -1970,7 +1970,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -2016,7 +2016,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -2062,7 +2062,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -2108,7 +2108,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -2154,7 +2154,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -2199,7 +2199,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -2244,7 +2244,7 @@ HAVING 1=1 AND hasAll(event_names, ['$autocapture'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -2290,7 +2290,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -2336,7 +2336,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -2382,7 +2382,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -2428,7 +2428,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -2517,7 +2517,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -2562,7 +2562,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -2651,7 +2651,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -2696,7 +2696,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -2742,7 +2742,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview', '$pageleave'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -2782,7 +2782,7 @@ AND level in ['warn', 'error'] AND positionCaseInsensitive(message, 'message 4') > 0 ) as log_text_matching GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND (console_warn_count > 0 OR console_error_count > 0) ORDER BY start_time DESC @@ -2824,7 +2824,7 @@ AND level in ['warn', 'error'] AND positionCaseInsensitive(message, 'message 5') > 0 ) as log_text_matching GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND (console_warn_count > 0 OR console_error_count > 0) ORDER BY start_time DESC @@ -2866,7 +2866,7 @@ AND level in ['warn', 'error'] AND positionCaseInsensitive(message, 'MESSAGE 5') > 0 ) as log_text_matching GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND (console_warn_count > 0 OR console_error_count > 0) ORDER BY start_time DESC @@ -2908,7 +2908,7 @@ AND level in ['info'] AND positionCaseInsensitive(message, 'message 5') > 0 ) as log_text_matching GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND (console_log_count > 0) ORDER BY start_time DESC LIMIT 51 @@ -2939,7 +2939,7 @@ AND s.min_first_timestamp >= '2021-01-14 00:00:00' AND s.min_first_timestamp <= '2021-01-21 20:00:00' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND (console_error_count > 0) ORDER BY start_time DESC LIMIT 51 @@ -2970,7 +2970,7 @@ AND s.min_first_timestamp >= '2021-01-14 00:00:00' AND s.min_first_timestamp <= '2021-01-21 20:00:00' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND (console_log_count > 0) ORDER BY start_time DESC LIMIT 51 @@ -3001,7 +3001,7 @@ AND s.min_first_timestamp >= '2021-01-14 00:00:00' AND s.min_first_timestamp <= '2021-01-21 20:00:00' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND (console_log_count > 0) ORDER BY start_time DESC LIMIT 51 @@ -3032,7 +3032,7 @@ AND s.min_first_timestamp >= '2021-01-14 00:00:00' AND s.min_first_timestamp <= '2021-01-21 20:00:00' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND (console_warn_count > 0) ORDER BY start_time DESC LIMIT 51 @@ -3063,7 +3063,7 @@ AND s.min_first_timestamp >= '2021-01-14 00:00:00' AND s.min_first_timestamp <= '2021-01-21 20:00:00' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND (console_warn_count > 0) ORDER BY start_time DESC LIMIT 51 @@ -3094,7 +3094,7 @@ AND s.min_first_timestamp >= '2021-01-14 00:00:00' AND s.min_first_timestamp <= '2021-01-21 20:00:00' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND (console_log_count > 0) ORDER BY start_time DESC LIMIT 51 @@ -3125,7 +3125,7 @@ AND s.min_first_timestamp >= '2021-01-14 00:00:00' AND s.min_first_timestamp <= '2021-01-21 20:00:00' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND (console_warn_count > 0 OR console_error_count > 0) ORDER BY start_time DESC @@ -3157,7 +3157,7 @@ AND s.min_first_timestamp >= '2021-01-14 00:00:00' AND s.min_first_timestamp <= '2021-01-21 20:00:00' GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 AND (console_log_count > 0) ORDER BY start_time DESC LIMIT 51 @@ -3229,7 +3229,7 @@ GROUP BY distinct_id HAVING argMax(is_deleted, version) = 0) as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -3336,7 +3336,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -3423,7 +3423,7 @@ HAVING 1=1 AND hasAll(event_names, ['custom_event'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -3474,7 +3474,7 @@ GROUP BY distinct_id HAVING argMax(is_deleted, version) = 0) as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -3525,7 +3525,7 @@ GROUP BY distinct_id HAVING argMax(is_deleted, version) = 0) as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -3571,7 +3571,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview', 'new-event'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -3617,7 +3617,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview', 'new-event2'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -3662,7 +3662,7 @@ HAVING argMax(is_deleted, version) = 0 AND current_person_id = '00000000-0000-0000-0000-000000000000') as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -3707,7 +3707,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -3750,7 +3750,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -3795,7 +3795,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -3838,7 +3838,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -3883,7 +3883,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -3926,7 +3926,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -3971,7 +3971,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -4014,7 +4014,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -4059,7 +4059,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -4102,7 +4102,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -4147,7 +4147,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -4190,7 +4190,7 @@ GROUP BY `$session_id` HAVING 1=1) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -4235,7 +4235,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -4283,7 +4283,7 @@ HAVING argMax(is_deleted, version) = 0 AND (ifNull(equals(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person_props, 'email'), ''), 'null'), '^"|"$', ''), 'bla'), 0))) as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -4328,7 +4328,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -4375,7 +4375,7 @@ HAVING argMax(is_deleted, version) = 0 AND (ifNull(equals(nullIf(nullIf(pmat_email, ''), 'null'), 'bla'), 0))) as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -4420,7 +4420,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -4471,7 +4471,7 @@ GROUP BY distinct_id HAVING argMax(is_deleted, version) = 0) as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -4516,7 +4516,7 @@ HAVING 1=1 AND hasAll(event_names, ['$pageview'])) as session_events_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 @@ -4567,7 +4567,7 @@ GROUP BY distinct_id HAVING argMax(is_deleted, version) = 0) as session_persons_sub_query) GROUP BY session_id - HAVING s.first_url is not null + HAVING 1=1 ORDER BY start_time DESC LIMIT 51 OFFSET 0 diff --git a/posthog/session_recordings/queries/test/test_session_recording_list_from_filters.py b/posthog/session_recordings/queries/test/test_session_recording_list_from_filters.py index f8dacbaa5ff0f..70eb65d444009 100644 --- a/posthog/session_recordings/queries/test/test_session_recording_list_from_filters.py +++ b/posthog/session_recordings/queries/test/test_session_recording_list_from_filters.py @@ -562,17 +562,17 @@ def test_first_url_selection(self): "session_id": session_id_two, "first_url": "https://first-is-on-second-event.com", }, - # sessions without urls are not included - # { - # "session_id": session_id_three, - # "first_url": None, - # }, + { + "session_id": session_id_three, + "first_url": None, + }, { "session_id": session_id_four, "first_url": "https://on-second-received-event-but-actually-first.com", }, ], - key=lambda x: x["session_id"], + # mypy unhappy about this lambda when first_url can be None 🤷️ + key=lambda x: x["session_id"], # type: ignore ) def test_recordings_dont_leak_data_between_teams(self):