CREATE TABLE bad_partitions (x UInt64) ENGINE = MergeTree PARTITION BY x ORDER BY x INSERT INTO bad_partitions SELECT * FROM numbers(10000) 5 10000 100 60000 0 SELECT count() FROM bad_partitions DROP TABLE IF EXISTS bad_partitions