2016-05-17 21:08:53 +00:00
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
2
|
|
|
|
3
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
2
|
|
|
|
3
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
2
|
|
|
|
3
|
|
|
|
2
|
|
|
|
3
|
|
|
|
1
|
|
|
|
1 Hello
|
|
|
|
2
|
|
|
|
2 World
|
|
|
|
3
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
2
|
|
|
|
2 World
|
|
|
|
3
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
2 World
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
2
|
|
|
|
2 World
|
|
|
|
3
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
1
|
|
|
|
1 Hello
|
|
|
|
2
|
|
|
|
2 World
|
|
|
|
3
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
2
|
|
|
|
2 World
|
|
|
|
3
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
2 World
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
2
|
|
|
|
2 World
|
|
|
|
3
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
1
|
|
|
|
1 Hello
|
|
|
|
2
|
|
|
|
2 World
|
|
|
|
3
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
1
|
|
|
|
1 Hello
|
|
|
|
2
|
|
|
|
2 World
|
|
|
|
3
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
1
|
|
|
|
1 Hello
|
|
|
|
2
|
|
|
|
2 World
|
|
|
|
3
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
2
|
|
|
|
2 World
|
|
|
|
3
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
2 World
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
2
|
|
|
|
2 World
|
|
|
|
3
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
1
|
|
|
|
1 Hello
|
|
|
|
2
|
|
|
|
2 World
|
|
|
|
3
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
2
|
|
|
|
2 World
|
|
|
|
3
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
2 World
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
2
|
|
|
|
2 World
|
|
|
|
3
|
|
|
|
3 abc
|
|
|
|
4 def
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
2018-11-28 13:31:19 +00:00
|
|
|
*** Check table creation statement ***
|
|
|
|
CREATE TABLE test.pk2 ( x UInt32, y UInt32, z UInt32) ENGINE = MergeTree PRIMARY KEY (x, y) ORDER BY (x, y, z) SETTINGS index_granularity = 8192
|
|
|
|
*** Check that the inserted values were correctly sorted ***
|
|
|
|
100 20 1
|
|
|
|
100 20 2
|
|
|
|
100 30 1
|
|
|
|
100 30 2
|