From 6a0d5ee1e615a5eb37dd178c71fb1ef4bde8437f Mon Sep 17 00:00:00 2001 From: Francis Cao Date: Mon, 7 Nov 2022 18:03:27 -0800 Subject: [PATCH] add rev_id to CH schema --- db/clickhouse/schema.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/db/clickhouse/schema.sql b/db/clickhouse/schema.sql index b33ce2f6..0579d13d 100644 --- a/db/clickhouse/schema.sql +++ b/db/clickhouse/schema.sql @@ -6,6 +6,7 @@ CREATE TABLE event website_id UUID, session_id UUID, event_id Nullable(UUID), + rev_id UInt32, --session hostname LowCardinality(String), browser LowCardinality(String), @@ -30,6 +31,7 @@ CREATE TABLE event_queue ( website_id UUID, session_id UUID, event_id Nullable(UUID), + rev_id UInt32, url String, referrer String, hostname LowCardinality(String), @@ -55,6 +57,7 @@ CREATE MATERIALIZED VIEW event_queue_mv TO event AS SELECT website_id, session_id, event_id, + rev_id, url, referrer, hostname,