10
CREATE TABLE simple_mergetree (EventDate Date, x UInt64) ENGINE = MergeTree ORDER BY x
INSERT INTO simple_mergetree SELECT number, today() + intDiv(number, 10000000) FROM numbers_mt(100000000)
OPTIMIZE TABLE simple_mergetree FINAL
SELECT count() FROM simple_mergetree
DROP TABLE IF EXISTS simple_mergetree