Skip to content

Commit 768583e

Browse files
authored
Merge pull request umami-software#3474 from querry43/master
fixing the clickhouse schema file
2 parents 6c6555d + 19ccfa0 commit 768583e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

db/clickhouse/schema.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ CREATE TABLE umami.website_event_stats_hourly
122122
min_time SimpleAggregateFunction(min, DateTime('UTC')),
123123
max_time SimpleAggregateFunction(max, DateTime('UTC')),
124124
tag SimpleAggregateFunction(groupArrayArray, Array(String)),
125-
distinct_id,
125+
distinct_id String,
126126
created_at Datetime('UTC')
127127
)
128128
ENGINE = AggregatingMergeTree
@@ -213,7 +213,7 @@ FROM (SELECT
213213
min(created_at) min_time,
214214
max(created_at) max_time,
215215
arrayFilter(x -> x != '', groupArray(tag)) tag,
216-
distinct_id String,
216+
distinct_id,
217217
toStartOfHour(created_at) timestamp
218218
FROM umami.website_event
219219
GROUP BY website_id,

0 commit comments

Comments
 (0)