Skip to content

Commit

Permalink
back to nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech committed Sep 25, 2024
1 parent e24b318 commit 50b30a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions posthog/models/raw_sessions/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,17 @@
-- verify correctness and as a backup. Ideally we will be able to delete the uniq columns in the future when we're
-- satisfied that counts are accurate.
pageview_count SimpleAggregateFunction(sum, Int64),
pageview_uniq AggregateFunction(uniq, UUID),
pageview_uniq AggregateFunction(uniq, Nullable(UUID)),
autocapture_count SimpleAggregateFunction(sum, Int64),
autocapture_uniq AggregateFunction(uniq, UUID),
autocapture_uniq AggregateFunction(uniq, Nullable(UUID)),
screen_count SimpleAggregateFunction(sum, Int64),
screen_uniq AggregateFunction(uniq, UUID),
screen_uniq AggregateFunction(uniq, Nullable(UUID)),
-- replay
maybe_has_session_replay SimpleAggregateFunction(max, Bool), -- will be written False to by the events table mv and True to by the replay table mv
-- as a performance optimisation, also keep track of the uniq events for all of these combined, a bounce is a session with <2 of these
page_screen_autocapture_uniq_up_to AggregateFunction(uniqUpTo(1), UUID),
page_screen_autocapture_uniq_up_to AggregateFunction(uniqUpTo(1), Nullable(UUID)),
-- web vitals
vitals_lcp AggregateFunction(argMin, Nullable(Float64), DateTime64(6, 'UTC'))
Expand Down

0 comments on commit 50b30a8

Please sign in to comment.