forked from apache/hive
-
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.
HIVE-9025 : join38.q (without map join) produces incorrect result whe…
…n testing with multiple reducers (Ted Xu via Ashutosh Chauhan) git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1644717 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Showing
19 changed files
with
168 additions
and
7 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
11 changes: 11 additions & 0 deletions
11
ql/src/test/queries/clientpositive/constprog_partitioner.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,11 @@ | ||
set hive.fetch.task.conversion=more; | ||
set hive.optimize.constant.propagation=true; | ||
|
||
set mapred.reduce.tasks=4; | ||
|
||
EXPLAIN | ||
SELECT src1.key, src1.key + 1, src2.value | ||
FROM src src1 join src src2 ON src1.key = src2.key AND src1.key = 100; | ||
|
||
SELECT src1.key, src1.key + 1, src2.value | ||
FROM src src1 join src src2 ON src1.key = src2.key AND src1.key = 100; |
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
80 changes: 80 additions & 0 deletions
80
ql/src/test/results/clientpositive/constprog_partitioner.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,80 @@ | ||
PREHOOK: query: EXPLAIN | ||
SELECT src1.key, src1.key + 1, src2.value | ||
FROM src src1 join src src2 ON src1.key = src2.key AND src1.key = 100 | ||
PREHOOK: type: QUERY | ||
POSTHOOK: query: EXPLAIN | ||
SELECT src1.key, src1.key + 1, src2.value | ||
FROM src src1 join src src2 ON src1.key = src2.key AND src1.key = 100 | ||
POSTHOOK: type: QUERY | ||
STAGE DEPENDENCIES: | ||
Stage-1 is a root stage | ||
Stage-0 depends on stages: Stage-1 | ||
|
||
STAGE PLANS: | ||
Stage: Stage-1 | ||
Map Reduce | ||
Map Operator Tree: | ||
TableScan | ||
alias: src1 | ||
Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE | ||
Filter Operator | ||
predicate: (key = 100) (type: boolean) | ||
Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE | ||
Reduce Output Operator | ||
key expressions: '100' (type: string) | ||
sort order: + | ||
Map-reduce partition columns: '' (type: string) | ||
Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE | ||
TableScan | ||
alias: src2 | ||
Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE | ||
Filter Operator | ||
predicate: (key = 100) (type: boolean) | ||
Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE | ||
Reduce Output Operator | ||
key expressions: '100' (type: string) | ||
sort order: + | ||
Map-reduce partition columns: '' (type: string) | ||
Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE | ||
value expressions: value (type: string) | ||
Reduce Operator Tree: | ||
Join Operator | ||
condition map: | ||
Inner Join 0 to 1 | ||
condition expressions: | ||
0 | ||
1 {VALUE._col0} | ||
outputColumnNames: _col6 | ||
Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE | ||
Select Operator | ||
expressions: '100' (type: string), 101.0 (type: double), _col6 (type: string) | ||
outputColumnNames: _col0, _col1, _col2 | ||
Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE | ||
File Output Operator | ||
compressed: false | ||
Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE | ||
table: | ||
input format: org.apache.hadoop.mapred.TextInputFormat | ||
output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat | ||
serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe | ||
|
||
Stage: Stage-0 | ||
Fetch Operator | ||
limit: -1 | ||
Processor Tree: | ||
ListSink | ||
|
||
PREHOOK: query: SELECT src1.key, src1.key + 1, src2.value | ||
FROM src src1 join src src2 ON src1.key = src2.key AND src1.key = 100 | ||
PREHOOK: type: QUERY | ||
PREHOOK: Input: default@src | ||
#### A masked pattern was here #### | ||
POSTHOOK: query: SELECT src1.key, src1.key + 1, src2.value | ||
FROM src src1 join src src2 ON src1.key = src2.key AND src1.key = 100 | ||
POSTHOOK: type: QUERY | ||
POSTHOOK: Input: default@src | ||
#### A masked pattern was here #### | ||
100 101.0 val_100 | ||
100 101.0 val_100 | ||
100 101.0 val_100 | ||
100 101.0 val_100 |
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
Oops, something went wrong.