Skip to content

Commit

Permalink
Merge branch 'ch-24.3' of https://github.com/PostHog/posthog into ch-…
Browse files Browse the repository at this point in the history
…24.3

* 'ch-24.3' of https://github.com/PostHog/posthog:
  Update query snapshots
  • Loading branch information
fuziontech committed Oct 16, 2024
2 parents 54b1a4a + cd0c0cf commit 45964f2
Show file tree
Hide file tree
Showing 2 changed files with 1,234 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# serializer version: 1
# name: test_groups_join_query_filtering
tuple(
'''

LEFT JOIN (
SELECT
group_key,
argMax(group_properties, _timestamp) AS group_properties_0
FROM groups
WHERE team_id = %(team_id)s AND group_type_index = %(group_index_0)s
GROUP BY group_key
) groups_0
ON "$group_0" == groups_0.group_key

''',
dict({
'group_index_0': 0,
'team_id': 2,
}),
)
# ---
# name: test_groups_join_query_filtering_with_custom_key_names
tuple(
'''

LEFT JOIN (
SELECT
group_key,
argMax(group_properties, _timestamp) AS group_properties_0
FROM groups
WHERE team_id = %(team_id)s AND group_type_index = %(group_index_0)s
GROUP BY group_key
) groups_0
ON call_me_industry == groups_0.group_key


LEFT JOIN (
SELECT
group_key,
argMax(group_properties, _timestamp) AS group_properties_2
FROM groups
WHERE team_id = %(team_id)s AND group_type_index = %(group_index_2)s
GROUP BY group_key
) groups_2
ON call_me_industry == groups_2.group_key

''',
dict({
'group_index_0': 0,
'group_index_2': 2,
'team_id': 2,
}),
)
# ---
Loading

0 comments on commit 45964f2

Please sign in to comment.