Add regression test for Pipeline stuck error with INSERT SELECT FINAL

This commit is contained in:
Azat Khuzhin 2020-06-05 01:11:48 +03:00
parent 5d3383edbe
commit 5deda4c7fd
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,13 @@
1
INSERT SELECT
1
1
INSERT SELECT max_threads
1
1
1
INSERT SELECT max_insert_threads max_threads
1
1
1
1

View File

@ -0,0 +1,18 @@
drop table if exists data_01295;
create table data_01295 (key Int) Engine=AggregatingMergeTree() order by key;
insert into data_01295 values (1);
select * from data_01295;
select 'INSERT SELECT';
insert into data_01295 select * from data_01295; -- no stuck for now
select * from data_01295;
select 'INSERT SELECT max_threads';
insert into data_01295 select * from data_01295 final settings max_threads=2; -- stuck with multiple threads
select * from data_01295;
select 'INSERT SELECT max_insert_threads max_threads';
set max_insert_threads=2;
insert into data_01295 select * from data_01295 final settings max_threads=2; -- no stuck for now
select * from data_01295;