2019-06-03 17:36:27 +00:00
|
|
|
drop table if exists `table_00483`;
|
|
|
|
create table `table_00483` (date Date, `Struct.Key1` Array(UInt64), `Struct.Key2` Array(UInt64), padding FixedString(16)) engine = MergeTree(date, (date), 16);
|
|
|
|
insert into `table_00483` select today() as date, [number], [number + 1], toFixedString('', 16) from system.numbers limit 100;
|
2017-07-28 18:33:55 +00:00
|
|
|
set preferred_max_column_in_block_size_bytes = 96;
|
2019-06-03 17:36:27 +00:00
|
|
|
select blockSize(), * from `table_00483` prewhere `Struct.Key1`[1] = 19 and `Struct.Key2`[1] >= 0 format Null;
|
2017-07-28 18:33:55 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
drop table if exists `table_00483`;
|
|
|
|
create table `table_00483` (date Date, `Struct.Key1` Array(UInt64), `Struct.Key2` Array(UInt64), padding FixedString(16), x UInt64) engine = MergeTree(date, (date), 8);
|
|
|
|
insert into `table_00483` select today() as date, [number], [number + 1], toFixedString('', 16), number from system.numbers limit 100;
|
2017-07-28 18:33:55 +00:00
|
|
|
set preferred_max_column_in_block_size_bytes = 112;
|
2019-06-03 17:36:27 +00:00
|
|
|
select blockSize(), * from `table_00483` prewhere x = 7 format Null;
|
2017-07-28 18:33:55 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
drop table if exists `table_00483`;
|