ATTACH TABLE _ UUID '8387b2c6-e147-451e-8e5f-84f4bbeb2c47'
(
    `timeseries_name` String,
    `timeseries_key` UInt64,
    `start_time` DateTime64(9, 'UTC'),
    `timestamp` DateTime64(9, 'UTC'),
    `datum` Nullable(Float64)
)
ENGINE = ReplicatedMergeTree('/clickhouse/tables/{shard}/measurements_cumulativef64_local', '{replica}')
ORDER BY (timeseries_name, timeseries_key, start_time, timestamp)
TTL toDateTime(timestamp) + toIntervalDay(30)
SETTINGS index_granularity = 8192
