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 Apr 25, 2024
1 parent 9398e2d commit a2e4aac
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
LIMIT 101
OFFSET 0 SETTINGS readonly=2,
max_execution_time=600,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
51 changes: 34 additions & 17 deletions posthog/heatmaps/test/__snapshots__/test_heatmaps_api.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
client_y
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestSessionRecordings.test_can_filter_by_exact_url.1
Expand All @@ -40,7 +41,8 @@
client_y
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestSessionRecordings.test_can_filter_by_exact_url.2
Expand All @@ -62,7 +64,8 @@
client_y
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestSessionRecordings.test_can_get_all_data_response
Expand All @@ -84,7 +87,8 @@
client_y
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestSessionRecordings.test_can_get_count_by_aggregation
Expand All @@ -106,7 +110,8 @@
client_y
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestSessionRecordings.test_can_get_count_by_aggregation.1
Expand All @@ -128,7 +133,8 @@
client_y
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestSessionRecordings.test_can_get_empty_response
Expand All @@ -150,7 +156,8 @@
client_y
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestSessionRecordings.test_can_get_filter_by_click
Expand All @@ -172,7 +179,8 @@
client_y
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestSessionRecordings.test_can_get_filter_by_click.1
Expand All @@ -194,7 +202,8 @@
client_y
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestSessionRecordings.test_can_get_filter_by_date_from
Expand All @@ -216,7 +225,8 @@
client_y
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestSessionRecordings.test_can_get_filter_by_min_and_max_viewport
Expand All @@ -238,7 +248,8 @@
client_y
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestSessionRecordings.test_can_get_filter_by_min_viewport
Expand All @@ -260,7 +271,8 @@
client_y
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestSessionRecordings.test_can_get_filter_by_min_viewport.1
Expand All @@ -282,7 +294,8 @@
client_y
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestSessionRecordings.test_can_get_filter_by_min_viewport.2
Expand All @@ -304,7 +317,8 @@
client_y
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestSessionRecordings.test_can_get_filter_by_min_viewport.3
Expand All @@ -326,7 +340,8 @@
client_y
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestSessionRecordings.test_can_get_filter_by_relative_date_from
Expand All @@ -348,7 +363,8 @@
client_y
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestSessionRecordings.test_can_get_scrolldepth_counts
Expand All @@ -370,6 +386,7 @@
ORDER BY bucket ASC
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
FROM events LEFT JOIN (
SELECT person_static_cohort.person_id AS cohort_person_id, 1 AS matched, person_static_cohort.cohort_id AS cohort_id
FROM person_static_cohort
WHERE and(equals(person_static_cohort.team_id, 420), in(person_static_cohort.cohort_id, [56]))) AS __in_cohort ON equals(__in_cohort.cohort_person_id, events.person_id)
WHERE and(equals(person_static_cohort.team_id, 420), in(person_static_cohort.cohort_id, [13]))) AS __in_cohort ON equals(__in_cohort.cohort_person_id, events.person_id)
WHERE and(equals(events.team_id, 420), 1, ifNull(equals(__in_cohort.matched, 1), 0))
LIMIT 100
SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1, format_csv_allow_double_quotes=0
Expand All @@ -42,7 +42,7 @@
FROM events LEFT JOIN (
SELECT person_id AS cohort_person_id, 1 AS matched, cohort_id
FROM static_cohort_people
WHERE in(cohort_id, [56])) AS __in_cohort ON equals(__in_cohort.cohort_person_id, person_id)
WHERE in(cohort_id, [13])) AS __in_cohort ON equals(__in_cohort.cohort_person_id, person_id)
WHERE and(1, equals(__in_cohort.matched, 1))
LIMIT 100
'''
Expand All @@ -55,7 +55,7 @@
FROM events LEFT JOIN (
SELECT person_static_cohort.person_id AS cohort_person_id, 1 AS matched, person_static_cohort.cohort_id AS cohort_id
FROM person_static_cohort
WHERE and(equals(person_static_cohort.team_id, 420), in(person_static_cohort.cohort_id, [57]))) AS __in_cohort ON equals(__in_cohort.cohort_person_id, events.person_id)
WHERE and(equals(person_static_cohort.team_id, 420), in(person_static_cohort.cohort_id, [14]))) AS __in_cohort ON equals(__in_cohort.cohort_person_id, events.person_id)
WHERE and(equals(events.team_id, 420), 1, ifNull(equals(__in_cohort.matched, 1), 0))
LIMIT 100
SETTINGS readonly=2, max_execution_time=60, allow_experimental_object_type=1, format_csv_allow_double_quotes=0
Expand All @@ -66,7 +66,7 @@
FROM events LEFT JOIN (
SELECT person_id AS cohort_person_id, 1 AS matched, cohort_id
FROM static_cohort_people
WHERE in(cohort_id, [57])) AS __in_cohort ON equals(__in_cohort.cohort_person_id, person_id)
WHERE in(cohort_id, [14])) AS __in_cohort ON equals(__in_cohort.cohort_person_id, person_id)
WHERE and(1, equals(__in_cohort.matched, 1))
LIMIT 100
'''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
and isNull(max_steps)))
LIMIT 100 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestFOSSFunnel.test_funnel_conversion_window_seconds.1
Expand Down Expand Up @@ -190,7 +191,8 @@
LIMIT 101
OFFSET 0 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestFOSSFunnel.test_funnel_events_with_person_on_events_v2
Expand Down Expand Up @@ -295,7 +297,8 @@
and isNull(max_steps)))
LIMIT 100 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestFOSSFunnel.test_funnel_with_precalculated_cohort_step_filter
Expand Down Expand Up @@ -982,7 +985,8 @@
LIMIT 26
OFFSET 0 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestFunnelBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen.1
Expand Down Expand Up @@ -1068,7 +1072,8 @@
GROUP BY prop
LIMIT 100 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestFunnelBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen_for_step
Expand All @@ -1090,7 +1095,8 @@
LIMIT 26
OFFSET 0 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestFunnelBreakdown.test_funnel_breakdown_correct_breakdown_props_are_chosen_for_step.1
Expand Down Expand Up @@ -1183,7 +1189,8 @@
GROUP BY prop
LIMIT 100 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestFunnelBreakdown.test_funnel_step_multiple_breakdown_snapshot
Expand All @@ -1204,7 +1211,8 @@
LIMIT 26
OFFSET 0 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestFunnelBreakdown.test_funnel_step_multiple_breakdown_snapshot.1
Expand Down Expand Up @@ -1289,7 +1297,8 @@
GROUP BY prop
LIMIT 100 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestFunnelGroupBreakdown.test_funnel_aggregate_by_groups_breakdown_group_person_on_events
Expand All @@ -1311,7 +1320,8 @@
LIMIT 26
OFFSET 0 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestFunnelGroupBreakdown.test_funnel_aggregate_by_groups_breakdown_group_person_on_events.1
Expand Down Expand Up @@ -1436,7 +1446,8 @@
GROUP BY prop
LIMIT 100 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestFunnelGroupBreakdown.test_funnel_aggregate_by_groups_breakdown_group_person_on_events_poe_v2
Expand Down Expand Up @@ -1464,7 +1475,8 @@
LIMIT 26
OFFSET 0 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestFunnelGroupBreakdown.test_funnel_aggregate_by_groups_breakdown_group_person_on_events_poe_v2.1
Expand Down Expand Up @@ -1589,7 +1601,8 @@
GROUP BY prop
LIMIT 100 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestFunnelGroupBreakdown.test_funnel_breakdown_group
Expand Down Expand Up @@ -1618,7 +1631,8 @@
LIMIT 26
OFFSET 0 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestFunnelGroupBreakdown.test_funnel_breakdown_group.1
Expand Down Expand Up @@ -1750,7 +1764,8 @@
GROUP BY prop
LIMIT 100 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
allow_experimental_object_type=1,
format_csv_allow_double_quotes=0
'''
# ---
# name: TestFunnelGroupBreakdown.test_funnel_breakdown_group.2
Expand Down

0 comments on commit a2e4aac

Please sign in to comment.