From 55d8662f8260177e1ffd9691089c3bd76e746b53 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 20:41:12 +0000 Subject: [PATCH 01/56] Update query snapshots --- .../api/test/__snapshots__/test_query.ambr | 108 +++++++++--------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/posthog/api/test/__snapshots__/test_query.ambr b/posthog/api/test/__snapshots__/test_query.ambr index 38ee1f19a66b2..8d9a9a5c2c4c8 100644 --- a/posthog/api/test/__snapshots__/test_query.ambr +++ b/posthog/api/test/__snapshots__/test_query.ambr @@ -1,8 +1,8 @@ # name: TestQuery.test_event_property_filter ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '') AS key, 'a%sd', concat(ifNull(toString(events.event), ''), ' ', ifNull(toString(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '')), '')) @@ -18,8 +18,8 @@ # name: TestQuery.test_event_property_filter.1 ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '') AS key, 'a%sd', concat(ifNull(toString(events.event), ''), ' ', ifNull(toString(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '')), '')) @@ -35,8 +35,8 @@ # name: TestQuery.test_event_property_filter.2 ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '') AS key, 'a%sd', concat(ifNull(toString(events.event), ''), ' ', ifNull(toString(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '')), '')) @@ -52,8 +52,8 @@ # name: TestQuery.test_event_property_filter_materialized ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, nullIf(nullIf(events.mat_key, ''), 'null') AS key, 'a%sd', concat(ifNull(toString(events.event), ''), ' ', ifNull(toString(nullIf(nullIf(events.mat_key, ''), 'null')), '')) @@ -69,8 +69,8 @@ # name: TestQuery.test_event_property_filter_materialized.1 ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, nullIf(nullIf(events.mat_key, ''), 'null') AS key, 'a%sd', concat(ifNull(toString(events.event), ''), ' ', ifNull(toString(nullIf(nullIf(events.mat_key, ''), 'null')), '')) @@ -86,8 +86,8 @@ # name: TestQuery.test_event_property_filter_materialized.2 ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, nullIf(nullIf(events.mat_key, ''), 'null') AS key, 'a%sd', concat(ifNull(toString(events.event), ''), ' ', ifNull(toString(nullIf(nullIf(events.mat_key, ''), 'null')), '')) @@ -103,7 +103,7 @@ # name: TestQuery.test_events_query_all_time_date ' /* user_id:0 request:_snapshot_ */ - SELECT events.event + SELECT events.event AS event FROM events WHERE and(equals(events.team_id, 2), less(toTimeZone(events.timestamp, 'UTC'), toDateTime64('2023-01-12 12:14:05.000000', 6, 'UTC'))) ORDER BY events.event ASC @@ -116,7 +116,7 @@ # name: TestQuery.test_events_query_all_time_date.1 ' /* user_id:0 request:_snapshot_ */ - SELECT events.event + SELECT events.event AS event FROM events WHERE and(equals(events.team_id, 2), less(toTimeZone(events.timestamp, 'UTC'), toDateTime64('2022-01-12 12:14:00.000000', 6, 'UTC'))) ORDER BY events.event ASC @@ -129,7 +129,7 @@ # name: TestQuery.test_events_query_all_time_date.2 ' /* user_id:0 request:_snapshot_ */ - SELECT events.event + SELECT events.event AS event FROM events WHERE and(equals(events.team_id, 2), less(toTimeZone(events.timestamp, 'UTC'), toDateTime64('2022-01-01 00:00:00.000000', 6, 'UTC')), greater(toTimeZone(events.timestamp, 'UTC'), toDateTime64('2019-01-12 12:14:00.000000', 6, 'UTC'))) ORDER BY events.event ASC @@ -142,8 +142,8 @@ # name: TestQuery.test_full_hogql_query ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '') AS key FROM events WHERE equals(events.team_id, 2) @@ -156,8 +156,8 @@ # name: TestQuery.test_full_hogql_query_materialized ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, nullIf(nullIf(events.mat_key, ''), 'null') AS key FROM events WHERE equals(events.team_id, 2) @@ -184,9 +184,9 @@ # name: TestQuery.test_full_hogql_query_view.1 ' /* user_id:0 request:_snapshot_ */ - SELECT event_view.event, - event_view.distinct_id, - event_view.key + SELECT event_view.event AS event, + event_view.distinct_id AS distinct_id, + event_view.key AS key FROM (SELECT events.event AS event, events.distinct_id AS distinct_id, @@ -202,8 +202,8 @@ # name: TestQuery.test_hogql_property_filter ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '') AS key, 'a%sd', concat(ifNull(toString(events.event), ''), ' ', ifNull(toString(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '')), '')) @@ -219,8 +219,8 @@ # name: TestQuery.test_hogql_property_filter.1 ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '') AS key, 'a%sd', concat(ifNull(toString(events.event), ''), ' ', ifNull(toString(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '')), '')) @@ -236,8 +236,8 @@ # name: TestQuery.test_hogql_property_filter.2 ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '') AS key, 'a%sd', concat(ifNull(toString(events.event), ''), ' ', ifNull(toString(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '')), '')) @@ -253,8 +253,8 @@ # name: TestQuery.test_hogql_property_filter.3 ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '') AS key, 'a%sd', concat(ifNull(toString(events.event), ''), ' ', ifNull(toString(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '')), '')) @@ -270,8 +270,8 @@ # name: TestQuery.test_hogql_property_filter_materialized ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, nullIf(nullIf(events.mat_key, ''), 'null') AS key, 'a%sd', concat(ifNull(toString(events.event), ''), ' ', ifNull(toString(nullIf(nullIf(events.mat_key, ''), 'null')), '')) @@ -287,8 +287,8 @@ # name: TestQuery.test_hogql_property_filter_materialized.1 ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, nullIf(nullIf(events.mat_key, ''), 'null') AS key, 'a%sd', concat(ifNull(toString(events.event), ''), ' ', ifNull(toString(nullIf(nullIf(events.mat_key, ''), 'null')), '')) @@ -304,8 +304,8 @@ # name: TestQuery.test_hogql_property_filter_materialized.2 ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, nullIf(nullIf(events.mat_key, ''), 'null') AS key, 'a%sd', concat(ifNull(toString(events.event), ''), ' ', ifNull(toString(nullIf(nullIf(events.mat_key, ''), 'null')), '')) @@ -321,8 +321,8 @@ # name: TestQuery.test_hogql_property_filter_materialized.3 ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, nullIf(nullIf(events.mat_key, ''), 'null') AS key, 'a%sd', concat(ifNull(toString(events.event), ''), ' ', ifNull(toString(nullIf(nullIf(events.mat_key, ''), 'null')), '')) @@ -338,8 +338,8 @@ # name: TestQuery.test_person_property_filter ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '') AS key, 'a%sd', concat(ifNull(toString(events.event), ''), ' ', ifNull(toString(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '')), '')) @@ -352,11 +352,11 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS events__pdi ON equals(events.distinct_id, events__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, 'email'), ''), 'null'), '^"|"$', '') AS properties___email FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -372,8 +372,8 @@ # name: TestQuery.test_person_property_filter_materialized ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, + SELECT events.event AS event, + events.distinct_id AS distinct_id, nullIf(nullIf(events.mat_key, ''), 'null') AS key, 'a%sd', concat(ifNull(toString(events.event), ''), ' ', ifNull(toString(nullIf(nullIf(events.mat_key, ''), 'null')), '')) @@ -386,11 +386,11 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS events__pdi ON equals(events.distinct_id, events__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, nullIf(nullIf(person.pmat_email, ''), 'null') AS properties___email FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -468,9 +468,9 @@ # name: TestQuery.test_select_event_person ' /* user_id:0 request:_snapshot_ */ - SELECT events.event, - events.distinct_id, - events.distinct_id + SELECT events.event AS event, + events.distinct_id AS distinct_id, + events.distinct_id AS distinct_id FROM events WHERE and(equals(events.team_id, 2), less(toTimeZone(events.timestamp, 'UTC'), toDateTime64('2020-01-10 12:14:05.000000', 6, 'UTC')), greater(toTimeZone(events.timestamp, 'UTC'), toDateTime64('2020-01-09 12:14:00.000000', 6, 'UTC'))) ORDER BY events.event ASC @@ -484,8 +484,8 @@ ' /* user_id:0 request:_snapshot_ */ SELECT replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '') AS key, - events.event, - events.distinct_id, + events.event AS event, + events.distinct_id AS distinct_id, concat(ifNull(toString(events.event), ''), ' ', ifNull(toString(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', '')), '')) FROM events WHERE and(equals(events.team_id, 2), less(toTimeZone(events.timestamp, 'UTC'), toDateTime64('2020-01-10 12:14:05.000000', 6, 'UTC')), greater(toTimeZone(events.timestamp, 'UTC'), toDateTime64('2020-01-09 12:14:00.000000', 6, 'UTC'))) @@ -500,7 +500,7 @@ ' /* user_id:0 request:_snapshot_ */ SELECT tuple(events.uuid, events.event, events.properties, toTimeZone(events.timestamp, 'UTC'), events.team_id, events.distinct_id, events.elements_chain, toTimeZone(events.created_at, 'UTC')), - events.event + events.event AS event FROM events WHERE and(equals(events.team_id, 2), less(toTimeZone(events.timestamp, 'UTC'), toDateTime64('2020-01-10 12:14:05.000000', 6, 'UTC')), greater(toTimeZone(events.timestamp, 'UTC'), toDateTime64('2020-01-09 12:14:00.000000', 6, 'UTC'))) ORDER BY tuple(events.uuid, events.event, events.properties, toTimeZone(events.timestamp, 'UTC'), events.team_id, events.distinct_id, events.elements_chain, toTimeZone(events.created_at, 'UTC')) ASC @@ -514,7 +514,7 @@ ' /* user_id:0 request:_snapshot_ */ SELECT count(), - events.event + events.event AS event FROM events WHERE and(equals(events.team_id, 2), less(toTimeZone(events.timestamp, 'UTC'), toDateTime64('2020-01-10 12:14:05.000000', 6, 'UTC')), greater(toTimeZone(events.timestamp, 'UTC'), toDateTime64('2020-01-09 12:14:00.000000', 6, 'UTC'))) GROUP BY events.event @@ -529,7 +529,7 @@ ' /* user_id:0 request:_snapshot_ */ SELECT count(), - events.event + events.event AS event FROM events WHERE and(equals(events.team_id, 2), or(equals(events.event, 'sign up'), ifNull(like(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(events.properties, 'key'), ''), 'null'), '^"|"$', ''), '%val2'), 0)), less(toTimeZone(events.timestamp, 'UTC'), toDateTime64('2020-01-10 12:14:05.000000', 6, 'UTC')), greater(toTimeZone(events.timestamp, 'UTC'), toDateTime64('2020-01-09 12:14:00.000000', 6, 'UTC'))) GROUP BY events.event From 629bb0a84d821ad3626179e9576c84dd936a8a42 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 20:44:29 +0000 Subject: [PATCH 02/56] Update query snapshots --- .../hogql/test/__snapshots__/test_query.ambr | 2 +- .../test/__snapshots__/test_in_cohort.ambr | 28 +- .../test_lifecycle_query_runner.ambr | 36 +- .../test_retention_query_runner.ambr | 56 +- .../test/__snapshots__/test_trends.ambr | 558 +++++++++--------- .../test_sessions_timeline_query_runner.ambr | 322 +++++----- 6 files changed, 508 insertions(+), 494 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index ecd983e738882..2d84d09e37ef8 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0017-1ec4-f9ee72932a04') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-5126-03aef09600a2') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 787a6565b7d28..634aa69a1405f 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -6,10 +6,10 @@ FROM events LEFT JOIN ( SELECT cohortpeople.person_id AS person_id, 1 AS matched FROM cohortpeople - WHERE and(equals(cohortpeople.team_id, 420), equals(cohortpeople.cohort_id, 10)) + WHERE and(equals(cohortpeople.team_id, 420), equals(cohortpeople.cohort_id, 1)) GROUP BY cohortpeople.person_id, cohortpeople.cohort_id, cohortpeople.version - HAVING ifNull(greater(sum(cohortpeople.sign), 0), 0)) AS in_cohort__10 ON equals(in_cohort__10.person_id, events.person_id) - WHERE and(equals(events.team_id, 420), ifNull(equals(in_cohort__10.matched, 1), 0), equals(events.event, %(hogql_val_0)s)) + HAVING ifNull(greater(sum(cohortpeople.sign), 0), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, events.person_id) + WHERE and(equals(events.team_id, 420), ifNull(equals(in_cohort__1.matched, 1), 0), equals(events.event, %(hogql_val_0)s)) LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 @@ -19,10 +19,10 @@ FROM events LEFT JOIN ( SELECT person_id, 1 AS matched FROM raw_cohort_people - WHERE equals(cohort_id, 10) + WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version - HAVING greater(sum(sign), 0)) AS in_cohort__10 ON equals(in_cohort__10.person_id, person_id) - WHERE and(equals(in_cohort__10.matched, 1), equals(event, '018c6a03-e2f4-0000-1b43-0b8b068eedf9')) + HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a0c-628f-0000-ff51-4b4fa01e94cb')) LIMIT 100 ' --- @@ -34,8 +34,8 @@ FROM events LEFT JOIN ( SELECT person_static_cohort.person_id AS person_id, 1 AS matched FROM person_static_cohort - WHERE and(equals(person_static_cohort.team_id, 420), equals(person_static_cohort.cohort_id, 11))) AS in_cohort__11 ON equals(in_cohort__11.person_id, events.person_id) - WHERE and(equals(events.team_id, 420), ifNull(equals(in_cohort__11.matched, 1), 0)) + WHERE and(equals(person_static_cohort.team_id, 420), equals(person_static_cohort.cohort_id, 2))) AS in_cohort__2 ON equals(in_cohort__2.person_id, events.person_id) + WHERE and(equals(events.team_id, 420), ifNull(equals(in_cohort__2.matched, 1), 0)) LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 @@ -45,8 +45,8 @@ FROM events LEFT JOIN ( SELECT person_id, 1 AS matched FROM static_cohort_people - WHERE equals(cohort_id, 11)) AS in_cohort__11 ON equals(in_cohort__11.person_id, person_id) - WHERE equals(in_cohort__11.matched, 1) + WHERE equals(cohort_id, 2)) AS in_cohort__2 ON equals(in_cohort__2.person_id, person_id) + WHERE equals(in_cohort__2.matched, 1) LIMIT 100 ' --- @@ -58,8 +58,8 @@ FROM events LEFT JOIN ( SELECT person_static_cohort.person_id AS person_id, 1 AS matched FROM person_static_cohort - WHERE and(equals(person_static_cohort.team_id, 420), equals(person_static_cohort.cohort_id, 12))) AS in_cohort__12 ON equals(in_cohort__12.person_id, events.person_id) - WHERE and(equals(events.team_id, 420), ifNull(equals(in_cohort__12.matched, 1), 0)) + WHERE and(equals(person_static_cohort.team_id, 420), equals(person_static_cohort.cohort_id, 3))) AS in_cohort__3 ON equals(in_cohort__3.person_id, events.person_id) + WHERE and(equals(events.team_id, 420), ifNull(equals(in_cohort__3.matched, 1), 0)) LIMIT 100 SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1 @@ -69,8 +69,8 @@ FROM events LEFT JOIN ( SELECT person_id, 1 AS matched FROM static_cohort_people - WHERE equals(cohort_id, 12)) AS in_cohort__12 ON equals(in_cohort__12.person_id, person_id) - WHERE equals(in_cohort__12.matched, 1) + WHERE equals(cohort_id, 3)) AS in_cohort__3 ON equals(in_cohort__3.person_id, person_id) + WHERE equals(in_cohort__3.matched, 1) LIMIT 100 ' --- diff --git a/posthog/hogql_queries/insights/test/__snapshots__/test_lifecycle_query_runner.ambr b/posthog/hogql_queries/insights/test/__snapshots__/test_lifecycle_query_runner.ambr index 12cf0173a7f97..5954c42aa3b1a 100644 --- a/posthog/hogql_queries/insights/test/__snapshots__/test_lifecycle_query_runner.ambr +++ b/posthog/hogql_queries/insights/test/__snapshots__/test_lifecycle_query_runner.ambr @@ -2,15 +2,15 @@ ' SELECT groupArray(start_of_period) AS date, groupArray(round(multiply(counts, divide(1, 0.1)))) AS total, - status + status AS status FROM (SELECT if(ifNull(equals(status, 'dormant'), 0), negate(sum(counts)), negate(negate(sum(counts)))) AS counts, - start_of_period, - status + start_of_period AS start_of_period, + status AS status FROM (SELECT periods.start_of_period AS start_of_period, 0 AS counts, - sec.status + sec.status AS status FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-19 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS start_of_period FROM numbers(dateDiff('day', toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 00:00:00', 6, 'UTC'))), toStartOfDay(plus(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-19 23:59:59', 6, 'UTC')), toIntervalDay(1))))) AS numbers) AS periods @@ -20,9 +20,9 @@ (SELECT 1) ARRAY JOIN ['new', 'returning', 'resurrecting', 'dormant'] AS status) AS sec ORDER BY sec.status ASC, start_of_period ASC - UNION ALL SELECT start_of_period, + UNION ALL SELECT start_of_period AS start_of_period, count(DISTINCT person_id) AS counts, - status + status AS status FROM (SELECT events__pdi__person.id AS person_id, min(toTimeZone(events__pdi__person.created_at, 'UTC')) AS created_at, @@ -73,15 +73,15 @@ ' SELECT groupArray(start_of_period) AS date, groupArray(counts) AS total, - status + status AS status FROM (SELECT if(ifNull(equals(status, 'dormant'), 0), negate(sum(counts)), negate(negate(sum(counts)))) AS counts, - start_of_period, - status + start_of_period AS start_of_period, + status AS status FROM (SELECT periods.start_of_period AS start_of_period, 0 AS counts, - sec.status + sec.status AS status FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-19 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS start_of_period FROM numbers(dateDiff('day', toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 00:00:00', 6, 'UTC'))), toStartOfDay(plus(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-19 23:59:59', 6, 'UTC')), toIntervalDay(1))))) AS numbers) AS periods @@ -91,9 +91,9 @@ (SELECT 1) ARRAY JOIN ['new', 'returning', 'resurrecting', 'dormant'] AS status) AS sec ORDER BY sec.status ASC, start_of_period ASC - UNION ALL SELECT start_of_period, + UNION ALL SELECT start_of_period AS start_of_period, count(DISTINCT person_id) AS counts, - status + status AS status FROM (SELECT events__pdi__person.id AS person_id, min(toTimeZone(events__pdi__person.created_at, 'UTC')) AS created_at, @@ -144,15 +144,15 @@ ' SELECT groupArray(start_of_period) AS date, groupArray(counts) AS total, - status + status AS status FROM (SELECT if(ifNull(equals(status, 'dormant'), 0), negate(sum(counts)), negate(negate(sum(counts)))) AS counts, - start_of_period, - status + start_of_period AS start_of_period, + status AS status FROM (SELECT periods.start_of_period AS start_of_period, 0 AS counts, - sec.status + sec.status AS status FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-19 23:59:59', 6, 'US/Pacific'))), toIntervalDay(numbers.number)) AS start_of_period FROM numbers(dateDiff('day', toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 00:00:00', 6, 'US/Pacific'))), toStartOfDay(plus(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-19 23:59:59', 6, 'US/Pacific')), toIntervalDay(1))))) AS numbers) AS periods @@ -162,9 +162,9 @@ (SELECT 1) ARRAY JOIN ['new', 'returning', 'resurrecting', 'dormant'] AS status) AS sec ORDER BY sec.status ASC, start_of_period ASC - UNION ALL SELECT start_of_period, + UNION ALL SELECT start_of_period AS start_of_period, count(DISTINCT person_id) AS counts, - status + status AS status FROM (SELECT events__pdi__person.id AS person_id, min(toTimeZone(events__pdi__person.created_at, 'US/Pacific')) AS created_at, diff --git a/posthog/hogql_queries/insights/test/__snapshots__/test_retention_query_runner.ambr b/posthog/hogql_queries/insights/test/__snapshots__/test_retention_query_runner.ambr index bd6e5436ad1d5..62d2f6910ce2b 100644 --- a/posthog/hogql_queries/insights/test/__snapshots__/test_retention_query_runner.ambr +++ b/posthog/hogql_queries/insights/test/__snapshots__/test_retention_query_runner.ambr @@ -4,9 +4,9 @@ actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count FROM - (SELECT DISTINCT breakdown_values, - intervals_from_base, - actor_id + (SELECT DISTINCT breakdown_values AS breakdown_values, + intervals_from_base AS intervals_from_base, + actor_id AS actor_id FROM (SELECT target_event.breakdown_values AS breakdown_values, dateDiff('day', target_event.event_date, returning_event.event_date) AS intervals_from_base, @@ -85,9 +85,9 @@ actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count FROM - (SELECT DISTINCT breakdown_values, - intervals_from_base, - actor_id + (SELECT DISTINCT breakdown_values AS breakdown_values, + intervals_from_base AS intervals_from_base, + actor_id AS actor_id FROM (SELECT target_event.breakdown_values AS breakdown_values, dateDiff('month', target_event.event_date, returning_event.event_date) AS intervals_from_base, @@ -149,9 +149,9 @@ actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count FROM - (SELECT DISTINCT breakdown_values, - intervals_from_base, - actor_id + (SELECT DISTINCT breakdown_values AS breakdown_values, + intervals_from_base AS intervals_from_base, + actor_id AS actor_id FROM (SELECT target_event.breakdown_values AS breakdown_values, dateDiff('day', target_event.event_date, returning_event.event_date) AS intervals_from_base, @@ -216,9 +216,9 @@ actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count FROM - (SELECT DISTINCT breakdown_values, - intervals_from_base, - actor_id + (SELECT DISTINCT breakdown_values AS breakdown_values, + intervals_from_base AS intervals_from_base, + actor_id AS actor_id FROM (SELECT target_event.breakdown_values AS breakdown_values, dateDiff('day', target_event.event_date, returning_event.event_date) AS intervals_from_base, @@ -236,11 +236,11 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS events__pdi ON equals(events.distinct_id, events__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, 'email'), ''), 'null'), '^"|"$', '') AS properties___email FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -277,11 +277,11 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS events__pdi ON equals(events.distinct_id, events__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, 'email'), ''), 'null'), '^"|"$', '') AS properties___email FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -303,9 +303,9 @@ actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count FROM - (SELECT DISTINCT breakdown_values, - intervals_from_base, - actor_id + (SELECT DISTINCT breakdown_values AS breakdown_values, + intervals_from_base AS intervals_from_base, + actor_id AS actor_id FROM (SELECT target_event.breakdown_values AS breakdown_values, dateDiff('day', target_event.event_date, returning_event.event_date) AS intervals_from_base, @@ -370,9 +370,9 @@ actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count FROM - (SELECT DISTINCT breakdown_values, - intervals_from_base, - actor_id + (SELECT DISTINCT breakdown_values AS breakdown_values, + intervals_from_base AS intervals_from_base, + actor_id AS actor_id FROM (SELECT target_event.breakdown_values AS breakdown_values, dateDiff('day', target_event.event_date, returning_event.event_date) AS intervals_from_base, @@ -437,9 +437,9 @@ actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count FROM - (SELECT DISTINCT breakdown_values, - intervals_from_base, - actor_id + (SELECT DISTINCT breakdown_values AS breakdown_values, + intervals_from_base AS intervals_from_base, + actor_id AS actor_id FROM (SELECT target_event.breakdown_values AS breakdown_values, dateDiff('week', target_event.event_date, returning_event.event_date) AS intervals_from_base, @@ -504,9 +504,9 @@ actor_activity.intervals_from_base AS intervals_from_base, count(DISTINCT actor_activity.actor_id) AS count FROM - (SELECT DISTINCT breakdown_values, - intervals_from_base, - actor_id + (SELECT DISTINCT breakdown_values AS breakdown_values, + intervals_from_base AS intervals_from_base, + actor_id AS actor_id FROM (SELECT target_event.breakdown_values AS breakdown_values, dateDiff('week', target_event.event_date, returning_event.event_date) AS intervals_from_base, diff --git a/posthog/hogql_queries/insights/trends/test/__snapshots__/test_trends.ambr b/posthog/hogql_queries/insights/trends/test/__snapshots__/test_trends.ambr index 10d5d36c02b51..8088ac81f9d0a 100644 --- a/posthog/hogql_queries/insights/trends/test/__snapshots__/test_trends.ambr +++ b/posthog/hogql_queries/insights/trends/test/__snapshots__/test_trends.ambr @@ -54,7 +54,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-07 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -72,17 +72,17 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, '$bool_prop'), ''), 'null'), '^"|"$', '') AS `properties___$bool_prop` FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id HAVING ifNull(equals(argMax(person.is_deleted, person.version), 0), 0))), 0)) SETTINGS optimize_aggregation_in_order=1) AS e__pdi__person ON equals(e__pdi.person_id, e__pdi__person.id) WHERE and(equals(e.team_id, 2), greaterOrEquals(toTimeZone(e.timestamp, 'UTC'), toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-01 00:00:00', 6, 'UTC')))), lessOrEquals(toTimeZone(e.timestamp, 'UTC'), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-07 23:59:59', 6, 'UTC'))), ifNull(equals(e__pdi__person.`properties___$bool_prop`, 'x'), 0), and(equals(e.event, 'sign up'), ifNull(in(e__pdi.person_id, - (SELECT cohortpeople.person_id + (SELECT cohortpeople.person_id AS person_id FROM cohortpeople WHERE and(equals(cohortpeople.team_id, 2), equals(cohortpeople.cohort_id, 4)) GROUP BY cohortpeople.person_id, cohortpeople.cohort_id, cohortpeople.version @@ -152,7 +152,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-07 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -169,7 +169,7 @@ WHERE equals(person_overrides.team_id, 2) GROUP BY person_overrides.old_person_id) AS e__override ON equals(e.person_id, e__override.old_person_id) WHERE and(equals(e.team_id, 2), greaterOrEquals(toTimeZone(e.timestamp, 'UTC'), toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-01 00:00:00', 6, 'UTC')))), lessOrEquals(toTimeZone(e.timestamp, 'UTC'), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-07 23:59:59', 6, 'UTC'))), ifNull(equals(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.person_properties, '$bool_prop'), ''), 'null'), '^"|"$', ''), 'x'), 0), and(equals(e.event, 'sign up'), ifNull(in(ifNull(nullIf(e__override.override_person_id, '00000000-0000-0000-0000-000000000000'), e.person_id), - (SELECT cohortpeople.person_id + (SELECT cohortpeople.person_id AS person_id FROM cohortpeople WHERE and(equals(cohortpeople.team_id, 2), equals(cohortpeople.cohort_id, 5)) GROUP BY cohortpeople.person_id, cohortpeople.cohort_id, cohortpeople.version @@ -214,12 +214,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-01 00:00:00', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -317,12 +317,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-01 00:00:00', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -381,12 +381,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-22 13:01:01', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -437,12 +437,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-22 13:01:01', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -490,12 +490,12 @@ ' SELECT sum(count) AS total, - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 1 AS group_key, groupArray(day_start) AS day_start FROM - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-11 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -507,14 +507,14 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - breakdown_value + breakdown_value AS breakdown_value FROM (SELECT count(DISTINCT actor_id) AS total, - breakdown_value + breakdown_value AS breakdown_value FROM - (SELECT d.timestamp, - e.actor_id, - e.breakdown_value + (SELECT d.timestamp AS timestamp, + e.actor_id AS actor_id, + e.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-11 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS timestamp FROM numbers(dateDiff('day', minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-11 00:00:00', 6, 'UTC'))), toIntervalDay(7)), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-11 23:59:59', 6, 'UTC')))) AS numbers) AS d @@ -575,12 +575,12 @@ ' SELECT sum(count) AS total, - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 1 AS group_key, groupArray(day_start) AS day_start FROM - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-11 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -592,14 +592,14 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - breakdown_value + breakdown_value AS breakdown_value FROM (SELECT count(DISTINCT actor_id) AS total, - breakdown_value + breakdown_value AS breakdown_value FROM - (SELECT d.timestamp, - e.actor_id, - e.breakdown_value + (SELECT d.timestamp AS timestamp, + e.actor_id AS actor_id, + e.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-11 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS timestamp FROM numbers(dateDiff('day', minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-11 00:00:00', 6, 'UTC'))), toIntervalDay(7)), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-11 23:59:59', 6, 'UTC')))) AS numbers) AS d @@ -675,17 +675,17 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, 'name'), ''), 'null'), '^"|"$', '') AS properties___name FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id HAVING ifNull(equals(argMax(person.is_deleted, person.version), 0), 0))), 0)) SETTINGS optimize_aggregation_in_order=1) AS e__pdi__person ON equals(e__pdi.person_id, e__pdi__person.id) WHERE and(equals(e.team_id, 2), equals(e.event, '$pageview'), and(or(ifNull(equals(e__pdi__person.properties___name, 'p1'), 0), ifNull(equals(e__pdi__person.properties___name, 'p2'), 0), ifNull(equals(e__pdi__person.properties___name, 'p3'), 0)), ifNull(in(e__pdi.person_id, - (SELECT cohortpeople.person_id + (SELECT cohortpeople.person_id AS person_id FROM cohortpeople WHERE and(equals(cohortpeople.team_id, 2), equals(cohortpeople.cohort_id, 24)) GROUP BY cohortpeople.person_id, cohortpeople.cohort_id, cohortpeople.version @@ -705,12 +705,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-01 00:00:00', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -723,11 +723,11 @@ ORDER BY sec.breakdown_value ASC, day_start ASC UNION ALL SELECT counts AS total, toStartOfDay(timestamp) AS day_start, - breakdown_value + breakdown_value AS breakdown_value FROM - (SELECT d.timestamp, + (SELECT d.timestamp AS timestamp, count(DISTINCT e.actor_id) AS counts, - e.breakdown_value + e.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS timestamp FROM numbers(dateDiff('day', minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-01 00:00:00', 6, 'UTC'))), toIntervalDay(7)), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC')))) AS numbers) AS d @@ -744,17 +744,17 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, 'name'), ''), 'null'), '^"|"$', '') AS properties___name FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id HAVING ifNull(equals(argMax(person.is_deleted, person.version), 0), 0))), 0)) SETTINGS optimize_aggregation_in_order=1) AS e__pdi__person ON equals(e__pdi.person_id, e__pdi__person.id) WHERE and(equals(e.team_id, 2), and(and(equals(e.event, '$pageview'), and(or(ifNull(equals(e__pdi__person.properties___name, 'p1'), 0), ifNull(equals(e__pdi__person.properties___name, 'p2'), 0), ifNull(equals(e__pdi__person.properties___name, 'p3'), 0)), ifNull(in(e__pdi.person_id, - (SELECT cohortpeople.person_id + (SELECT cohortpeople.person_id AS person_id FROM cohortpeople WHERE and(equals(cohortpeople.team_id, 2), equals(cohortpeople.cohort_id, 24)) GROUP BY cohortpeople.person_id, cohortpeople.cohort_id, cohortpeople.version @@ -807,12 +807,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-01 00:00:00', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -893,12 +893,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-01 00:00:00', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -963,12 +963,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:01:01', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -1032,12 +1032,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:01:01', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -1124,7 +1124,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-02 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -1142,11 +1142,11 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, 'name'), ''), 'null'), '^"|"$', '') AS properties___name FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -1207,7 +1207,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-02 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -1233,7 +1233,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -1314,7 +1314,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -1357,12 +1357,12 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, '$some_prop'), ''), 'null'), '^"|"$', '') AS `properties___$some_prop`, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, 'filter_prop'), ''), 'null'), '^"|"$', '') AS properties___filter_prop FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -1383,12 +1383,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:01:01', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -1401,11 +1401,11 @@ ORDER BY sec.breakdown_value ASC, day_start ASC UNION ALL SELECT counts AS total, toStartOfDay(timestamp) AS day_start, - breakdown_value + breakdown_value AS breakdown_value FROM - (SELECT d.timestamp, + (SELECT d.timestamp AS timestamp, count(DISTINCT e.actor_id) AS counts, - e.breakdown_value + e.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS timestamp FROM numbers(dateDiff('day', minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:01:01', 6, 'UTC'))), toIntervalDay(30)), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC')))) AS numbers) AS d @@ -1422,12 +1422,12 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, '$some_prop'), ''), 'null'), '^"|"$', '') AS `properties___$some_prop`, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, 'filter_prop'), ''), 'null'), '^"|"$', '') AS properties___filter_prop FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -1473,12 +1473,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:01:01', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -1491,11 +1491,11 @@ ORDER BY sec.breakdown_value ASC, day_start ASC UNION ALL SELECT counts AS total, toStartOfDay(timestamp) AS day_start, - breakdown_value + breakdown_value AS breakdown_value FROM - (SELECT d.timestamp, + (SELECT d.timestamp AS timestamp, count(DISTINCT e.actor_id) AS counts, - e.breakdown_value + e.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS timestamp FROM numbers(dateDiff('day', minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:01:01', 6, 'UTC'))), toIntervalDay(30)), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC')))) AS numbers) AS d @@ -1534,7 +1534,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2022-11-30 23:59:59', 6, 'US/Pacific')), 0), toIntervalWeek(numbers.number)) AS day_start @@ -1589,7 +1589,7 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) WHERE and(equals(e.team_id, 2), greaterOrEquals(toTimeZone(e.timestamp, 'UTC'), toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:01:01', 6, 'UTC')))), lessOrEquals(toTimeZone(e.timestamp, 'UTC'), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), and(equals(e.event, 'sign up'), ifNull(in(e__pdi.person_id, - (SELECT cohortpeople.person_id + (SELECT cohortpeople.person_id AS person_id FROM cohortpeople WHERE and(equals(cohortpeople.team_id, 2), equals(cohortpeople.cohort_id, 37)) GROUP BY cohortpeople.person_id, cohortpeople.cohort_id, cohortpeople.version @@ -1609,12 +1609,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:01:01', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -1637,7 +1637,7 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) WHERE and(equals(e.team_id, 2), greaterOrEquals(toTimeZone(e.timestamp, 'UTC'), toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:01:01', 6, 'UTC')))), lessOrEquals(toTimeZone(e.timestamp, 'UTC'), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), and(equals(e.event, 'sign up'), ifNull(in(e__pdi.person_id, - (SELECT cohortpeople.person_id + (SELECT cohortpeople.person_id AS person_id FROM cohortpeople WHERE and(equals(cohortpeople.team_id, 2), equals(cohortpeople.cohort_id, 37)) GROUP BY cohortpeople.person_id, cohortpeople.cohort_id, cohortpeople.version @@ -1688,7 +1688,7 @@ WHERE equals(person_overrides.team_id, 2) GROUP BY person_overrides.old_person_id) AS e__override ON equals(e.person_id, e__override.old_person_id) WHERE and(equals(e.team_id, 2), greaterOrEquals(toTimeZone(e.timestamp, 'UTC'), toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:01:01', 6, 'UTC')))), lessOrEquals(toTimeZone(e.timestamp, 'UTC'), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), and(equals(e.event, 'sign up'), ifNull(in(ifNull(nullIf(e__override.override_person_id, '00000000-0000-0000-0000-000000000000'), e.person_id), - (SELECT cohortpeople.person_id + (SELECT cohortpeople.person_id AS person_id FROM cohortpeople WHERE and(equals(cohortpeople.team_id, 2), equals(cohortpeople.cohort_id, 38)) GROUP BY cohortpeople.person_id, cohortpeople.cohort_id, cohortpeople.version @@ -1708,12 +1708,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:01:01', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -1735,7 +1735,7 @@ WHERE equals(person_overrides.team_id, 2) GROUP BY person_overrides.old_person_id) AS e__override ON equals(e.person_id, e__override.old_person_id) WHERE and(equals(e.team_id, 2), greaterOrEquals(toTimeZone(e.timestamp, 'UTC'), toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:01:01', 6, 'UTC')))), lessOrEquals(toTimeZone(e.timestamp, 'UTC'), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), and(equals(e.event, 'sign up'), ifNull(in(ifNull(nullIf(e__override.override_person_id, '00000000-0000-0000-0000-000000000000'), e.person_id), - (SELECT cohortpeople.person_id + (SELECT cohortpeople.person_id AS person_id FROM cohortpeople WHERE and(equals(cohortpeople.team_id, 2), equals(cohortpeople.cohort_id, 38)) GROUP BY cohortpeople.person_id, cohortpeople.cohort_id, cohortpeople.version @@ -1758,7 +1758,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -1776,11 +1776,11 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, 'name'), ''), 'null'), '^"|"$', '') AS properties___name FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -1801,7 +1801,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -1819,11 +1819,11 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, 'name'), ''), 'null'), '^"|"$', '') AS properties___name FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -1844,7 +1844,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -1870,7 +1870,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -1888,11 +1888,11 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, nullIf(nullIf(person.pmat_name, ''), 'null') AS properties___name FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -1913,7 +1913,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -1939,7 +1939,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -1957,11 +1957,11 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, nullIf(nullIf(person.pmat_name, ''), 'null') AS properties___name FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -1996,7 +1996,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-03 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -2022,7 +2022,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-03 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -2054,7 +2054,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -2080,7 +2080,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -2119,7 +2119,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -2129,7 +2129,7 @@ UNION ALL SELECT counts AS total, toStartOfDay(timestamp) AS day_start FROM - (SELECT d.timestamp, + (SELECT d.timestamp AS timestamp, count(DISTINCT e.actor_id) AS counts FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS timestamp @@ -2171,7 +2171,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -2214,12 +2214,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-29 13:01:01', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -2266,7 +2266,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'America/Phoenix'))), toIntervalDay(numbers.number)) AS day_start @@ -2292,7 +2292,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'America/Phoenix'))), toIntervalDay(numbers.number)) AS day_start @@ -2331,7 +2331,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'America/Phoenix'))), toIntervalDay(numbers.number)) AS day_start @@ -2341,7 +2341,7 @@ UNION ALL SELECT counts AS total, toStartOfDay(timestamp) AS day_start FROM - (SELECT d.timestamp, + (SELECT d.timestamp AS timestamp, count(DISTINCT e.actor_id) AS counts FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'America/Phoenix'))), toIntervalDay(numbers.number)) AS timestamp @@ -2383,7 +2383,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'America/Phoenix'))), toIntervalDay(numbers.number)) AS day_start @@ -2426,12 +2426,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'America/Phoenix'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-29 06:01:01', 6, 'America/Phoenix')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'America/Phoenix'))), 0)) AS numbers @@ -2478,7 +2478,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'Asia/Tokyo'))), toIntervalDay(numbers.number)) AS day_start @@ -2504,7 +2504,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'Asia/Tokyo'))), toIntervalDay(numbers.number)) AS day_start @@ -2543,7 +2543,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'Asia/Tokyo'))), toIntervalDay(numbers.number)) AS day_start @@ -2553,7 +2553,7 @@ UNION ALL SELECT counts AS total, toStartOfDay(timestamp) AS day_start FROM - (SELECT d.timestamp, + (SELECT d.timestamp AS timestamp, count(DISTINCT e.actor_id) AS counts FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'Asia/Tokyo'))), toIntervalDay(numbers.number)) AS timestamp @@ -2595,7 +2595,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'Asia/Tokyo'))), toIntervalDay(numbers.number)) AS day_start @@ -2638,12 +2638,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'Asia/Tokyo'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-29 22:01:01', 6, 'Asia/Tokyo')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 23:59:59', 6, 'Asia/Tokyo'))), 0)) AS numbers @@ -2690,7 +2690,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfHour(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 10:59:59', 6, 'UTC'))), toIntervalHour(numbers.number)) AS day_start @@ -2729,7 +2729,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfHour(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 10:59:59', 6, 'UTC'))), toIntervalHour(numbers.number)) AS day_start @@ -2755,7 +2755,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfHour(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 10:59:59', 6, 'America/Phoenix'))), toIntervalHour(numbers.number)) AS day_start @@ -2794,7 +2794,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfHour(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 10:59:59', 6, 'America/Phoenix'))), toIntervalHour(numbers.number)) AS day_start @@ -2820,7 +2820,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfHour(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 10:59:59', 6, 'Asia/Tokyo'))), toIntervalHour(numbers.number)) AS day_start @@ -2859,7 +2859,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfHour(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-05 10:59:59', 6, 'Asia/Tokyo'))), toIntervalHour(numbers.number)) AS day_start @@ -2885,7 +2885,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-26 23:59:59', 6, 'UTC')), 0), toIntervalWeek(numbers.number)) AS day_start @@ -2911,7 +2911,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-26 23:59:59', 6, 'UTC')), 3), toIntervalWeek(numbers.number)) AS day_start @@ -2937,7 +2937,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-26 23:59:59', 6, 'America/Phoenix')), 0), toIntervalWeek(numbers.number)) AS day_start @@ -2963,7 +2963,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-26 23:59:59', 6, 'America/Phoenix')), 3), toIntervalWeek(numbers.number)) AS day_start @@ -2989,7 +2989,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-26 23:59:59', 6, 'Asia/Tokyo')), 0), toIntervalWeek(numbers.number)) AS day_start @@ -3015,7 +3015,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-26 23:59:59', 6, 'Asia/Tokyo')), 3), toIntervalWeek(numbers.number)) AS day_start @@ -3050,13 +3050,13 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, 'email'), ''), 'null'), '^"|"$', '') AS properties___email, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, '$os'), ''), 'null'), '^"|"$', '') AS `properties___$os`, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, '$browser'), ''), 'null'), '^"|"$', '') AS `properties___$browser` FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -3077,12 +3077,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-07-01 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-01 00:00:00', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-07-01 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -3105,13 +3105,13 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, 'email'), ''), 'null'), '^"|"$', '') AS properties___email, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, '$os'), ''), 'null'), '^"|"$', '') AS `properties___$os`, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, '$browser'), ''), 'null'), '^"|"$', '') AS `properties___$browser` FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -3144,13 +3144,13 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, 'email'), ''), 'null'), '^"|"$', '') AS properties___email, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, '$os'), ''), 'null'), '^"|"$', '') AS `properties___$os`, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, '$browser'), ''), 'null'), '^"|"$', '') AS `properties___$browser` FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -3171,12 +3171,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-07-01 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-01 00:00:00', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-07-01 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -3199,13 +3199,13 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, 'email'), ''), 'null'), '^"|"$', '') AS properties___email, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, '$os'), ''), 'null'), '^"|"$', '') AS `properties___$os`, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, '$browser'), ''), 'null'), '^"|"$', '') AS `properties___$browser` FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -3229,7 +3229,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-31 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -3255,7 +3255,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-31 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -3273,11 +3273,11 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, '$some_prop'), ''), 'null'), '^"|"$', '') AS `properties___$some_prop` FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -3307,11 +3307,11 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, '$some_prop'), ''), 'null'), '^"|"$', '') AS `properties___$some_prop` FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -3332,12 +3332,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-31 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-24 13:00:01', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-31 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -3360,11 +3360,11 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, '$some_prop'), ''), 'null'), '^"|"$', '') AS `properties___$some_prop` FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -3388,7 +3388,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-31 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -3398,7 +3398,7 @@ UNION ALL SELECT counts AS total, toStartOfDay(timestamp) AS day_start FROM - (SELECT d.timestamp, + (SELECT d.timestamp AS timestamp, count(DISTINCT e.actor_id) AS counts FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-31 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS timestamp @@ -3427,7 +3427,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-31 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -3437,7 +3437,7 @@ UNION ALL SELECT counts AS total, toStartOfDay(timestamp) AS day_start FROM - (SELECT d.timestamp, + (SELECT d.timestamp AS timestamp, count(DISTINCT e.actor_id) AS counts FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-31 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS timestamp @@ -3483,12 +3483,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-31 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-24 13:00:01', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-31 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -3522,7 +3522,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -3548,7 +3548,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -3590,18 +3590,18 @@ groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value FROM - (SELECT day_start, + (SELECT day_start AS day_start, sum(count) OVER (PARTITION BY breakdown_value ORDER BY day_start ASC) AS count, - breakdown_value + breakdown_value AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:00:01', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -3664,18 +3664,18 @@ groupArray(count) AS total, ifNull(toString(breakdown_value), '') AS breakdown_value FROM - (SELECT day_start, + (SELECT day_start AS day_start, sum(count) OVER (PARTITION BY breakdown_value ORDER BY day_start ASC) AS count, - breakdown_value + breakdown_value AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:00:01', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -3729,12 +3729,12 @@ ' SELECT sum(count) AS total, - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 1 AS group_key, groupArray(day_start) AS day_start FROM - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC')), 0), toIntervalWeek(numbers.number)) AS day_start @@ -3746,10 +3746,10 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - breakdown_value + breakdown_value AS breakdown_value FROM (SELECT quantile(0.5)(session_duration) AS total, - breakdown_value + breakdown_value AS breakdown_value FROM (SELECT any(e__session.duration) AS session_duration, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$some_property'), ''), 'null'), '^"|"$', '') AS breakdown_value @@ -3793,12 +3793,12 @@ ' SELECT sum(count) AS total, - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 1 AS group_key, groupArray(day_start) AS day_start FROM - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -3810,10 +3810,10 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - breakdown_value + breakdown_value AS breakdown_value FROM (SELECT quantile(0.5)(session_duration) AS total, - breakdown_value + breakdown_value AS breakdown_value FROM (SELECT any(e__session.duration) AS session_duration, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$some_property'), ''), 'null'), '^"|"$', '') AS breakdown_value @@ -3843,7 +3843,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -3869,7 +3869,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -3895,7 +3895,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -3919,12 +3919,12 @@ ' SELECT sum(count) AS total, - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 1 AS group_key, groupArray(day_start) AS day_start FROM - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-07 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -3936,7 +3936,7 @@ FROM (SELECT sum(total) AS count FROM - (SELECT total + (SELECT total AS total FROM (SELECT avg(total) AS total FROM @@ -3967,12 +3967,12 @@ ' SELECT sum(count) AS total, - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 1 AS group_key, groupArray(day_start) AS day_start FROM - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-07 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -3984,7 +3984,7 @@ FROM (SELECT sum(total) AS count FROM - (SELECT total + (SELECT total AS total FROM (SELECT avg(total) AS total FROM @@ -4024,12 +4024,12 @@ ' SELECT sum(count) AS total, - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 1 AS group_key, groupArray(day_start) AS day_start FROM - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-07 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -4041,13 +4041,13 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - breakdown_value + breakdown_value AS breakdown_value FROM - (SELECT total, - breakdown_value + (SELECT total AS total, + breakdown_value AS breakdown_value FROM (SELECT avg(total) AS total, - breakdown_value + breakdown_value AS breakdown_value FROM (SELECT count(e.uuid) AS total, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, 'color'), ''), 'null'), '^"|"$', '') AS breakdown_value @@ -4084,18 +4084,18 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-07 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-01 00:00:00', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-07 23:59:59', 6, 'UTC'))), 0)) AS numbers UNION ALL SELECT 0 AS total, toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-01 00:00:00', 6, 'UTC'))) AS day_start - UNION ALL SELECT total, - day_start + UNION ALL SELECT total AS total, + day_start AS day_start FROM (SELECT avg(total) AS total, - day_start + day_start AS day_start FROM (SELECT count(e.uuid) AS total, toStartOfDay(toTimeZone(e.timestamp, 'UTC')) AS day_start @@ -4131,18 +4131,18 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-07 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-01 00:00:00', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-07 23:59:59', 6, 'UTC'))), 0)) AS numbers UNION ALL SELECT 0 AS total, toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-01 00:00:00', 6, 'UTC'))) AS day_start - UNION ALL SELECT total, - day_start + UNION ALL SELECT total AS total, + day_start AS day_start FROM (SELECT avg(total) AS total, - day_start + day_start AS day_start FROM (SELECT count(e.uuid) AS total, toStartOfDay(toTimeZone(e.timestamp, 'UTC')) AS day_start @@ -4170,12 +4170,12 @@ SELECT groupArray(day_start) AS date, groupArray(count) AS total FROM - (SELECT day_start, + (SELECT day_start AS day_start, sum(count) OVER ( ORDER BY day_start ASC) AS count FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -4210,11 +4210,11 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, '$some_prop'), ''), 'null'), '^"|"$', '') AS `properties___$some_prop` FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -4232,12 +4232,12 @@ ' SELECT sum(count) AS total, - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 1 AS group_key, groupArray(day_start) AS day_start FROM - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC')), 0), toIntervalWeek(numbers.number)) AS day_start @@ -4249,10 +4249,10 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - breakdown_value + breakdown_value AS breakdown_value FROM (SELECT quantile(0.5)(session_duration) AS total, - breakdown_value + breakdown_value AS breakdown_value FROM (SELECT any(e__session.duration) AS session_duration, e__pdi__person.`properties___$some_prop` AS breakdown_value @@ -4271,11 +4271,11 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, '$some_prop'), ''), 'null'), '^"|"$', '') AS `properties___$some_prop` FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -4299,7 +4299,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC')), 0), toIntervalWeek(numbers.number)) AS day_start @@ -4323,12 +4323,12 @@ ' SELECT sum(count) AS total, - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 1 AS group_key, groupArray(day_start) AS day_start FROM - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC')), 0), toIntervalWeek(numbers.number)) AS day_start @@ -4362,12 +4362,12 @@ ' SELECT sum(count) AS total, - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 1 AS group_key, groupArray(day_start) AS day_start FROM - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -4403,7 +4403,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC')), 0), toIntervalWeek(numbers.number)) AS day_start @@ -4411,7 +4411,7 @@ UNION ALL SELECT 0 AS total, toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:00:01', 6, 'UTC')), 0) AS day_start UNION ALL SELECT quantile(0.5)(session_duration) AS total, - day_start + day_start AS day_start FROM (SELECT any(e__session.duration) AS session_duration, toStartOfWeek(toTimeZone(e.timestamp, 'UTC'), 0) AS day_start @@ -4441,7 +4441,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -4449,7 +4449,7 @@ UNION ALL SELECT 0 AS total, toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:00:01', 6, 'UTC'))) AS day_start UNION ALL SELECT quantile(0.5)(session_duration) AS total, - day_start + day_start AS day_start FROM (SELECT any(e__session.duration) AS session_duration, toStartOfDay(toTimeZone(e.timestamp, 'UTC')) AS day_start @@ -4496,12 +4496,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC')), 0), toIntervalWeek(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('week', assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:00:01', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -4513,8 +4513,8 @@ JOIN breakdown_value AS breakdown_value) AS sec ORDER BY sec.breakdown_value ASC, day_start ASC UNION ALL SELECT quantile(0.5)(session_duration) AS total, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT any(e__session.duration) AS session_duration, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$some_property'), ''), 'null'), '^"|"$', '') AS breakdown_value, @@ -4566,12 +4566,12 @@ ifNull(toString(breakdown_value), '') AS breakdown_value FROM (SELECT sum(total) AS count, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT 0 AS total, ticks.day_start AS day_start, - sec.breakdown_value + sec.breakdown_value AS breakdown_value FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start FROM numbers(coalesce(dateDiff('day', assumeNotNull(parseDateTime64BestEffortOrNull('2019-12-28 13:00:05', 6, 'UTC')), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-04 23:59:59', 6, 'UTC'))), 0)) AS numbers @@ -4583,8 +4583,8 @@ JOIN breakdown_value AS breakdown_value) AS sec ORDER BY sec.breakdown_value ASC, day_start ASC UNION ALL SELECT quantile(0.5)(session_duration) AS total, - day_start, - breakdown_value + day_start AS day_start, + breakdown_value AS breakdown_value FROM (SELECT any(e__session.duration) AS session_duration, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(e.properties, '$some_property'), ''), 'null'), '^"|"$', '') AS breakdown_value, @@ -4617,12 +4617,12 @@ ' SELECT sum(count) AS total, - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 1 AS group_key, groupArray(day_start) AS day_start FROM - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -4636,8 +4636,8 @@ FROM (SELECT count(DISTINCT actor_id) AS total FROM - (SELECT d.timestamp, - e.actor_id + (SELECT d.timestamp AS timestamp, + e.actor_id AS actor_id FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS timestamp FROM numbers(dateDiff('day', minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-11 00:00:00', 6, 'UTC'))), toIntervalDay(7)), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC')))) AS numbers) AS d @@ -4675,12 +4675,12 @@ ' SELECT sum(count) AS total, - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 1 AS group_key, groupArray(day_start) AS day_start FROM - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-08 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -4694,8 +4694,8 @@ FROM (SELECT count(DISTINCT actor_id) AS total FROM - (SELECT d.timestamp, - e.actor_id + (SELECT d.timestamp AS timestamp, + e.actor_id AS actor_id FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-08 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS timestamp FROM numbers(dateDiff('day', minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-01 00:00:00', 6, 'UTC'))), toIntervalDay(7)), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-08 23:59:59', 6, 'UTC')))) AS numbers) AS d @@ -4733,12 +4733,12 @@ ' SELECT sum(count) AS total, - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 1 AS group_key, groupArray(day_start) AS day_start FROM - (SELECT day_start + (SELECT day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-08 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -4752,8 +4752,8 @@ FROM (SELECT count(DISTINCT actor_id) AS total FROM - (SELECT d.timestamp, - e.actor_id + (SELECT d.timestamp AS timestamp, + e.actor_id AS actor_id FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-08 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS timestamp FROM numbers(dateDiff('day', minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-01 00:00:00', 6, 'UTC'))), toIntervalDay(7)), assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-08 23:59:59', 6, 'UTC')))) AS numbers) AS d @@ -4793,7 +4793,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-19 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -4803,7 +4803,7 @@ UNION ALL SELECT counts AS total, toStartOfDay(timestamp) AS day_start FROM - (SELECT d.timestamp, + (SELECT d.timestamp AS timestamp, count(DISTINCT e.actor_id) AS counts FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-19 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS timestamp @@ -4845,7 +4845,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-19 23:59:59', 6, 'America/Phoenix'))), toIntervalDay(numbers.number)) AS day_start @@ -4855,7 +4855,7 @@ UNION ALL SELECT counts AS total, toStartOfDay(timestamp) AS day_start FROM - (SELECT d.timestamp, + (SELECT d.timestamp AS timestamp, count(DISTINCT e.actor_id) AS counts FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-19 23:59:59', 6, 'America/Phoenix'))), toIntervalDay(numbers.number)) AS timestamp @@ -4897,7 +4897,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-19 23:59:59', 6, 'Asia/Tokyo'))), toIntervalDay(numbers.number)) AS day_start @@ -4907,7 +4907,7 @@ UNION ALL SELECT counts AS total, toStartOfDay(timestamp) AS day_start FROM - (SELECT d.timestamp, + (SELECT d.timestamp AS timestamp, count(DISTINCT e.actor_id) AS counts FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-19 23:59:59', 6, 'Asia/Tokyo'))), toIntervalDay(numbers.number)) AS timestamp @@ -4949,7 +4949,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -4959,7 +4959,7 @@ UNION ALL SELECT counts AS total, toStartOfDay(timestamp) AS day_start FROM - (SELECT d.timestamp, + (SELECT d.timestamp AS timestamp, count(DISTINCT e.actor_id) AS counts FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS timestamp @@ -4976,11 +4976,11 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(person.properties, 'name'), ''), 'null'), '^"|"$', '') AS properties___name FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -5005,7 +5005,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS day_start @@ -5015,7 +5015,7 @@ UNION ALL SELECT counts AS total, toStartOfDay(timestamp) AS day_start FROM - (SELECT d.timestamp, + (SELECT d.timestamp AS timestamp, count(DISTINCT e.actor_id) AS counts FROM (SELECT minus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-12 23:59:59', 6, 'UTC'))), toIntervalDay(numbers.number)) AS timestamp @@ -5032,11 +5032,11 @@ GROUP BY person_distinct_id2.distinct_id HAVING ifNull(equals(argMax(person_distinct_id2.is_deleted, person_distinct_id2.version), 0), 0)) AS e__pdi ON equals(e.distinct_id, e__pdi.distinct_id) INNER JOIN - (SELECT person.id, + (SELECT person.id AS id, nullIf(nullIf(person.pmat_name, ''), 'null') AS properties___name FROM person WHERE and(equals(person.team_id, 2), ifNull(in(tuple(person.id, person.version), - (SELECT person.id, max(person.version) AS version + (SELECT person.id AS id, max(person.version) AS version FROM person WHERE equals(person.team_id, 2) GROUP BY person.id @@ -5061,7 +5061,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfHour(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-09 17:00:00', 6, 'UTC'))), toIntervalHour(numbers.number)) AS day_start @@ -5071,7 +5071,7 @@ UNION ALL SELECT counts AS total, toStartOfHour(timestamp) AS day_start FROM - (SELECT d.timestamp, + (SELECT d.timestamp AS timestamp, count(DISTINCT e.actor_id) AS counts FROM (SELECT minus(toStartOfHour(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-09 17:00:00', 6, 'UTC'))), toIntervalHour(numbers.number)) AS timestamp @@ -5113,7 +5113,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-18 23:59:59', 6, 'UTC')), 0), toIntervalWeek(numbers.number)) AS day_start @@ -5123,7 +5123,7 @@ UNION ALL SELECT counts AS total, toStartOfWeek(timestamp, 0) AS day_start FROM - (SELECT d.timestamp, + (SELECT d.timestamp AS timestamp, count(DISTINCT e.actor_id) AS counts FROM (SELECT minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-18 23:59:59', 6, 'UTC')), 0), toIntervalWeek(numbers.number)) AS timestamp @@ -5165,7 +5165,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-18 23:59:59', 6, 'America/Phoenix')), 0), toIntervalWeek(numbers.number)) AS day_start @@ -5175,7 +5175,7 @@ UNION ALL SELECT counts AS total, toStartOfWeek(timestamp, 0) AS day_start FROM - (SELECT d.timestamp, + (SELECT d.timestamp AS timestamp, count(DISTINCT e.actor_id) AS counts FROM (SELECT minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-18 23:59:59', 6, 'America/Phoenix')), 0), toIntervalWeek(numbers.number)) AS timestamp @@ -5217,7 +5217,7 @@ groupArray(count) AS total FROM (SELECT sum(total) AS count, - day_start + day_start AS day_start FROM (SELECT 0 AS total, minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-18 23:59:59', 6, 'Asia/Tokyo')), 0), toIntervalWeek(numbers.number)) AS day_start @@ -5227,7 +5227,7 @@ UNION ALL SELECT counts AS total, toStartOfWeek(timestamp, 0) AS day_start FROM - (SELECT d.timestamp, + (SELECT d.timestamp AS timestamp, count(DISTINCT e.actor_id) AS counts FROM (SELECT minus(toStartOfWeek(assumeNotNull(parseDateTime64BestEffortOrNull('2020-01-18 23:59:59', 6, 'Asia/Tokyo')), 0), toIntervalWeek(numbers.number)) AS timestamp diff --git a/posthog/hogql_queries/test/__snapshots__/test_sessions_timeline_query_runner.ambr b/posthog/hogql_queries/test/__snapshots__/test_sessions_timeline_query_runner.ambr index b73f7380c6b6b..6f369e808e993 100644 --- a/posthog/hogql_queries/test/__snapshots__/test_sessions_timeline_query_runner.ambr +++ b/posthog/hogql_queries/test/__snapshots__/test_sessions_timeline_query_runner.ambr @@ -1,34 +1,36 @@ # name: TestSessionsTimelineQueryRunner.test_before_and_after ' - SELECT e.uuid, - e.timestamp, - e.event, - e.properties, - e.distinct_id, - e.elements_chain, + SELECT e.uuid AS uuid, + e.timestamp AS timestamp, + e.event AS event, + e.properties AS properties, + e.distinct_id AS distinct_id, + e.elements_chain AS elements_chain, e.session_id AS formal_session_id, first_value(e.uuid) OVER (PARTITION BY tuple(e.person_id, e.session_id_flip_index) ORDER BY toInt64(e.timestamp) ASC RANGE BETWEEN 1800 PRECEDING AND CURRENT ROW) AS informal_session_uuid, dateDiff('s', sre.start_time, sre.end_time) AS recording_duration_s FROM - (SELECT uuid, - person_id, timestamp, event, - properties, - distinct_id, - elements_chain, - session_id, - prev_session_id, - sum(if(ifNull(equals(session_id, prev_session_id), isNull(session_id) - and isNull(prev_session_id)), 0, 1)) OVER (PARTITION BY person_id - ORDER BY timestamp ASC ROWS UNBOUNDED PRECEDING) AS session_id_flip_index + (SELECT uuid AS uuid, + person_id AS person_id, + timestamp AS timestamp, + event AS event, + properties AS properties, + distinct_id AS distinct_id, + elements_chain AS elements_chain, + session_id AS session_id, + prev_session_id AS prev_session_id, + sum(if(ifNull(equals(session_id, prev_session_id), isNull(session_id) + and isNull(prev_session_id)), 0, 1)) OVER (PARTITION BY person_id + ORDER BY timestamp ASC ROWS UNBOUNDED PRECEDING) AS session_id_flip_index FROM - (SELECT events.uuid, + (SELECT events.uuid AS uuid, events__pdi.person_id AS person_id, toTimeZone(events.timestamp, 'UTC') AS timestamp, - events.event, - events.properties, - events.distinct_id, - events.elements_chain, + events.event AS event, + events.properties AS properties, + events.distinct_id AS distinct_id, + events.elements_chain AS elements_chain, events.`$session_id` AS session_id, lagInFrame(events.`$session_id`, 1) OVER (PARTITION BY person_id ORDER BY timestamp ASC) AS prev_session_id @@ -46,7 +48,7 @@ LEFT JOIN (SELECT toTimeZone(session_replay_events.start_time, 'UTC') AS start_time, toTimeZone(session_replay_events.end_time, 'UTC') AS end_time, - session_replay_events.session_id + session_replay_events.session_id AS session_id FROM (SELECT min(session_replay_events.min_first_timestamp) AS start_time, max(session_replay_events.max_last_timestamp) AS end_time, @@ -62,35 +64,37 @@ --- # name: TestSessionsTimelineQueryRunner.test_before_and_after_defaults ' - SELECT e.uuid, - e.timestamp, - e.event, - e.properties, - e.distinct_id, - e.elements_chain, + SELECT e.uuid AS uuid, + e.timestamp AS timestamp, + e.event AS event, + e.properties AS properties, + e.distinct_id AS distinct_id, + e.elements_chain AS elements_chain, e.session_id AS formal_session_id, first_value(e.uuid) OVER (PARTITION BY tuple(e.person_id, e.session_id_flip_index) ORDER BY toInt64(e.timestamp) ASC RANGE BETWEEN 1800 PRECEDING AND CURRENT ROW) AS informal_session_uuid, dateDiff('s', sre.start_time, sre.end_time) AS recording_duration_s FROM - (SELECT uuid, - person_id, timestamp, event, - properties, - distinct_id, - elements_chain, - session_id, - prev_session_id, - sum(if(ifNull(equals(session_id, prev_session_id), isNull(session_id) - and isNull(prev_session_id)), 0, 1)) OVER (PARTITION BY person_id - ORDER BY timestamp ASC ROWS UNBOUNDED PRECEDING) AS session_id_flip_index + (SELECT uuid AS uuid, + person_id AS person_id, + timestamp AS timestamp, + event AS event, + properties AS properties, + distinct_id AS distinct_id, + elements_chain AS elements_chain, + session_id AS session_id, + prev_session_id AS prev_session_id, + sum(if(ifNull(equals(session_id, prev_session_id), isNull(session_id) + and isNull(prev_session_id)), 0, 1)) OVER (PARTITION BY person_id + ORDER BY timestamp ASC ROWS UNBOUNDED PRECEDING) AS session_id_flip_index FROM - (SELECT events.uuid, + (SELECT events.uuid AS uuid, events__pdi.person_id AS person_id, toTimeZone(events.timestamp, 'UTC') AS timestamp, - events.event, - events.properties, - events.distinct_id, - events.elements_chain, + events.event AS event, + events.properties AS properties, + events.distinct_id AS distinct_id, + events.elements_chain AS elements_chain, events.`$session_id` AS session_id, lagInFrame(events.`$session_id`, 1) OVER (PARTITION BY person_id ORDER BY timestamp ASC) AS prev_session_id @@ -108,7 +112,7 @@ LEFT JOIN (SELECT toTimeZone(session_replay_events.start_time, 'UTC') AS start_time, toTimeZone(session_replay_events.end_time, 'UTC') AS end_time, - session_replay_events.session_id + session_replay_events.session_id AS session_id FROM (SELECT min(session_replay_events.min_first_timestamp) AS start_time, max(session_replay_events.max_last_timestamp) AS end_time, @@ -124,35 +128,37 @@ --- # name: TestSessionsTimelineQueryRunner.test_event_limit_and_has_more ' - SELECT e.uuid, - e.timestamp, - e.event, - e.properties, - e.distinct_id, - e.elements_chain, + SELECT e.uuid AS uuid, + e.timestamp AS timestamp, + e.event AS event, + e.properties AS properties, + e.distinct_id AS distinct_id, + e.elements_chain AS elements_chain, e.session_id AS formal_session_id, first_value(e.uuid) OVER (PARTITION BY tuple(e.person_id, e.session_id_flip_index) ORDER BY toInt64(e.timestamp) ASC RANGE BETWEEN 1800 PRECEDING AND CURRENT ROW) AS informal_session_uuid, dateDiff('s', sre.start_time, sre.end_time) AS recording_duration_s FROM - (SELECT uuid, - person_id, timestamp, event, - properties, - distinct_id, - elements_chain, - session_id, - prev_session_id, - sum(if(ifNull(equals(session_id, prev_session_id), isNull(session_id) - and isNull(prev_session_id)), 0, 1)) OVER (PARTITION BY person_id - ORDER BY timestamp ASC ROWS UNBOUNDED PRECEDING) AS session_id_flip_index + (SELECT uuid AS uuid, + person_id AS person_id, + timestamp AS timestamp, + event AS event, + properties AS properties, + distinct_id AS distinct_id, + elements_chain AS elements_chain, + session_id AS session_id, + prev_session_id AS prev_session_id, + sum(if(ifNull(equals(session_id, prev_session_id), isNull(session_id) + and isNull(prev_session_id)), 0, 1)) OVER (PARTITION BY person_id + ORDER BY timestamp ASC ROWS UNBOUNDED PRECEDING) AS session_id_flip_index FROM - (SELECT events.uuid, + (SELECT events.uuid AS uuid, events__pdi.person_id AS person_id, toTimeZone(events.timestamp, 'UTC') AS timestamp, - events.event, - events.properties, - events.distinct_id, - events.elements_chain, + events.event AS event, + events.properties AS properties, + events.distinct_id AS distinct_id, + events.elements_chain AS elements_chain, events.`$session_id` AS session_id, lagInFrame(events.`$session_id`, 1) OVER (PARTITION BY person_id ORDER BY timestamp ASC) AS prev_session_id @@ -170,7 +176,7 @@ LEFT JOIN (SELECT toTimeZone(session_replay_events.start_time, 'UTC') AS start_time, toTimeZone(session_replay_events.end_time, 'UTC') AS end_time, - session_replay_events.session_id + session_replay_events.session_id AS session_id FROM (SELECT min(session_replay_events.min_first_timestamp) AS start_time, max(session_replay_events.max_last_timestamp) AS end_time, @@ -186,35 +192,37 @@ --- # name: TestSessionsTimelineQueryRunner.test_formal_and_informal_sessions_global ' - SELECT e.uuid, - e.timestamp, - e.event, - e.properties, - e.distinct_id, - e.elements_chain, + SELECT e.uuid AS uuid, + e.timestamp AS timestamp, + e.event AS event, + e.properties AS properties, + e.distinct_id AS distinct_id, + e.elements_chain AS elements_chain, e.session_id AS formal_session_id, first_value(e.uuid) OVER (PARTITION BY tuple(e.person_id, e.session_id_flip_index) ORDER BY toInt64(e.timestamp) ASC RANGE BETWEEN 1800 PRECEDING AND CURRENT ROW) AS informal_session_uuid, dateDiff('s', sre.start_time, sre.end_time) AS recording_duration_s FROM - (SELECT uuid, - person_id, timestamp, event, - properties, - distinct_id, - elements_chain, - session_id, - prev_session_id, - sum(if(ifNull(equals(session_id, prev_session_id), isNull(session_id) - and isNull(prev_session_id)), 0, 1)) OVER (PARTITION BY person_id - ORDER BY timestamp ASC ROWS UNBOUNDED PRECEDING) AS session_id_flip_index + (SELECT uuid AS uuid, + person_id AS person_id, + timestamp AS timestamp, + event AS event, + properties AS properties, + distinct_id AS distinct_id, + elements_chain AS elements_chain, + session_id AS session_id, + prev_session_id AS prev_session_id, + sum(if(ifNull(equals(session_id, prev_session_id), isNull(session_id) + and isNull(prev_session_id)), 0, 1)) OVER (PARTITION BY person_id + ORDER BY timestamp ASC ROWS UNBOUNDED PRECEDING) AS session_id_flip_index FROM - (SELECT events.uuid, + (SELECT events.uuid AS uuid, events__pdi.person_id AS person_id, toTimeZone(events.timestamp, 'UTC') AS timestamp, - events.event, - events.properties, - events.distinct_id, - events.elements_chain, + events.event AS event, + events.properties AS properties, + events.distinct_id AS distinct_id, + events.elements_chain AS elements_chain, events.`$session_id` AS session_id, lagInFrame(events.`$session_id`, 1) OVER (PARTITION BY person_id ORDER BY timestamp ASC) AS prev_session_id @@ -232,7 +240,7 @@ LEFT JOIN (SELECT toTimeZone(session_replay_events.start_time, 'UTC') AS start_time, toTimeZone(session_replay_events.end_time, 'UTC') AS end_time, - session_replay_events.session_id + session_replay_events.session_id AS session_id FROM (SELECT min(session_replay_events.min_first_timestamp) AS start_time, max(session_replay_events.max_last_timestamp) AS end_time, @@ -248,35 +256,37 @@ --- # name: TestSessionsTimelineQueryRunner.test_formal_session_with_recording ' - SELECT e.uuid, - e.timestamp, - e.event, - e.properties, - e.distinct_id, - e.elements_chain, + SELECT e.uuid AS uuid, + e.timestamp AS timestamp, + e.event AS event, + e.properties AS properties, + e.distinct_id AS distinct_id, + e.elements_chain AS elements_chain, e.session_id AS formal_session_id, first_value(e.uuid) OVER (PARTITION BY tuple(e.person_id, e.session_id_flip_index) ORDER BY toInt64(e.timestamp) ASC RANGE BETWEEN 1800 PRECEDING AND CURRENT ROW) AS informal_session_uuid, dateDiff('s', sre.start_time, sre.end_time) AS recording_duration_s FROM - (SELECT uuid, - person_id, timestamp, event, - properties, - distinct_id, - elements_chain, - session_id, - prev_session_id, - sum(if(ifNull(equals(session_id, prev_session_id), isNull(session_id) - and isNull(prev_session_id)), 0, 1)) OVER (PARTITION BY person_id - ORDER BY timestamp ASC ROWS UNBOUNDED PRECEDING) AS session_id_flip_index + (SELECT uuid AS uuid, + person_id AS person_id, + timestamp AS timestamp, + event AS event, + properties AS properties, + distinct_id AS distinct_id, + elements_chain AS elements_chain, + session_id AS session_id, + prev_session_id AS prev_session_id, + sum(if(ifNull(equals(session_id, prev_session_id), isNull(session_id) + and isNull(prev_session_id)), 0, 1)) OVER (PARTITION BY person_id + ORDER BY timestamp ASC ROWS UNBOUNDED PRECEDING) AS session_id_flip_index FROM - (SELECT events.uuid, + (SELECT events.uuid AS uuid, events__pdi.person_id AS person_id, toTimeZone(events.timestamp, 'UTC') AS timestamp, - events.event, - events.properties, - events.distinct_id, - events.elements_chain, + events.event AS event, + events.properties AS properties, + events.distinct_id AS distinct_id, + events.elements_chain AS elements_chain, events.`$session_id` AS session_id, lagInFrame(events.`$session_id`, 1) OVER (PARTITION BY person_id ORDER BY timestamp ASC) AS prev_session_id @@ -294,7 +304,7 @@ LEFT JOIN (SELECT toTimeZone(session_replay_events.start_time, 'UTC') AS start_time, toTimeZone(session_replay_events.end_time, 'UTC') AS end_time, - session_replay_events.session_id + session_replay_events.session_id AS session_id FROM (SELECT min(session_replay_events.min_first_timestamp) AS start_time, max(session_replay_events.max_last_timestamp) AS end_time, @@ -310,35 +320,37 @@ --- # name: TestSessionsTimelineQueryRunner.test_formal_sessions_for_person ' - SELECT e.uuid, - e.timestamp, - e.event, - e.properties, - e.distinct_id, - e.elements_chain, + SELECT e.uuid AS uuid, + e.timestamp AS timestamp, + e.event AS event, + e.properties AS properties, + e.distinct_id AS distinct_id, + e.elements_chain AS elements_chain, e.session_id AS formal_session_id, first_value(e.uuid) OVER (PARTITION BY tuple(e.person_id, e.session_id_flip_index) ORDER BY toInt64(e.timestamp) ASC RANGE BETWEEN 1800 PRECEDING AND CURRENT ROW) AS informal_session_uuid, dateDiff('s', sre.start_time, sre.end_time) AS recording_duration_s FROM - (SELECT uuid, - person_id, timestamp, event, - properties, - distinct_id, - elements_chain, - session_id, - prev_session_id, - sum(if(ifNull(equals(session_id, prev_session_id), isNull(session_id) - and isNull(prev_session_id)), 0, 1)) OVER (PARTITION BY person_id - ORDER BY timestamp ASC ROWS UNBOUNDED PRECEDING) AS session_id_flip_index + (SELECT uuid AS uuid, + person_id AS person_id, + timestamp AS timestamp, + event AS event, + properties AS properties, + distinct_id AS distinct_id, + elements_chain AS elements_chain, + session_id AS session_id, + prev_session_id AS prev_session_id, + sum(if(ifNull(equals(session_id, prev_session_id), isNull(session_id) + and isNull(prev_session_id)), 0, 1)) OVER (PARTITION BY person_id + ORDER BY timestamp ASC ROWS UNBOUNDED PRECEDING) AS session_id_flip_index FROM - (SELECT events.uuid, + (SELECT events.uuid AS uuid, events__pdi.person_id AS person_id, toTimeZone(events.timestamp, 'UTC') AS timestamp, - events.event, - events.properties, - events.distinct_id, - events.elements_chain, + events.event AS event, + events.properties AS properties, + events.distinct_id AS distinct_id, + events.elements_chain AS elements_chain, events.`$session_id` AS session_id, lagInFrame(events.`$session_id`, 1) OVER (PARTITION BY person_id ORDER BY timestamp ASC) AS prev_session_id @@ -356,7 +368,7 @@ LEFT JOIN (SELECT toTimeZone(session_replay_events.start_time, 'UTC') AS start_time, toTimeZone(session_replay_events.end_time, 'UTC') AS end_time, - session_replay_events.session_id + session_replay_events.session_id AS session_id FROM (SELECT min(session_replay_events.min_first_timestamp) AS start_time, max(session_replay_events.max_last_timestamp) AS end_time, @@ -372,35 +384,37 @@ --- # name: TestSessionsTimelineQueryRunner.test_formal_sessions_global ' - SELECT e.uuid, - e.timestamp, - e.event, - e.properties, - e.distinct_id, - e.elements_chain, + SELECT e.uuid AS uuid, + e.timestamp AS timestamp, + e.event AS event, + e.properties AS properties, + e.distinct_id AS distinct_id, + e.elements_chain AS elements_chain, e.session_id AS formal_session_id, first_value(e.uuid) OVER (PARTITION BY tuple(e.person_id, e.session_id_flip_index) ORDER BY toInt64(e.timestamp) ASC RANGE BETWEEN 1800 PRECEDING AND CURRENT ROW) AS informal_session_uuid, dateDiff('s', sre.start_time, sre.end_time) AS recording_duration_s FROM - (SELECT uuid, - person_id, timestamp, event, - properties, - distinct_id, - elements_chain, - session_id, - prev_session_id, - sum(if(ifNull(equals(session_id, prev_session_id), isNull(session_id) - and isNull(prev_session_id)), 0, 1)) OVER (PARTITION BY person_id - ORDER BY timestamp ASC ROWS UNBOUNDED PRECEDING) AS session_id_flip_index + (SELECT uuid AS uuid, + person_id AS person_id, + timestamp AS timestamp, + event AS event, + properties AS properties, + distinct_id AS distinct_id, + elements_chain AS elements_chain, + session_id AS session_id, + prev_session_id AS prev_session_id, + sum(if(ifNull(equals(session_id, prev_session_id), isNull(session_id) + and isNull(prev_session_id)), 0, 1)) OVER (PARTITION BY person_id + ORDER BY timestamp ASC ROWS UNBOUNDED PRECEDING) AS session_id_flip_index FROM - (SELECT events.uuid, + (SELECT events.uuid AS uuid, events__pdi.person_id AS person_id, toTimeZone(events.timestamp, 'UTC') AS timestamp, - events.event, - events.properties, - events.distinct_id, - events.elements_chain, + events.event AS event, + events.properties AS properties, + events.distinct_id AS distinct_id, + events.elements_chain AS elements_chain, events.`$session_id` AS session_id, lagInFrame(events.`$session_id`, 1) OVER (PARTITION BY person_id ORDER BY timestamp ASC) AS prev_session_id @@ -418,7 +432,7 @@ LEFT JOIN (SELECT toTimeZone(session_replay_events.start_time, 'UTC') AS start_time, toTimeZone(session_replay_events.end_time, 'UTC') AS end_time, - session_replay_events.session_id + session_replay_events.session_id AS session_id FROM (SELECT min(session_replay_events.min_first_timestamp) AS start_time, max(session_replay_events.max_last_timestamp) AS end_time, From 27efddf0b5798519ff59e245ee0e434326c1616b Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 20:57:29 +0000 Subject: [PATCH 03/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 2d84d09e37ef8..8f5eea7cb8e61 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-5126-03aef09600a2') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-4292-d10abf3ac156') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 634aa69a1405f..ef27b35625975 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a0c-628f-0000-ff51-4b4fa01e94cb')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a18-4d2d-0000-0e71-370ef97c093a')) LIMIT 100 ' --- From 20e9f2ea6c3830ad004f491bceb20c59de5bb401 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 21:11:11 +0000 Subject: [PATCH 04/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 8f5eea7cb8e61..1e0d727d0cf44 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-4292-d10abf3ac156') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-c00b-b61565758e80') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index ef27b35625975..40994d64c9af4 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a18-4d2d-0000-0e71-370ef97c093a')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a24-de5c-0000-7694-7fe6c2b4d030')) LIMIT 100 ' --- From daa43c7682edb3744c49ed04e99bf5c1b2003dc4 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 21:24:20 +0000 Subject: [PATCH 05/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 1e0d727d0cf44..a62401b138e31 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-c00b-b61565758e80') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-9caa-ba77f02d43c9') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 40994d64c9af4..0fae9458951b9 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a24-de5c-0000-7694-7fe6c2b4d030')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a30-b36f-0000-cac6-b263205db07c')) LIMIT 100 ' --- From cf134a3cd9207e3025239b57e5467b9459b9d7f6 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 21:37:19 +0000 Subject: [PATCH 06/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index a62401b138e31..860e23138920d 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-9caa-ba77f02d43c9') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-4ddf-89a554662271') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 0fae9458951b9..ad8c14d162e34 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a30-b36f-0000-cac6-b263205db07c')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a3c-9864-0000-0012-9760d10d760f')) LIMIT 100 ' --- From b148025e371487bba3a1d1568ebf44f22f0e7538 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 21:49:55 +0000 Subject: [PATCH 07/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 860e23138920d..dc82854d8edff 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-4ddf-89a554662271') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-e7a7-6dfdbf0c76e8') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index ad8c14d162e34..aa763098c4b39 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a3c-9864-0000-0012-9760d10d760f')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a48-5684-0000-e2bb-d58e48a99a15')) LIMIT 100 ' --- From f375a1723d3420c33fdbc30f575111221aad2d67 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 22:03:57 +0000 Subject: [PATCH 08/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index dc82854d8edff..da0a630546ccf 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-e7a7-6dfdbf0c76e8') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-be64-f66f595c9dd8') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index aa763098c4b39..3b72f07caaaf3 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a48-5684-0000-e2bb-d58e48a99a15')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a55-1fb3-0000-45c7-b9f97fba0c91')) LIMIT 100 ' --- From 33f68ddfb4a9d6379e32916bcdd2a965d9732e5e Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 22:34:02 +0000 Subject: [PATCH 09/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index da0a630546ccf..21adb6dbcec88 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-be64-f66f595c9dd8') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-82b6-0d1b5ba41357') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 3b72f07caaaf3..26199c8621174 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a55-1fb3-0000-45c7-b9f97fba0c91')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a70-b6b2-0000-85c0-d3cba265de51')) LIMIT 100 ' --- From d610de9b43df02d088157b2abab1f305abb61bb4 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 22:47:15 +0000 Subject: [PATCH 10/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 21adb6dbcec88..b01ffc99d10b8 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-82b6-0d1b5ba41357') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-7185-a8de7ee765de') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 26199c8621174..300315256e577 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a70-b6b2-0000-85c0-d3cba265de51')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a7c-cb74-0000-7c5f-8da55f86b09a')) LIMIT 100 ' --- From 7307b025c3529b91ebc07f55158e3cec48b4d630 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 23:01:31 +0000 Subject: [PATCH 11/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index b01ffc99d10b8..e9de75e157d6f 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-7185-a8de7ee765de') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-7edb-85200962e996') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 300315256e577..557426cb7260a 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a7c-cb74-0000-7c5f-8da55f86b09a')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a89-f171-0000-daf9-874025e6c42e')) LIMIT 100 ' --- From 92cb1cbdc4b0fb06410e5d1b5b7ae9a79f479725 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 23:15:06 +0000 Subject: [PATCH 12/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index e9de75e157d6f..af16414c10aa0 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-7edb-85200962e996') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-61d3-7088f01b3abf') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 557426cb7260a..269db10a6f49f 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a89-f171-0000-daf9-874025e6c42e')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a96-6146-0000-935c-28f2c2d690fd')) LIMIT 100 ' --- From e4e492ce4267af36069bf43cc0c9d4b6a360a003 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 23:27:55 +0000 Subject: [PATCH 13/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index af16414c10aa0..b606bcee8b763 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-61d3-7088f01b3abf') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-667f-289044863f4c') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 269db10a6f49f..85c9ff4398c26 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6a96-6146-0000-935c-28f2c2d690fd')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6aa2-144c-0000-9c65-9e0770e445b3')) LIMIT 100 ' --- From 97fee9684ab8b11179416876818499ae7a0345ef Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 23:41:20 +0000 Subject: [PATCH 14/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index b606bcee8b763..e80ef6029f693 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-667f-289044863f4c') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-1629-f24aa91a0c4d') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 85c9ff4398c26..d8f39a169e689 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6aa2-144c-0000-9c65-9e0770e445b3')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6aae-5939-0000-be5f-2681f7b51578')) LIMIT 100 ' --- From c58fd85f53736e0e2e38c46f9c07776f97e03c65 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 23:53:31 +0000 Subject: [PATCH 15/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index e80ef6029f693..f5ef3f2fa05cb 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-1629-f24aa91a0c4d') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-ed3a-4b1b5545c6e3') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index d8f39a169e689..c8119f3fe7513 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6aae-5939-0000-be5f-2681f7b51578')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6ab9-9eb5-0000-e759-806ab047501e')) LIMIT 100 ' --- From be853b7439d985b423898ae1f11c8b979213e8a6 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 00:06:25 +0000 Subject: [PATCH 16/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index f5ef3f2fa05cb..ee2472a12f490 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-ed3a-4b1b5545c6e3') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-59a6-35b41a433637') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index c8119f3fe7513..b15207e03f2ce 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6ab9-9eb5-0000-e759-806ab047501e')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6ac5-5ef6-0000-4cea-f7c9b6dc570a')) LIMIT 100 ' --- From 8f00943b933371e3c721c023b191e5deeea8e77b Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 00:19:57 +0000 Subject: [PATCH 17/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index ee2472a12f490..9ce46be769541 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-59a6-35b41a433637') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-882d-7e2b2db80992') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index b15207e03f2ce..718ba26a63898 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6ac5-5ef6-0000-4cea-f7c9b6dc570a')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6ad1-6c8e-0000-7feb-9f98731eeb07')) LIMIT 100 ' --- From fcd3d25bc17bf729072de43f49be39ed38105052 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 00:32:58 +0000 Subject: [PATCH 18/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 9ce46be769541..0f2580198d3e5 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-882d-7e2b2db80992') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-980a-541d431c0e5c') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 718ba26a63898..0f5971b731ecb 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6ad1-6c8e-0000-7feb-9f98731eeb07')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6add-ac0b-0000-c1b7-64e570e687d7')) LIMIT 100 ' --- From 9a8bbca99e9acd63a43ea6bd444da1ea92a6d548 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 00:45:39 +0000 Subject: [PATCH 19/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 0f2580198d3e5..6aa29f0e44291 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-980a-541d431c0e5c') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-89b7-f02c165482e1') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 0f5971b731ecb..36a6372369a93 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6add-ac0b-0000-c1b7-64e570e687d7')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6ae9-47d1-0000-9931-d056a3177a69')) LIMIT 100 ' --- From 64b9950f9f8143a1928dd2f9a3910dda36a76cf9 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 00:59:26 +0000 Subject: [PATCH 20/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 6aa29f0e44291..273c64b304dbb 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-89b7-f02c165482e1') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-9c24-a4c0d645fe88') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 36a6372369a93..56c6f17e978d7 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6ae9-47d1-0000-9931-d056a3177a69')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6af5-d6b3-0000-6fb6-928ef920bda0')) LIMIT 100 ' --- From 9223935c49a2b9fa763f1ed61b6bd462386baa13 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 01:11:47 +0000 Subject: [PATCH 21/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 273c64b304dbb..5701c43f0925c 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-9c24-a4c0d645fe88') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-cdd6-85fed6af7490') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 56c6f17e978d7..18f8a11657b8e 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6af5-d6b3-0000-6fb6-928ef920bda0')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b01-11cd-0000-5556-c3e3c9c245ac')) LIMIT 100 ' --- From a4e3a59dc4bef053e6f79af58665b45917b3754e Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 01:24:37 +0000 Subject: [PATCH 22/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 5701c43f0925c..fffaa6d7d5d0f 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-cdd6-85fed6af7490') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-a243-06799bbeb6a4') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 18f8a11657b8e..0a27fcfd5b34e 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b01-11cd-0000-5556-c3e3c9c245ac')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b0c-f6b6-0000-657d-7b3651ff2fff')) LIMIT 100 ' --- From 13f7ac605b794f8997eb1e62c4852c72728099a3 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 01:37:45 +0000 Subject: [PATCH 23/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index fffaa6d7d5d0f..f13f1a861447d 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-a243-06799bbeb6a4') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-9241-8cae0c3e9909') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 0a27fcfd5b34e..5e460536965ce 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b0c-f6b6-0000-657d-7b3651ff2fff')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b18-dc0b-0000-473f-3fada808f421')) LIMIT 100 ' --- From b72a63be79526c425d58477bee5e98f718cc01df Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 01:50:48 +0000 Subject: [PATCH 24/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index f13f1a861447d..f077b406f740b 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-9241-8cae0c3e9909') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-1ef8-e97ed7799f49') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 5e460536965ce..74d1371a92618 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b18-dc0b-0000-473f-3fada808f421')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b24-cb85-0000-6057-9401e2acb448')) LIMIT 100 ' --- From 336b422203e03c72fe61fad15c25d4399fc701fe Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 02:04:00 +0000 Subject: [PATCH 25/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index f077b406f740b..f0e592b8e5b03 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-1ef8-e97ed7799f49') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-6cba-798fa6ce7bae') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 74d1371a92618..72cc775d98e9a 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b24-cb85-0000-6057-9401e2acb448')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b30-c31a-0000-5fec-3190936de6bf')) LIMIT 100 ' --- From ca734ee48777cdb6efa307d28d3ed954a4d52e1f Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 02:16:54 +0000 Subject: [PATCH 26/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index f0e592b8e5b03..cb15f45f693c7 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-6cba-798fa6ce7bae') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-5d67-76251af37e86') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 72cc775d98e9a..0870043d54da6 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b30-c31a-0000-5fec-3190936de6bf')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b3c-c609-0000-37b5-74d9fc2dcc59')) LIMIT 100 ' --- From 2c7d5cb3582bceeadb7dc4f65320dcbfb22ec236 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 02:30:29 +0000 Subject: [PATCH 27/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index cb15f45f693c7..bd3b281ad7950 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-5d67-76251af37e86') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-1175-6a4a3bb9fb4d') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 0870043d54da6..584e1c4083ae1 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b3c-c609-0000-37b5-74d9fc2dcc59')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b49-3fdb-0000-c5a4-28f839c247df')) LIMIT 100 ' --- From 599317d6eae0d8d569c68aebda61a281ea583c85 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 02:43:36 +0000 Subject: [PATCH 28/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index bd3b281ad7950..ff1ab42d8d305 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-1175-6a4a3bb9fb4d') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-e603-339f6cef436a') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 584e1c4083ae1..307fc3d480881 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b49-3fdb-0000-c5a4-28f839c247df')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b55-3561-0000-a919-d98dddf4a7be')) LIMIT 100 ' --- From 3e2de37f1832ca7b389bcde747170ab0217b97d3 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 02:56:33 +0000 Subject: [PATCH 29/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index ff1ab42d8d305..608a36d07cbd4 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-e603-339f6cef436a') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-05ac-fd20c57eff9c') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 307fc3d480881..a5ce733131461 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b55-3561-0000-a919-d98dddf4a7be')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b61-099e-0000-8ac7-d0c4eebb3948')) LIMIT 100 ' --- From 8da9f6af775e01262fd43ef638d0b6ed54ffcbd1 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 03:09:11 +0000 Subject: [PATCH 30/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 608a36d07cbd4..027059758c1c9 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-05ac-fd20c57eff9c') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-fbdf-c8f55ea3c915') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index a5ce733131461..b38ef30f569fd 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b61-099e-0000-8ac7-d0c4eebb3948')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b6c-ab8b-0000-e3e9-03067a015f17')) LIMIT 100 ' --- From d43df6a55c032798c4bd67b62345e81b0399f388 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 03:22:11 +0000 Subject: [PATCH 31/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 027059758c1c9..1b90828301f47 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-fbdf-c8f55ea3c915') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-ab1a-148baf32891f') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index b38ef30f569fd..b9a78e829f22a 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b6c-ab8b-0000-e3e9-03067a015f17')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b78-7432-0000-17c1-442cf9fe5f78')) LIMIT 100 ' --- From cba1976c30224865c519b5bcbd315c308522eae4 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 03:35:30 +0000 Subject: [PATCH 32/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 1b90828301f47..10c0ea20f4236 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-ab1a-148baf32891f') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-ab38-355a67b79fec') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index b9a78e829f22a..52c56d30d45fc 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b78-7432-0000-17c1-442cf9fe5f78')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b84-b227-0000-54bc-e134a60c0d8d')) LIMIT 100 ' --- From 8f7e1e93310e58345a6141eb3417124498cfc1b1 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 03:48:57 +0000 Subject: [PATCH 33/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 10c0ea20f4236..0f78208d90792 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-ab38-355a67b79fec') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-6b20-a4ed8a8f533b') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 52c56d30d45fc..2d1d219b8f0eb 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b84-b227-0000-54bc-e134a60c0d8d')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b91-183a-0000-0a76-d943f66c765f')) LIMIT 100 ' --- From 82f572629b50d8540a471ada18b7309b58a1b26e Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 04:01:23 +0000 Subject: [PATCH 34/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 0f78208d90792..99dec3ff180a1 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-6b20-a4ed8a8f533b') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-bbdc-6bb491a56f83') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 2d1d219b8f0eb..6768d122ff21a 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b91-183a-0000-0a76-d943f66c765f')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b9c-833b-0000-0afd-aed9b40bc604')) LIMIT 100 ' --- From 76370219e6d5f972fd78fb362d4dbcae1731c62f Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 04:14:38 +0000 Subject: [PATCH 35/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 99dec3ff180a1..de93646e39c28 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-bbdc-6bb491a56f83') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-3922-9f052fba7994') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 6768d122ff21a..d485492f5fe49 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6b9c-833b-0000-0afd-aed9b40bc604')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6ba8-9f42-0000-9858-13ae158455d8')) LIMIT 100 ' --- From c92ede2614ed03ffa5cedd6c4db8e606e99e1687 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 04:28:04 +0000 Subject: [PATCH 36/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index de93646e39c28..629b8a8f0f51b 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-3922-9f052fba7994') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-d741-a7b83c8f6b0d') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index d485492f5fe49..14ff7e95323c5 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6ba8-9f42-0000-9858-13ae158455d8')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6bb4-a175-0000-457c-790be496adee')) LIMIT 100 ' --- From cc7ee476e045cba88c4e3ed2db8f698333a03065 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 04:40:31 +0000 Subject: [PATCH 37/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 629b8a8f0f51b..34f31411d72eb 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-d741-a7b83c8f6b0d') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-b1ef-c1f013896241') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 14ff7e95323c5..7f9fc6f8c4305 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6bb4-a175-0000-457c-790be496adee')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6bc0-4872-0000-0ec2-f850a008fa18')) LIMIT 100 ' --- From cb63bc036eb1ef28fd5462abfc773ca3d3398292 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 04:53:26 +0000 Subject: [PATCH 38/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 34f31411d72eb..8b39ddffdc2ba 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-b1ef-c1f013896241') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-abb7-685806fcd737') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 7f9fc6f8c4305..8070483fc5d3c 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6bc0-4872-0000-0ec2-f850a008fa18')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6bcc-20ae-0000-c1ff-441d369d2dda')) LIMIT 100 ' --- From 05653f6643a50c58862d79f15d6d76ceca201955 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 05:06:20 +0000 Subject: [PATCH 39/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 8b39ddffdc2ba..22e0870a2eb0c 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-abb7-685806fcd737') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-79b4-116a3fa6341f') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 8070483fc5d3c..48134640ca664 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6bcc-20ae-0000-c1ff-441d369d2dda')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6bd7-fa3b-0000-b05e-75dbc713e63f')) LIMIT 100 ' --- From e599b385429adbadb4b2dbfcc98de1abe1a9f931 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 05:19:46 +0000 Subject: [PATCH 40/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 22e0870a2eb0c..cf9a234f36d82 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-79b4-116a3fa6341f') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-b567-0b33f89c5653') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 48134640ca664..9ea082efc55cb 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6bd7-fa3b-0000-b05e-75dbc713e63f')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6be4-1c4b-0000-d633-74043e4a9273')) LIMIT 100 ' --- From 968e1a104aa1c6f3d882787c942418b0f49fda08 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 05:32:44 +0000 Subject: [PATCH 41/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index cf9a234f36d82..c569feecbde82 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-b567-0b33f89c5653') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-b26d-ec648f72057b') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 9ea082efc55cb..f02d507e50677 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6be4-1c4b-0000-d633-74043e4a9273')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6bef-e094-0000-f7b8-36759a3f2580')) LIMIT 100 ' --- From 66256260e22500cf2ca668146df03be5ef3e8cbc Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 05:46:16 +0000 Subject: [PATCH 42/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index c569feecbde82..18705d2c49b7a 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-b26d-ec648f72057b') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-e412-c5418c20c0ff') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index f02d507e50677..f82aa0c6e2831 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6bef-e094-0000-f7b8-36759a3f2580')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6bfc-516c-0000-5f31-d7e3d62d89b6')) LIMIT 100 ' --- From 6ed8dd4c1ca762e9a7161ec92ce00828fb280a9c Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 05:58:58 +0000 Subject: [PATCH 43/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 18705d2c49b7a..26dc2288192d1 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-e412-c5418c20c0ff') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-8691-0cd8d62202d5') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index f82aa0c6e2831..4c7930355e6b0 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6bfc-516c-0000-5f31-d7e3d62d89b6')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c08-0cb6-0000-ee1f-79f749699e62')) LIMIT 100 ' --- From 0c1970023ea633ff66c514fe23395ab22ab1c75f Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 06:11:44 +0000 Subject: [PATCH 44/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 26dc2288192d1..ea357263cd314 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-8691-0cd8d62202d5') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-d4dc-2fbd0f51d387') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 4c7930355e6b0..f8049540278d1 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c08-0cb6-0000-ee1f-79f749699e62')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c13-cebb-0000-2f8c-fbeaaea22f1b')) LIMIT 100 ' --- From 08b5a3f1ffc4e324a4015dc7c87c11c676052200 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 06:25:23 +0000 Subject: [PATCH 45/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index ea357263cd314..b865f87ac7be1 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-d4dc-2fbd0f51d387') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-dfe3-bc9e507db0b8') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index f8049540278d1..e2ca48e4dca6f 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c13-cebb-0000-2f8c-fbeaaea22f1b')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c20-25c5-0000-560e-1b69dbd7af98')) LIMIT 100 ' --- From 3b87bde8fe9a22620996fb888662610759ec6254 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 06:38:23 +0000 Subject: [PATCH 46/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index b865f87ac7be1..db8a8f96fac88 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-dfe3-bc9e507db0b8') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-41dc-7d4db9de3715') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index e2ca48e4dca6f..b8b0e2a19c5ca 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c20-25c5-0000-560e-1b69dbd7af98')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c2c-31c7-0000-79e7-5e182bbe231f')) LIMIT 100 ' --- From a9aab38dee5e5836531407ef35d01a41c4a29d4c Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 06:51:01 +0000 Subject: [PATCH 47/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index db8a8f96fac88..e8922d3f97e33 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-41dc-7d4db9de3715') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-2fb6-d20e65839341') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index b8b0e2a19c5ca..39330098615d8 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c2c-31c7-0000-79e7-5e182bbe231f')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c37-ba71-0000-f2d8-a7d6acefb864')) LIMIT 100 ' --- From d14f41718b43e35ae4083f3e63ecadd492470e7e Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 07:04:00 +0000 Subject: [PATCH 48/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index e8922d3f97e33..de806483a332c 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-2fb6-d20e65839341') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-2d11-0f4c3ddfaf04') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 39330098615d8..615f011275e35 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c37-ba71-0000-f2d8-a7d6acefb864')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c43-976f-0000-c1b8-5893901a56bc')) LIMIT 100 ' --- From 560da2eff0add38701575023571727b798a38122 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 07:17:02 +0000 Subject: [PATCH 49/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index de806483a332c..421b1ce3b5595 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-2d11-0f4c3ddfaf04') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-499a-6805becc2265') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 615f011275e35..d89ceb26a472b 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c43-976f-0000-c1b8-5893901a56bc')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c4f-7abc-0000-563e-e0ee4f9c6165')) LIMIT 100 ' --- From 3fa999cdd31c1159449307637208d4be747eb6ce Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 07:29:50 +0000 Subject: [PATCH 50/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 421b1ce3b5595..b6531f50fc3bd 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-499a-6805becc2265') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-46b0-b1f44de6d248') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index d89ceb26a472b..dd6be5e4d748a 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c4f-7abc-0000-563e-e0ee4f9c6165')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c5a-f546-0000-d289-8a09262aa6ef')) LIMIT 100 ' --- From 8edc8cf1f3f703275abd86cc4e2755c11fb85576 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 07:42:43 +0000 Subject: [PATCH 51/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index b6531f50fc3bd..e0492d1d2aa68 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-46b0-b1f44de6d248') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-7d8d-821184ddca20') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index dd6be5e4d748a..cfe32568ef6b0 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c5a-f546-0000-d289-8a09262aa6ef')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c66-ee48-0000-3ad4-85a8b4d83b12')) LIMIT 100 ' --- From 9d32e09f80728812de63f7d72a71c3e1c3d4e62b Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 07:55:18 +0000 Subject: [PATCH 52/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index e0492d1d2aa68..c82bd24e40e98 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-7d8d-821184ddca20') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-8ad4-0cf056db4062') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index cfe32568ef6b0..d29673d5aa5e3 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c66-ee48-0000-3ad4-85a8b4d83b12')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c72-9a5c-0000-58cd-f59346916a94')) LIMIT 100 ' --- From e4f0e380890cc4846a42dedc286071e885b6ec24 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 08:08:51 +0000 Subject: [PATCH 53/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index c82bd24e40e98..806316786a44d 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-8ad4-0cf056db4062') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-1fe4-87d5a430e69f') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index d29673d5aa5e3..22106b9f8cd93 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c72-9a5c-0000-58cd-f59346916a94')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c7e-e8e6-0000-fb2e-a168e0648f79')) LIMIT 100 ' --- From 7e2351d920765dd9db6dc430638eb14d49c46c20 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 08:22:13 +0000 Subject: [PATCH 54/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index 806316786a44d..b17828af7ed8f 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-1fe4-87d5a430e69f') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-990d-f7a283223825') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 22106b9f8cd93..d0484806ab2f3 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c7e-e8e6-0000-fb2e-a168e0648f79')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c8b-3eed-0000-5b69-33f85d5aa7b8')) LIMIT 100 ' --- From 4ab9680e9ea8755f3fde647b261448c1659d09c4 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 08:34:42 +0000 Subject: [PATCH 55/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index b17828af7ed8f..fbb3b02cc0716 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-990d-f7a283223825') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-d177-c85080efa104') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index d0484806ab2f3..2e58df50415c5 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c8b-3eed-0000-5b69-33f85d5aa7b8')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c96-b597-0000-3093-e3c2f5243077')) LIMIT 100 ' --- From e013ddea1bc897a4cca0c6c8eddd89dc64a19763 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Dec 2023 08:49:34 +0000 Subject: [PATCH 56/56] Update query snapshots --- posthog/hogql/test/__snapshots__/test_query.ambr | 2 +- posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/hogql/test/__snapshots__/test_query.ambr b/posthog/hogql/test/__snapshots__/test_query.ambr index fbb3b02cc0716..87aa94a549f3f 100644 --- a/posthog/hogql/test/__snapshots__/test_query.ambr +++ b/posthog/hogql/test/__snapshots__/test_query.ambr @@ -823,7 +823,7 @@ FROM ( SELECT count(*) AS count, event FROM events - WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-d177-c85080efa104') + WHERE equals(properties.random_uuid, '016f8cc0-2400-0000-efde-64d93d4f4544') GROUP BY event) AS c GROUP BY count, event LIMIT 100 diff --git a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr index 2e58df50415c5..e2185bb4c20c4 100644 --- a/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr +++ b/posthog/hogql/transforms/test/__snapshots__/test_in_cohort.ambr @@ -22,7 +22,7 @@ WHERE equals(cohort_id, 1) GROUP BY person_id, cohort_id, version HAVING greater(sum(sign), 0)) AS in_cohort__1 ON equals(in_cohort__1.person_id, person_id) - WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6c96-b597-0000-3093-e3c2f5243077')) + WHERE and(equals(in_cohort__1.matched, 1), equals(event, '018c6ca4-34e1-0000-d14a-902570c098a4')) LIMIT 100 ' ---