3 1 0 cluster0 default hits cluster1 default hits 2 3 4 5 6 1 2 0 ENGINE=ReplicatedMergeTree('/clickhouse/tables/cluster{cluster}/{shard}/hits', '{replica}') PARTITION BY d % 3 ORDER BY (d, sipHash64(d)) SAMPLE BY sipHash64(d) SETTINGS index_granularity = 16 d + 1 d - d = 0 true s0_0_0 9000 s0_0_1 9000 true s0_1_0 9000 true s1_0_0 9000 s1_0_1 9000 true s1_1_0 9000 255.255.255.255 9000