2018-11-14 11:51:18 +00:00
|
|
|
*** 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 ***
|
2019-03-27 18:58:08 +00:00
|
|
|
CREATE TABLE test.summing_r2 (`x` UInt32, `y` UInt32, `z` UInt32, `val` UInt32) ENGINE = ReplicatedSummingMergeTree(\'/clickhouse/tables/test/summing\', \'r2\') PRIMARY KEY (x, y) ORDER BY (x, y, -z) SETTINGS index_granularity = 8192
|
2018-11-28 16:05:29 +00:00
|
|
|
*** Check SHOW CREATE TABLE after offline ALTER ***
|
2019-03-27 18:58:08 +00:00
|
|
|
CREATE TABLE test.summing_r2 (`x` UInt32, `y` UInt32, `z` UInt32, `t` UInt32, `val` UInt32) ENGINE = ReplicatedSummingMergeTree(\'/clickhouse/tables/test/summing\', \'r2\') PRIMARY KEY (x, y) ORDER BY (x, y, t * t) SETTINGS index_granularity = 8192
|