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 3d88999 commit 241fcc8
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions posthog/heatmaps/test/__snapshots__/test_heatmaps_api.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
round(divide(heatmaps.x, heatmaps.viewport_width), 2) AS pointer_relative_x,
multiply(heatmaps.y, heatmaps.scale_factor) AS client_y
FROM heatmaps
WHERE and(equals(heatmaps.team_id, 2), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(150, 16))), 0), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08'))))
WHERE and(equals(heatmaps.team_id, 2), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08')), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(150, 16))), 0)))
GROUP BY pointer_target_fixed,
pointer_relative_x,
client_y
Expand All @@ -100,7 +100,7 @@
round(divide(heatmaps.x, heatmaps.viewport_width), 2) AS pointer_relative_x,
multiply(heatmaps.y, heatmaps.scale_factor) AS client_y
FROM heatmaps
WHERE and(equals(heatmaps.team_id, 2), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(161, 16))), 0), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08'))))
WHERE and(equals(heatmaps.team_id, 2), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08')), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(161, 16))), 0)))
GROUP BY pointer_target_fixed,
pointer_relative_x,
client_y
Expand All @@ -122,7 +122,7 @@
round(divide(heatmaps.x, heatmaps.viewport_width), 2) AS pointer_relative_x,
multiply(heatmaps.y, heatmaps.scale_factor) AS client_y
FROM heatmaps
WHERE and(equals(heatmaps.team_id, 2), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(177, 16))), 0), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08'))))
WHERE and(equals(heatmaps.team_id, 2), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08')), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(177, 16))), 0)))
GROUP BY pointer_target_fixed,
pointer_relative_x,
client_y
Expand All @@ -144,7 +144,7 @@
round(divide(heatmaps.x, heatmaps.viewport_width), 2) AS pointer_relative_x,
multiply(heatmaps.y, heatmaps.scale_factor) AS client_y
FROM heatmaps
WHERE and(equals(heatmaps.team_id, 2), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(201, 16))), 0), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08'))))
WHERE and(equals(heatmaps.team_id, 2), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08')), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(201, 16))), 0)))
GROUP BY pointer_target_fixed,
pointer_relative_x,
client_y
Expand All @@ -166,7 +166,7 @@
round(divide(heatmaps.x, heatmaps.viewport_width), 2) AS pointer_relative_x,
multiply(heatmaps.y, heatmaps.scale_factor) AS client_y
FROM heatmaps
WHERE and(equals(heatmaps.team_id, 2), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(161, 16))), 0), ifNull(lessOrEquals(heatmaps.viewport_width, round(divide(192, 16))), 0), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08'))))
WHERE and(equals(heatmaps.team_id, 2), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-08')), ifNull(greaterOrEquals(heatmaps.viewport_width, round(divide(161, 16))), 0), ifNull(lessOrEquals(heatmaps.viewport_width, round(divide(192, 16))), 0)))
GROUP BY pointer_target_fixed,
pointer_relative_x,
client_y
Expand Down Expand Up @@ -263,6 +263,22 @@
allow_experimental_object_type=1
'''
# ---
# name: TestSessionRecordings.test_can_get_example_sessions
'''
/* user_id:0 request:_snapshot_ */
SELECT heatmaps.session_id AS session_id,
toTimeZone(heatmaps.timestamp, 'UTC') AS timestamp,
round(divide(heatmaps.x, heatmaps.viewport_width), 2) AS relative_client_x,
multiply(heatmaps.y, heatmaps.scale_factor) AS client_y
FROM heatmaps
WHERE and(equals(heatmaps.team_id, 2), equals(heatmaps.type, 'click'), greaterOrEquals(toTimeZone(heatmaps.timestamp, 'UTC'), toDate('2023-03-06')), ifNull(equals(heatmaps.x, round(divide(999, 16))), isNull(heatmaps.x)
and isNull(round(divide(999, 16)))), ifNull(equals(heatmaps.y, round(divide(11, 16))), isNull(heatmaps.y)
and isNull(round(divide(11, 16)))))
LIMIT 1000000 SETTINGS readonly=2,
max_execution_time=60,
allow_experimental_object_type=1
'''
# ---
# name: TestSessionRecordings.test_can_get_filter_by_click
'''
/* user_id:0 request:_snapshot_ */
Expand Down

0 comments on commit 241fcc8

Please sign in to comment.