Skip to content

Commit 16451dd

Browse files
committed
update CH view to account for new event types
1 parent ec81cd6 commit 16451dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/clickhouse/schema.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ FROM (SELECT
209209
arrayFilter(x -> x != '', groupArray(twclid)) twclid,
210210
event_type,
211211
if(event_type = 2, groupArray(event_name), []) event_name,
212-
sumIf(1, event_type = 1) views,
212+
sumIf(1, event_type != 2) views,
213213
min(created_at) min_time,
214214
max(created_at) max_time,
215215
arrayFilter(x -> x != '', groupArray(tag)) tag,

0 commit comments

Comments
 (0)