added tests

This commit is contained in:
Nikolai Kochetov 2017-07-28 21:33:55 +03:00 committed by alexey-milovidov
parent b714d2b514
commit da9b515e22
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
drop table if exists test.table;
create table test.table (date Date, `Struct.Key1` Array(UInt64), `Struct.Key2` Array(UInt64), padding FixedString(16)) engine = MergeTree(date, (date), 16);
insert into test.table select today() as date, [number], [number + 1], toFixedString('', 16) from system.numbers limit 100;
set preferred_max_column_in_block_size_bytes = 96;
select blockSize(), * from test.table prewhere `Struct.Key1`[1] = 19 and `Struct.Key2`[1] >= 0 format Null;
drop table if exists test.table;
create table test.table (date Date, `Struct.Key1` Array(UInt64), `Struct.Key2` Array(UInt64), padding FixedString(16), x UInt64) engine = MergeTree(date, (date), 8);
insert into test.table select today() as date, [number], [number + 1], toFixedString('', 16), number from system.numbers limit 100;
set preferred_max_column_in_block_size_bytes = 112;
select blockSize(), * from test.table prewhere x = 7 format Null;