Skip to content
Snippets Groups Projects

ClickHouse data collector

Merged charlie ablett requested to merge 414610-cablett-clickhouse-data-collector into master
All threads resolved!
Compare and Show latest version
9 files
+ 265
183
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -5,8 +5,9 @@ CREATE TABLE contribution_analytics_events
author_id UInt64 DEFAULT 0,
target_type LowCardinality(String) DEFAULT '',
action UInt8 DEFAULT 0,
created_at Date DEFAULT toYear(now()),
created_at Date DEFAULT toDate(now()),
updated_at DateTime64(6, 'UTC') DEFAULT now()
)
ENGINE = MergeTree
ORDER BY (path, created_at, author_id, id);
ORDER BY (path, created_at, author_id, id)
PARTITION BY toYear(created_at);
Loading