ATTACH TABLE _ UUID '96c0b991-9506-4c0d-8810-4612eb1ea320'
(
    `timeseries_name` String,
    `timeseries_key` UInt64,
    `timestamp` DateTime64(9, 'UTC'),
    `datum` Nullable(Float64)
)
ENGINE = MergeTree
ORDER BY (timeseries_name, timeseries_key, timestamp)
TTL toDateTime(timestamp) + toIntervalDay(30)
SETTINGS index_granularity = 8192
