ATTACH TABLE _ UUID '17923b8d-91a4-405c-b594-ce5489e572ce'
(
    `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
