From 98f97ea497f056e317ce31744317201f378d52bf Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 18:52:55 +0000 Subject: [PATCH] Update query snapshots --- .../test_breakdowns_by_current_url.ambr | 4 +-- .../test/__snapshots__/test_funnel.ambr | 28 +++++++++---------- .../__snapshots__/test_funnel_persons.ambr | 6 ++-- .../__snapshots__/test_funnel_strict.ambr | 12 ++++---- .../test_funnel_strict_persons.ambr | 12 ++++---- .../test_funnel_time_to_convert.ambr | 8 +++--- .../__snapshots__/test_funnel_unordered.ambr | 6 ++-- .../test_funnel_unordered_persons.ambr | 2 +- 8 files changed, 39 insertions(+), 39 deletions(-) diff --git a/posthog/queries/funnels/test/__snapshots__/test_breakdowns_by_current_url.ambr b/posthog/queries/funnels/test/__snapshots__/test_breakdowns_by_current_url.ambr index 16030fa7ebd29..93a4f3e098ec1 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_breakdowns_by_current_url.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_breakdowns_by_current_url.ambr @@ -94,7 +94,7 @@ GROUP BY aggregation_target, steps, prop - HAVING steps = max_steps) + HAVING steps = max(max_steps)) GROUP BY prop ''' # --- @@ -193,7 +193,7 @@ GROUP BY aggregation_target, steps, prop - HAVING steps = max_steps) + HAVING steps = max(max_steps)) GROUP BY prop ''' # --- diff --git a/posthog/queries/funnels/test/__snapshots__/test_funnel.ambr b/posthog/queries/funnels/test/__snapshots__/test_funnel.ambr index a39ef7109b9dc..4f409c309534f 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_funnel.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_funnel.ambr @@ -92,7 +92,7 @@ WHERE step_0 = 1 )) GROUP BY aggregation_target, steps - HAVING steps = max_steps) + HAVING steps = max(max_steps)) ''' # --- # name: TestFOSSFunnel.test_funnel_conversion_window_seconds.1 @@ -182,7 +182,7 @@ WHERE step_0 = 1 )) GROUP BY aggregation_target, steps - HAVING steps = max_steps) + HAVING steps = max(max_steps)) WHERE steps IN [2, 3] ORDER BY aggregation_target LIMIT 100 @@ -291,7 +291,7 @@ WHERE step_0 = 1 )) GROUP BY aggregation_target, steps - HAVING steps = max_steps) + HAVING steps = max(max_steps)) ''' # --- # name: TestFOSSFunnel.test_funnel_with_cohorts_step_filter @@ -373,7 +373,7 @@ WHERE step_0 = 1 )) GROUP BY aggregation_target, steps - HAVING steps = max_steps) + HAVING steps = max(max_steps)) ''' # --- # name: TestFOSSFunnel.test_funnel_with_precalculated_cohort_step_filter @@ -469,7 +469,7 @@ WHERE step_0 = 1 )) GROUP BY aggregation_target, steps - HAVING steps = max_steps) + HAVING steps = max(max_steps)) ''' # --- # name: TestFOSSFunnel.test_funnel_with_property_groups @@ -585,7 +585,7 @@ WHERE step_0 = 1 )) GROUP BY aggregation_target, steps - HAVING steps = max_steps) + HAVING steps = max(max_steps)) ''' # --- # name: TestFOSSFunnel.test_funnel_with_property_groups.1 @@ -695,7 +695,7 @@ WHERE step_0 = 1 )) GROUP BY aggregation_target, steps - HAVING steps = max_steps) + HAVING steps = max(max_steps)) WHERE steps IN [1, 2, 3] ORDER BY aggregation_target LIMIT 100 @@ -811,7 +811,7 @@ WHERE step_0 = 1 )) GROUP BY aggregation_target, steps - HAVING steps = max_steps) + HAVING steps = max(max_steps)) WHERE steps IN [2, 3] ORDER BY aggregation_target LIMIT 100 @@ -927,7 +927,7 @@ WHERE step_0 = 1 )) GROUP BY aggregation_target, steps - HAVING steps = max_steps) + HAVING steps = max(max_steps)) WHERE steps IN [3] ORDER BY aggregation_target LIMIT 100 @@ -1017,7 +1017,7 @@ WHERE step_0 = 1 )) GROUP BY aggregation_target, steps - HAVING steps = max_steps) + HAVING steps = max(max_steps)) ''' # --- # name: TestFOSSFunnel.test_timezones @@ -1081,7 +1081,7 @@ WHERE step_0 = 1 )) GROUP BY aggregation_target, steps - HAVING steps = max_steps) + HAVING steps = max(max_steps)) ''' # --- # name: TestFunnelBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen @@ -1176,7 +1176,7 @@ GROUP BY aggregation_target, steps, prop - HAVING steps = max_steps) + HAVING steps = max(max_steps)) GROUP BY prop ''' # --- @@ -1277,7 +1277,7 @@ GROUP BY aggregation_target, steps, prop - HAVING steps = max_steps) + HAVING steps = max(max_steps)) GROUP BY prop ''' # --- @@ -1372,7 +1372,7 @@ GROUP BY aggregation_target, steps, prop - HAVING steps = max_steps) + HAVING steps = max(max_steps)) GROUP BY prop ''' # --- diff --git a/posthog/queries/funnels/test/__snapshots__/test_funnel_persons.ambr b/posthog/queries/funnels/test/__snapshots__/test_funnel_persons.ambr index c58ebeac07136..1b2002cfd7cb6 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_funnel_persons.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_funnel_persons.ambr @@ -163,7 +163,7 @@ WHERE step_0 = 1 )) GROUP BY aggregation_target, steps - HAVING steps = max_steps) + HAVING steps = max(max_steps)) WHERE steps IN [1, 2, 3] ORDER BY aggregation_target LIMIT 100 @@ -347,7 +347,7 @@ WHERE step_0 = 1 )) GROUP BY aggregation_target, steps - HAVING steps = max_steps) + HAVING steps = max(max_steps)) WHERE steps IN [2, 3] ORDER BY aggregation_target LIMIT 100 @@ -531,7 +531,7 @@ WHERE step_0 = 1 )) GROUP BY aggregation_target, steps - HAVING steps = max_steps) + HAVING steps = max(max_steps)) WHERE steps = 2 ORDER BY aggregation_target LIMIT 100 diff --git a/posthog/queries/funnels/test/__snapshots__/test_funnel_strict.ambr b/posthog/queries/funnels/test/__snapshots__/test_funnel_strict.ambr index 249f2e844be1c..171d6d9edd7f6 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_funnel_strict.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_funnel_strict.ambr @@ -84,10 +84,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-08 23:59:59', 'UTC') AND (1=1) ))) WHERE step_0 = 1 )) - WHERE steps = max_steps GROUP BY aggregation_target, steps, - prop) + prop + HAVING steps = max(max_steps)) GROUP BY prop ''' # --- @@ -181,10 +181,10 @@ JOIN prop_vals as prop WHERE prop != [] )) WHERE step_0 = 1 )) - WHERE steps = max_steps GROUP BY aggregation_target, steps, - prop) + prop + HAVING steps = max(max_steps)) GROUP BY prop ''' # --- @@ -272,10 +272,10 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-08 23:59:59', 'UTC') AND (1=1) ))) WHERE step_0 = 1 )) - WHERE steps = max_steps GROUP BY aggregation_target, steps, - prop) + prop + HAVING steps = max(max_steps)) GROUP BY prop ''' # --- diff --git a/posthog/queries/funnels/test/__snapshots__/test_funnel_strict_persons.ambr b/posthog/queries/funnels/test/__snapshots__/test_funnel_strict_persons.ambr index c6d203df674a3..8a9551eb4438b 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_funnel_strict_persons.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_funnel_strict_persons.ambr @@ -121,9 +121,9 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2021-01-08 23:59:59', 'UTC') AND (1=1) )) WHERE step_0 = 1 )) - WHERE steps = max_steps GROUP BY aggregation_target, - steps) + steps + HAVING steps = max(max_steps)) WHERE steps IN [1, 2, 3] ORDER BY aggregation_target LIMIT 100 @@ -265,9 +265,9 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2021-01-08 23:59:59', 'UTC') AND (1=1) )) WHERE step_0 = 1 )) - WHERE steps = max_steps GROUP BY aggregation_target, - steps) + steps + HAVING steps = max(max_steps)) WHERE steps IN [2, 3] ORDER BY aggregation_target LIMIT 100 @@ -409,9 +409,9 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2021-01-08 23:59:59', 'UTC') AND (1=1) )) WHERE step_0 = 1 )) - WHERE steps = max_steps GROUP BY aggregation_target, - steps) + steps + HAVING steps = max(max_steps)) WHERE steps = 2 ORDER BY aggregation_target LIMIT 100 diff --git a/posthog/queries/funnels/test/__snapshots__/test_funnel_time_to_convert.ambr b/posthog/queries/funnels/test/__snapshots__/test_funnel_time_to_convert.ambr index 806a8d2939456..59a27c8630fb7 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_funnel_time_to_convert.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_funnel_time_to_convert.ambr @@ -84,7 +84,7 @@ WHERE step_0 = 1 )) GROUP BY aggregation_target, steps - HAVING steps = max_steps), + HAVING steps = max(max_steps)), histogram_params AS (SELECT ifNull(floor(min(step_1_average_conversion_time_inner)), 0) AS from_seconds, ifNull(ceil(max(step_1_average_conversion_time_inner)), 1) AS to_seconds, @@ -190,9 +190,9 @@ AND toTimeZone(timestamp, 'UTC') <= toDateTime('2021-06-13 23:59:59', 'UTC') AND (1=1) )) WHERE step_0 = 1 )) - WHERE steps = max_steps GROUP BY aggregation_target, - steps), + steps + HAVING steps = max(max_steps)), histogram_params AS (SELECT ifNull(floor(min(step_1_average_conversion_time_inner)), 0) AS from_seconds, ifNull(ceil(max(step_1_average_conversion_time_inner)), 1) AS to_seconds, @@ -402,7 +402,7 @@ WHERE step_0 = 1 )) GROUP BY aggregation_target, steps - HAVING steps = max_steps), + HAVING steps = max(max_steps)), histogram_params AS (SELECT ifNull(floor(min(step_1_average_conversion_time_inner)), 0) AS from_seconds, ifNull(ceil(max(step_1_average_conversion_time_inner)), 1) AS to_seconds, diff --git a/posthog/queries/funnels/test/__snapshots__/test_funnel_unordered.ambr b/posthog/queries/funnels/test/__snapshots__/test_funnel_unordered.ambr index 0ee30454d45c9..447fe6e3c61dc 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_funnel_unordered.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_funnel_unordered.ambr @@ -158,7 +158,7 @@ GROUP BY aggregation_target, steps, prop - HAVING steps = max_steps) + HAVING steps = max(max_steps)) GROUP BY prop ''' # --- @@ -329,7 +329,7 @@ GROUP BY aggregation_target, steps, prop - HAVING steps = max_steps) + HAVING steps = max(max_steps)) GROUP BY prop ''' # --- @@ -490,7 +490,7 @@ GROUP BY aggregation_target, steps, prop - HAVING steps = max_steps) + HAVING steps = max(max_steps)) GROUP BY prop ''' # --- diff --git a/posthog/queries/funnels/test/__snapshots__/test_funnel_unordered_persons.ambr b/posthog/queries/funnels/test/__snapshots__/test_funnel_unordered_persons.ambr index 4ae11133792c7..71b11db0bccac 100644 --- a/posthog/queries/funnels/test/__snapshots__/test_funnel_unordered_persons.ambr +++ b/posthog/queries/funnels/test/__snapshots__/test_funnel_unordered_persons.ambr @@ -245,7 +245,7 @@ WHERE step_0 = 1 )) GROUP BY aggregation_target, steps - HAVING steps = max_steps) + HAVING steps = max(max_steps)) WHERE steps IN [1, 2, 3] ORDER BY aggregation_target LIMIT 100