ATTACH TABLE _ UUID 'd7b9257f-20b5-4abd-8e34-129f0ebedbab'
(
    `event_date` Date CODEC(Delta(2), ZSTD(1)),
    `event_time` DateTime CODEC(Delta(4), ZSTD(1)),
    `metric` LowCardinality(String) CODEC(ZSTD(1)),
    `value` Float64 CODEC(ZSTD(3))
)
ENGINE = MergeTree
ORDER BY event_time
TTL event_date + toIntervalDay(30)
SETTINGS index_granularity = 8192
