From 83cd2a40e4209b6f7cba7b2a67d8ecc5ea770758 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Tue, 1 Aug 2017 20:52:05 +0300 Subject: [PATCH] added test --- .../00484_preferred_max_column_in_block_size_bytes.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dbms/tests/queries/0_stateless/00484_preferred_max_column_in_block_size_bytes.sql b/dbms/tests/queries/0_stateless/00484_preferred_max_column_in_block_size_bytes.sql index 4c4b89cd2fe..6ab513feac1 100644 --- a/dbms/tests/queries/0_stateless/00484_preferred_max_column_in_block_size_bytes.sql +++ b/dbms/tests/queries/0_stateless/00484_preferred_max_column_in_block_size_bytes.sql @@ -12,3 +12,9 @@ set preferred_max_column_in_block_size_bytes = 2097152; select max(blockSize()), min(blockSize()), any(ignore(*)) from test.tab; set preferred_max_column_in_block_size_bytes = 4194304; select max(blockSize()), min(blockSize()), any(ignore(*)) from test.tab; + +drop table if exists test.tab; +create table test.tab (date Date, x UInt64, s FixedString(128)) engine = MergeTree(date, (date, x), 32); +insert into test.tab select today(), number, toFixedString('', 128) from system.numbers limit 47; +set preferred_max_column_in_block_size_bytes = 1152; +select blockSize(), * from test.tab where x = 1 or x > 36 format Null;