Skip to content

Commit

Permalink
Update query snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 14, 2024
1 parent 00511db commit 98f97ea
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
GROUP BY aggregation_target,
steps,
prop
HAVING steps = max_steps)
HAVING steps = max(max_steps))
GROUP BY prop
'''
# ---
Expand Down Expand Up @@ -193,7 +193,7 @@
GROUP BY aggregation_target,
steps,
prop
HAVING steps = max_steps)
HAVING steps = max(max_steps))
GROUP BY prop
'''
# ---
28 changes: 14 additions & 14 deletions posthog/queries/funnels/test/__snapshots__/test_funnel.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1176,7 +1176,7 @@
GROUP BY aggregation_target,
steps,
prop
HAVING steps = max_steps)
HAVING steps = max(max_steps))
GROUP BY prop
'''
# ---
Expand Down Expand Up @@ -1277,7 +1277,7 @@
GROUP BY aggregation_target,
steps,
prop
HAVING steps = max_steps)
HAVING steps = max(max_steps))
GROUP BY prop
'''
# ---
Expand Down Expand Up @@ -1372,7 +1372,7 @@
GROUP BY aggregation_target,
steps,
prop
HAVING steps = max_steps)
HAVING steps = max(max_steps))
GROUP BY prop
'''
# ---
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
'''
# ---
Expand Down Expand Up @@ -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
'''
# ---
Expand Down Expand Up @@ -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
'''
# ---
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
GROUP BY aggregation_target,
steps,
prop
HAVING steps = max_steps)
HAVING steps = max(max_steps))
GROUP BY prop
'''
# ---
Expand Down Expand Up @@ -329,7 +329,7 @@
GROUP BY aggregation_target,
steps,
prop
HAVING steps = max_steps)
HAVING steps = max(max_steps))
GROUP BY prop
'''
# ---
Expand Down Expand Up @@ -490,7 +490,7 @@
GROUP BY aggregation_target,
steps,
prop
HAVING steps = max_steps)
HAVING steps = max(max_steps))
GROUP BY prop
'''
# ---
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98f97ea

Please sign in to comment.