-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix](bug) fix the divide zero in local shuffle: (#37948)
## Proposed changes cherry pick #37906 <!--Describe your changes.-->
- Loading branch information
Showing
3 changed files
with
58 additions
and
1 deletion.
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
52 changes: 52 additions & 0 deletions
52
regression-test/data/query_p0/limit/sql/withGroupByUnion.out
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,52 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !withGroupByUnion -- | ||
0 ALGERIA | ||
1 ALGERIA | ||
1 ARGENTINA | ||
1 BRAZIL | ||
1 CANADA | ||
1 CHINA | ||
1 EGYPT | ||
1 ETHIOPIA | ||
1 FRANCE | ||
1 GERMANY | ||
1 INDIA | ||
1 INDONESIA | ||
1 IRAN | ||
1 IRAQ | ||
1 JAPAN | ||
1 JORDAN | ||
1 KENYA | ||
1 MOROCCO | ||
1 MOZAMBIQUE | ||
1 PERU | ||
1 ROMANIA | ||
1 RUSSIA | ||
1 SAUDI ARABIA | ||
1 UNITED KINGDOM | ||
1 UNITED STATES | ||
1 VIETNAM | ||
2 BRAZIL | ||
3 CANADA | ||
4 EGYPT | ||
5 ETHIOPIA | ||
6 FRANCE | ||
7 GERMANY | ||
8 INDIA | ||
9 INDONESIA | ||
10 IRAN | ||
11 IRAQ | ||
12 JAPAN | ||
13 JORDAN | ||
14 KENYA | ||
15 MOROCCO | ||
16 MOZAMBIQUE | ||
17 PERU | ||
18 CHINA | ||
19 ROMANIA | ||
20 SAUDI ARABIA | ||
21 VIETNAM | ||
22 RUSSIA | ||
23 UNITED KINGDOM | ||
24 UNITED STATES | ||
|
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 @@ | ||
select * from (select count(a.nationkey), a.name from tpch_tiny_nation a join[shuffle] tpch_tiny_nation b on a.name = b.name group by a.name union select sum(c.nationkey), c.name from tpch_tiny_nation c join[shuffle] tpch_tiny_nation d on c.name = d.name group by c.name) t order by 1,2 limit 50; |