Added test [#METR-22032].

This commit is contained in:
Alexey Milovidov 2016-07-09 03:20:44 +03:00
parent 6aa533ace4
commit fb3a28f646
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,4 @@
1 1 2016-07-07
-1 -1 2016-07-07
1 1 2016-07-07
-1 -1 2016-07-07

View File

@ -0,0 +1,19 @@
DROP TABLE IF EXISTS test.index;
CREATE TABLE test.index
(
key Int32,
name String,
merge_date Date
) ENGINE = MergeTree(merge_date, key, 8192);
insert into test.index values (1,'1','2016-07-07');
insert into test.index values (-1,'-1','2016-07-07');
select * from test.index where key = 1;
select * from test.index where key = -1;
OPTIMIZE TABLE test.index;
select * from test.index where key = 1;
select * from test.index where key = -1;
DROP TABLE test.index;