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 17, 2023
1 parent 0f0add0 commit e2ba1ee
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 51 deletions.
21 changes: 6 additions & 15 deletions ee/clickhouse/queries/funnels/test/__snapshots__/test_funnel.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

SELECT groupArray(value)
FROM
(SELECT replaceRegexpAll(JSONExtractRaw(group0_properties, 'industry'), '^"|"$', '') AS value,
(SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value,
count(*) as count
FROM events e
LEFT JOIN
Expand All @@ -18,7 +18,6 @@
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-08 23:59:59', 'UTC')
AND (NOT has([''], "$group_0"))
AND notEmpty(e.person_id)
GROUP BY value
ORDER BY count DESC, value DESC
LIMIT 25
Expand Down Expand Up @@ -99,8 +98,7 @@
prop_vals as prop
FROM
(SELECT e.timestamp as timestamp,
e."$group_0" as aggregation_target,
e.person_id as person_id ,
e."$group_0" as aggregation_target ,
if(event = 'sign up', 1, 0) as step_0,
if(step_0 = 1, timestamp, null) as latest_0,
if(event = 'play movie', 1, 0) as step_1,
Expand All @@ -123,7 +121,6 @@
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-08 23:59:59', 'UTC')
AND (NOT has([''], "$group_0"))
AND notEmpty(e.person_id)
AND (step_0 = 1
OR step_1 = 1
OR step_2 = 1) )))))
Expand Down Expand Up @@ -977,7 +974,7 @@

SELECT groupArray(value)
FROM
(SELECT replaceRegexpAll(JSONExtractRaw(group0_properties, 'industry'), '^"|"$', '') AS value,
(SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value,
count(*) as count
FROM events e
LEFT JOIN
Expand All @@ -992,7 +989,6 @@
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-08 23:59:59', 'UTC')
AND (NOT has([''], "$group_0"))
AND notEmpty(e.person_id)
GROUP BY value
ORDER BY count DESC, value DESC
LIMIT 25
Expand Down Expand Up @@ -1073,8 +1069,7 @@
prop_vals as prop
FROM
(SELECT e.timestamp as timestamp,
e."$group_0" as aggregation_target,
e.person_id as person_id ,
e."$group_0" as aggregation_target ,
if(event = 'sign up', 1, 0) as step_0,
if(step_0 = 1, timestamp, null) as latest_0,
if(event = 'play movie', 1, 0) as step_1,
Expand All @@ -1097,7 +1092,6 @@
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-08 23:59:59', 'UTC')
AND (NOT has([''], "$group_0"))
AND notEmpty(e.person_id)
AND (step_0 = 1
OR step_1 = 1
OR step_2 = 1) )))))
Expand Down Expand Up @@ -1863,7 +1857,7 @@

SELECT groupArray(value)
FROM
(SELECT replaceRegexpAll(JSONExtractRaw(group0_properties, 'industry'), '^"|"$', '') AS value,
(SELECT replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '') AS value,
count(*) as count
FROM events e
LEFT JOIN
Expand All @@ -1878,7 +1872,6 @@
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-08 23:59:59', 'UTC')
AND (NOT has([''], "$group_0"))
AND notEmpty(e.person_id)
GROUP BY value
ORDER BY count DESC, value DESC
LIMIT 25
Expand Down Expand Up @@ -1959,8 +1952,7 @@
prop_vals as prop
FROM
(SELECT e.timestamp as timestamp,
e."$group_0" as aggregation_target,
e.person_id as person_id ,
e."$group_0" as aggregation_target ,
if(event = 'sign up', 1, 0) as step_0,
if(step_0 = 1, timestamp, null) as latest_0,
if(event = 'play movie', 1, 0) as step_1,
Expand All @@ -1983,7 +1975,6 @@
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-08 23:59:59', 'UTC')
AND (NOT has([''], "$group_0"))
AND notEmpty(e.person_id)
AND (step_0 = 1
OR step_1 = 1
OR step_2 = 1) )))))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3367,8 +3367,7 @@
ORDER BY timestamp DESC ROWS BETWEEN UNBOUNDED PRECEDING AND 0 PRECEDING) latest_1
FROM
(SELECT e.timestamp as timestamp,
e."$group_0" as aggregation_target,
e.person_id as person_id ,
e."$group_0" as aggregation_target ,
if(event = 'user signed up', 1, 0) as step_0,
if(step_0 = 1, timestamp, null) as latest_0,
if(event = 'paid', 1, 0) as step_1,
Expand All @@ -3378,7 +3377,6 @@
AND event IN ['paid', 'user signed up']
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-14 23:59:59', 'UTC')
AND notEmpty(e.person_id)
AND (step_0 = 1
OR step_1 = 1) ))
WHERE step_0 = 1 ))
Expand Down Expand Up @@ -3449,8 +3447,7 @@
ORDER BY timestamp DESC ROWS BETWEEN UNBOUNDED PRECEDING AND 0 PRECEDING) latest_1
FROM
(SELECT e.timestamp as timestamp,
e."$group_0" as aggregation_target,
e.person_id as person_id ,
e."$group_0" as aggregation_target ,
if(event = 'user signed up', 1, 0) as step_0,
if(step_0 = 1, timestamp, null) as latest_0,
if(event = 'paid', 1, 0) as step_1,
Expand All @@ -3468,7 +3465,6 @@
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-14 23:59:59', 'UTC')
AND (has(['positive'], replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '')))
AND notEmpty(e.person_id)
AND (step_0 = 1
OR step_1 = 1) ))
WHERE step_0 = 1 ))
Expand Down Expand Up @@ -3523,8 +3519,7 @@
ORDER BY timestamp DESC ROWS BETWEEN UNBOUNDED PRECEDING AND 0 PRECEDING) latest_1
FROM
(SELECT e.timestamp as timestamp,
e."$group_0" as aggregation_target,
e.person_id as person_id ,
e."$group_0" as aggregation_target ,
if(event = 'user signed up', 1, 0) as step_0,
if(step_0 = 1, timestamp, null) as latest_0,
if(event = 'paid', 1, 0) as step_1,
Expand All @@ -3542,7 +3537,6 @@
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-14 23:59:59', 'UTC')
AND (has(['positive'], replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '')))
AND notEmpty(e.person_id)
AND (step_0 = 1
OR step_1 = 1) ))
WHERE step_0 = 1 ))
Expand Down Expand Up @@ -3597,8 +3591,7 @@
ORDER BY timestamp DESC ROWS BETWEEN UNBOUNDED PRECEDING AND 0 PRECEDING) latest_1
FROM
(SELECT e.timestamp as timestamp,
e."$group_0" as aggregation_target,
e.person_id as person_id ,
e."$group_0" as aggregation_target ,
if(event = 'user signed up', 1, 0) as step_0,
if(step_0 = 1, timestamp, null) as latest_0,
if(event = 'paid', 1, 0) as step_1,
Expand All @@ -3616,7 +3609,6 @@
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-14 23:59:59', 'UTC')
AND (has(['negative'], replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '')))
AND notEmpty(e.person_id)
AND (step_0 = 1
OR step_1 = 1) ))
WHERE step_0 = 1 ))
Expand Down Expand Up @@ -3671,8 +3663,7 @@
ORDER BY timestamp DESC ROWS BETWEEN UNBOUNDED PRECEDING AND 0 PRECEDING) latest_1
FROM
(SELECT e.timestamp as timestamp,
e."$group_0" as aggregation_target,
e.person_id as person_id ,
e."$group_0" as aggregation_target ,
if(event = 'user signed up', 1, 0) as step_0,
if(step_0 = 1, timestamp, null) as latest_0,
if(event = 'paid', 1, 0) as step_1,
Expand All @@ -3690,7 +3681,6 @@
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-14 23:59:59', 'UTC')
AND (has(['negative'], replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '')))
AND notEmpty(e.person_id)
AND (step_0 = 1
OR step_1 = 1) ))
WHERE step_0 = 1 ))
Expand Down Expand Up @@ -3745,8 +3735,7 @@
ORDER BY timestamp DESC ROWS BETWEEN UNBOUNDED PRECEDING AND 0 PRECEDING) latest_1
FROM
(SELECT e.timestamp as timestamp,
e."$group_0" as aggregation_target,
e.person_id as person_id ,
e."$group_0" as aggregation_target ,
if(event = 'user signed up', 1, 0) as step_0,
if(step_0 = 1, timestamp, null) as latest_0,
if(event = 'paid', 1, 0) as step_1,
Expand All @@ -3756,7 +3745,6 @@
AND event IN ['paid', 'user signed up']
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-14 23:59:59', 'UTC')
AND notEmpty(e.person_id)
AND (step_0 = 1
OR step_1 = 1) ))
WHERE step_0 = 1 ))
Expand Down Expand Up @@ -3827,8 +3815,7 @@
ORDER BY timestamp DESC ROWS BETWEEN UNBOUNDED PRECEDING AND 0 PRECEDING) latest_1
FROM
(SELECT e.timestamp as timestamp,
e."$group_0" as aggregation_target,
e.person_id as person_id ,
e."$group_0" as aggregation_target ,
if(event = 'user signed up', 1, 0) as step_0,
if(step_0 = 1, timestamp, null) as latest_0,
if(event = 'paid', 1, 0) as step_1,
Expand All @@ -3838,7 +3825,6 @@
AND event IN ['paid', 'user signed up']
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-14 23:59:59', 'UTC')
AND notEmpty(e.person_id)
AND (step_0 = 1
OR step_1 = 1) ))
WHERE step_0 = 1 ))
Expand Down Expand Up @@ -3909,8 +3895,7 @@
ORDER BY timestamp DESC ROWS BETWEEN UNBOUNDED PRECEDING AND 0 PRECEDING) latest_1
FROM
(SELECT e.timestamp as timestamp,
e."$group_0" as aggregation_target,
e.person_id as person_id ,
e."$group_0" as aggregation_target ,
if(event = 'user signed up', 1, 0) as step_0,
if(step_0 = 1, timestamp, null) as latest_0,
if(event = 'paid', 1, 0) as step_1,
Expand All @@ -3928,7 +3913,6 @@
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-14 23:59:59', 'UTC')
AND (has(['positive'], replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '')))
AND notEmpty(e.person_id)
AND (step_0 = 1
OR step_1 = 1) ))
WHERE step_0 = 1 ))
Expand Down Expand Up @@ -3983,8 +3967,7 @@
ORDER BY timestamp DESC ROWS BETWEEN UNBOUNDED PRECEDING AND 0 PRECEDING) latest_1
FROM
(SELECT e.timestamp as timestamp,
e."$group_0" as aggregation_target,
e.person_id as person_id ,
e."$group_0" as aggregation_target ,
if(event = 'user signed up', 1, 0) as step_0,
if(step_0 = 1, timestamp, null) as latest_0,
if(event = 'paid', 1, 0) as step_1,
Expand All @@ -4002,7 +3985,6 @@
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-14 23:59:59', 'UTC')
AND (has(['positive'], replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '')))
AND notEmpty(e.person_id)
AND (step_0 = 1
OR step_1 = 1) ))
WHERE step_0 = 1 ))
Expand Down Expand Up @@ -4057,8 +4039,7 @@
ORDER BY timestamp DESC ROWS BETWEEN UNBOUNDED PRECEDING AND 0 PRECEDING) latest_1
FROM
(SELECT e.timestamp as timestamp,
e."$group_0" as aggregation_target,
e.person_id as person_id ,
e."$group_0" as aggregation_target ,
if(event = 'user signed up', 1, 0) as step_0,
if(step_0 = 1, timestamp, null) as latest_0,
if(event = 'paid', 1, 0) as step_1,
Expand All @@ -4076,7 +4057,6 @@
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-14 23:59:59', 'UTC')
AND (has(['negative'], replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '')))
AND notEmpty(e.person_id)
AND (step_0 = 1
OR step_1 = 1) ))
WHERE step_0 = 1 ))
Expand Down Expand Up @@ -4131,8 +4111,7 @@
ORDER BY timestamp DESC ROWS BETWEEN UNBOUNDED PRECEDING AND 0 PRECEDING) latest_1
FROM
(SELECT e.timestamp as timestamp,
e."$group_0" as aggregation_target,
e.person_id as person_id ,
e."$group_0" as aggregation_target ,
if(event = 'user signed up', 1, 0) as step_0,
if(step_0 = 1, timestamp, null) as latest_0,
if(event = 'paid', 1, 0) as step_1,
Expand All @@ -4150,7 +4129,6 @@
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-14 23:59:59', 'UTC')
AND (has(['negative'], replaceRegexpAll(JSONExtractRaw(group_properties_0, 'industry'), '^"|"$', '')))
AND notEmpty(e.person_id)
AND (step_0 = 1
OR step_1 = 1) ))
WHERE step_0 = 1 ))
Expand Down Expand Up @@ -4205,8 +4183,7 @@
ORDER BY timestamp DESC ROWS BETWEEN UNBOUNDED PRECEDING AND 0 PRECEDING) latest_1
FROM
(SELECT e.timestamp as timestamp,
e."$group_0" as aggregation_target,
e.person_id as person_id ,
e."$group_0" as aggregation_target ,
if(event = 'user signed up', 1, 0) as step_0,
if(step_0 = 1, timestamp, null) as latest_0,
if(event = 'paid', 1, 0) as step_1,
Expand All @@ -4216,7 +4193,6 @@
AND event IN ['paid', 'user signed up']
AND toTimeZone(timestamp, 'UTC') >= toDateTime('2020-01-01 00:00:00', 'UTC')
AND toTimeZone(timestamp, 'UTC') <= toDateTime('2020-01-14 23:59:59', 'UTC')
AND notEmpty(e.person_id)
AND (step_0 = 1
OR step_1 = 1) ))
WHERE step_0 = 1 ))
Expand Down

0 comments on commit e2ba1ee

Please sign in to comment.