-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dq] Fix the parallel precompute execution hangup in some cases (#5046)
- Loading branch information
Showing
9 changed files
with
191 additions
and
69 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
134 changes: 65 additions & 69 deletions
134
ydb/library/yql/providers/dq/provider/exec/yql_dq_exectransformer.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
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
5 changes: 5 additions & 0 deletions
5
ydb/library/yql/tests/sql/suites/dq/precompute_parallel_indep.cfg
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,5 @@ | ||
providers dq | ||
in Input1 input.txt | ||
in Input2 input.txt | ||
in Input3 input.txt | ||
out Output output.txt |
5 changes: 5 additions & 0 deletions
5
ydb/library/yql/tests/sql/suites/dq/precompute_parallel_indep.sql
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,5 @@ | ||
use plato; | ||
|
||
insert into Output select sum(cast(key as int32)) from Input1; | ||
insert into Output select sum(cast(key as int32)) from Input2; | ||
insert into Output select sum(cast(key as int32)) from Input3; |
4 changes: 4 additions & 0 deletions
4
ydb/library/yql/tests/sql/suites/dq/precompute_parallel_mix.cfg
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 @@ | ||
providers dq | ||
in Input input.txt | ||
out Output1 output1.txt | ||
out Output2 output2.txt |
7 changes: 7 additions & 0 deletions
7
ydb/library/yql/tests/sql/suites/dq/precompute_parallel_mix.sql
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,7 @@ | ||
use plato; | ||
|
||
$a = select key from Input order by key limit 1; | ||
$b = select key from Input order by key limit 1 offset 1; | ||
|
||
insert into Output1 select * from Input where key <= $a; | ||
insert into Output2 select * from Input where key >= $a and key != $b; |