Skip to content

Commit

Permalink
Merge branch 'aspicer/where' of github.com:PostHog/posthog into aspic…
Browse files Browse the repository at this point in the history
…er/where
  • Loading branch information
aspicer committed Jun 20, 2024
2 parents e8bfd53 + 1947ea7 commit 373eb7b
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@
HAVING ifNull(equals(steps, max_steps), isNull(steps)
and isNull(max_steps)))
WHERE ifNull(in(steps, [2, 3]), 0)
ORDER BY aggregation_target ASC SETTINGS use_query_cache=1) AS source
ORDER BY aggregation_target ASC SETTINGS use_query_cache=1,
query_cache_ttl=600) AS source
INNER JOIN
(SELECT argMax(person.created_at, person.version) AS created_at,
person.id AS id
Expand Down Expand Up @@ -604,7 +605,8 @@
HAVING ifNull(equals(steps, max_steps), isNull(steps)
and isNull(max_steps)))
WHERE ifNull(in(steps, [1, 2, 3]), 0)
ORDER BY aggregation_target ASC SETTINGS use_query_cache=1) AS source
ORDER BY aggregation_target ASC SETTINGS use_query_cache=1,
query_cache_ttl=600) AS source
INNER JOIN
(SELECT argMax(person.created_at, person.version) AS created_at,
person.id AS id
Expand Down Expand Up @@ -723,7 +725,8 @@
HAVING ifNull(equals(steps, max_steps), isNull(steps)
and isNull(max_steps)))
WHERE ifNull(in(steps, [2, 3]), 0)
ORDER BY aggregation_target ASC SETTINGS use_query_cache=1) AS source
ORDER BY aggregation_target ASC SETTINGS use_query_cache=1,
query_cache_ttl=600) AS source
INNER JOIN
(SELECT argMax(person.created_at, person.version) AS created_at,
person.id AS id
Expand Down Expand Up @@ -842,7 +845,8 @@
HAVING ifNull(equals(steps, max_steps), isNull(steps)
and isNull(max_steps)))
WHERE ifNull(in(steps, [3]), 0)
ORDER BY aggregation_target ASC SETTINGS use_query_cache=1) AS source
ORDER BY aggregation_target ASC SETTINGS use_query_cache=1,
query_cache_ttl=600) AS source
INNER JOIN
(SELECT argMax(person.created_at, person.version) AS created_at,
person.id AS id
Expand Down
Loading

0 comments on commit 373eb7b

Please sign in to comment.