mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added test.
This commit is contained in:
parent
e365bf422e
commit
869c933972
4
tests/queries/0_stateless/01275_parallel_mv.reference
Normal file
4
tests/queries/0_stateless/01275_parallel_mv.reference
Normal file
@ -0,0 +1,4 @@
|
||||
10
|
||||
10
|
||||
0
|
||||
10
|
18
tests/queries/0_stateless/01275_parallel_mv.sql
Normal file
18
tests/queries/0_stateless/01275_parallel_mv.sql
Normal file
@ -0,0 +1,18 @@
|
||||
drop table if exists testX;
|
||||
drop table if exists testXA;
|
||||
drop table if exists testXB;
|
||||
drop table if exists testXC;
|
||||
|
||||
create table testX (A Int64) engine=MergeTree order by tuple();
|
||||
|
||||
create materialized view testXA engine=MergeTree order by tuple() as select sleep(1) from testX;
|
||||
create materialized view testXB engine=MergeTree order by tuple() as select sleep(2), throwIf(A=1) from testX;
|
||||
create materialized view testXC engine=MergeTree order by tuple() as select sleep(1) from testX;
|
||||
|
||||
set parallel_view_processing=1;
|
||||
insert into testX select number from numbers(10); -- {serverError 395}
|
||||
|
||||
select count() from testX;
|
||||
select count() from testXA;
|
||||
select count() from testXB;
|
||||
select count() from testXC;
|
Loading…
Reference in New Issue
Block a user