*** Check that the parts are sorted according to the new key. *** 1 2 0 10 1 2 0 20 1 2 2 40 1 2 2 50 1 2 1 30 *** Check that the rows are collapsed according to the new key. *** 1 2 0 30 1 2 1 30 1 2 4 90 *** Check SHOW CREATE TABLE *** CREATE TABLE default.summing\n(\n `x` UInt32, \n `y` UInt32, \n `z` UInt32, \n `val` UInt32\n)\nENGINE = SummingMergeTree\nPRIMARY KEY (x, y)\nORDER BY (x, y, -z)\nSETTINGS index_granularity = 8192