ATTACH TABLE _ UUID '3cfd9665-e3b1-4ba6-89ac-076bec2bf8de'
(
    `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
