-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HIVE-28480: Disable SMB on partition hash generator mismatch across j…
…oin branches in previous RS (Himanshu Mishra, reviewed by Krisztian Kasa, Shohei Okumiya)
- Loading branch information
1 parent
52954f2
commit cbfc88e
Showing
4 changed files
with
405 additions
and
8 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
39 changes: 39 additions & 0 deletions
39
ql/src/test/queries/clientpositive/auto_sortmerge_join_18.q
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,39 @@ | ||
CREATE TABLE t_asj_18 (k STRING, v INT); | ||
INSERT INTO t_asj_18 values ('a', 10), ('a', 10); | ||
|
||
set hive.auto.convert.join=false; | ||
set hive.tez.auto.reducer.parallelism=true; | ||
|
||
EXPLAIN SELECT * FROM ( | ||
SELECT k, COUNT(DISTINCT v), SUM(v) | ||
FROM t_asj_18 GROUP BY k | ||
) a LEFT JOIN ( | ||
SELECT k, COUNT(v) | ||
FROM t_asj_18 GROUP BY k | ||
) b ON a.k = b.k; | ||
|
||
SELECT * FROM ( | ||
SELECT k, COUNT(DISTINCT v), SUM(v) | ||
FROM t_asj_18 GROUP BY k | ||
) a LEFT JOIN ( | ||
SELECT k, COUNT(v) | ||
FROM t_asj_18 GROUP BY k | ||
) b ON a.k = b.k; | ||
|
||
set hive.optimize.distinct.rewrite=false; | ||
|
||
EXPLAIN SELECT * FROM ( | ||
SELECT k, COUNT(DISTINCT v) | ||
FROM t_asj_18 GROUP BY k | ||
) a LEFT JOIN ( | ||
SELECT k, COUNT(v) | ||
FROM t_asj_18 GROUP BY k | ||
) b ON a.k = b.k; | ||
|
||
SELECT * FROM ( | ||
SELECT k, COUNT(DISTINCT v) | ||
FROM t_asj_18 GROUP BY k | ||
) a LEFT JOIN ( | ||
SELECT k, COUNT(v) | ||
FROM t_asj_18 GROUP BY k | ||
) b ON a.k = b.k; |
Oops, something went wrong.