update CH view to account for new event types

This commit is contained in:
Francis Cao
2025-10-02 10:18:13 -07:00
parent ec81cd665f
commit 16451dd5cd

View File

@@ -209,7 +209,7 @@ FROM (SELECT
arrayFilter(x -> x != '', groupArray(twclid)) twclid,
event_type,
if(event_type = 2, groupArray(event_name), []) event_name,
sumIf(1, event_type = 1) views,
sumIf(1, event_type != 2) views,
min(created_at) min_time,
max(created_at) max_time,
arrayFilter(x -> x != '', groupArray(tag)) tag,