ATTACH TABLE _ UUID '830bb066-2f31-4f68-9f30-45ac61faa614'
(
    `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
