mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Add regression test for Pipeline stuck error with INSERT SELECT FINAL
This commit is contained in:
parent
5d3383edbe
commit
5deda4c7fd
13
tests/queries/0_stateless/01296_pipeline_stuck.reference
Normal file
13
tests/queries/0_stateless/01296_pipeline_stuck.reference
Normal 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
|
18
tests/queries/0_stateless/01296_pipeline_stuck.sql
Normal file
18
tests/queries/0_stateless/01296_pipeline_stuck.sql
Normal 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;
|
Loading…
Reference in New Issue
Block a user