forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ClickHouse#10757 from ClickHouse/fix-parallel-mv
Fix parallel MV (cherry picked from commit ef1c7da)
- Loading branch information
Showing
4 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
10 | ||
10 | ||
0 | ||
10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |