Test specifically with wide parts

This commit is contained in:
Alexander Gololobov 2022-11-17 10:50:45 +01:00
parent feb5c8f278
commit 59a9fe0d92
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,3 @@
foo
foo
foo

View File

@ -0,0 +1,17 @@
drop table if exists t;
create table t (id UInt32, a Int) engine = MergeTree order by id settings min_bytes_for_wide_part=0;
insert into t values (1, 0) (2, 1) (3, 0) (4, 0) (5, 0);
alter table t add column s String default 'foo';
select s from t prewhere a = 1;
drop table t;
create table t (id UInt32, a Int) engine = MergeTree order by id settings min_bytes_for_wide_part=0;
insert into t values (1, 1) (2, 1) (3, 0) (4, 0) (5, 0);
alter table t add column s String default 'foo';
select s from t prewhere a = 1;
drop table t;