mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 11:04:10 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
14 lines
984 B
SQL
14 lines
984 B
SQL
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;
|
|
set preferred_max_column_in_block_size_bytes = 96;
|
|
select blockSize(), * from `table_00483` prewhere `Struct.Key1`[1] = 19 and `Struct.Key2`[1] >= 0 format Null;
|
|
|
|
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;
|
|
set preferred_max_column_in_block_size_bytes = 112;
|
|
select blockSize(), * from `table_00483` prewhere x = 7 format Null;
|
|
|
|
drop table if exists `table_00483`;
|