-
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-2329 Not using map aggregation, fails to execute group-by after
cluster-by with same key (Navis via namit) git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1212551 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Namit Jain
committed
Dec 9, 2011
1 parent
183ddc2
commit 5a3c7ab
Showing
3 changed files
with
73 additions
and
39 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
6 changes: 6 additions & 0 deletions
6
ql/src/test/queries/clientpositive/reduce_deduplicate_exclude_gby.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,6 @@ | ||
create table t1( key_int1 int, key_int2 int, key_string1 string, key_string2 string); | ||
|
||
set hive.map.aggr=false; | ||
select Q1.key_int1, sum(Q1.key_int1) from (select * from t1 cluster by key_int1) Q1 group by Q1.key_int1; | ||
|
||
drop table t1; |
21 changes: 21 additions & 0 deletions
21
ql/src/test/results/clientpositive/reduce_deduplicate_exclude_gby.q.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,21 @@ | ||
PREHOOK: query: create table t1( key_int1 int, key_int2 int, key_string1 string, key_string2 string) | ||
PREHOOK: type: CREATETABLE | ||
POSTHOOK: query: create table t1( key_int1 int, key_int2 int, key_string1 string, key_string2 string) | ||
POSTHOOK: type: CREATETABLE | ||
POSTHOOK: Output: default@t1 | ||
PREHOOK: query: select Q1.key_int1, sum(Q1.key_int1) from (select * from t1 cluster by key_int1) Q1 group by Q1.key_int1 | ||
PREHOOK: type: QUERY | ||
PREHOOK: Input: default@t1 | ||
PREHOOK: Output: file:/tmp/navis/hive_2011-11-27_23-31-58_414_7329222711647021730/-mr-10000 | ||
POSTHOOK: query: select Q1.key_int1, sum(Q1.key_int1) from (select * from t1 cluster by key_int1) Q1 group by Q1.key_int1 | ||
POSTHOOK: type: QUERY | ||
POSTHOOK: Input: default@t1 | ||
POSTHOOK: Output: file:/tmp/navis/hive_2011-11-27_23-31-58_414_7329222711647021730/-mr-10000 | ||
PREHOOK: query: drop table t1 | ||
PREHOOK: type: DROPTABLE | ||
PREHOOK: Input: default@t1 | ||
PREHOOK: Output: default@t1 | ||
POSTHOOK: query: drop table t1 | ||
POSTHOOK: type: DROPTABLE | ||
POSTHOOK: Input: default@t1 | ||
POSTHOOK: Output: default@t1 |