CREATE TABLE IF NOT EXISTS aggregates (
key_date Date,
tag String,
ts Int64,
q0 Float64,
q10 Float64,
q25 Float64,
q50 Float64,
q75 Float64,
q80 Float64,
q85 Float64,
q90 Float64,
q95 Float64,
q98 Float64,
q99 Float64,
q100 Float64,
average Float64,
stddev Float64,
sum Float64,
cnt Int64)
ENGINE = ReplicatedMergeTree('/clickhouse/tables/01/aggregates', '{dc_name}', key_date, tag, (tag, ts), 8192)