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-28729: Apply nulls order setting in Reduce Sink operator of join…
… branches
- Loading branch information
Showing
4 changed files
with
142 additions
and
9 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
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 @@ | ||
SET hive.cbo.returnpath.hiveop=true; | ||
SET hive.default.nulls.last=false; | ||
|
||
CREATE TABLE t1(key int, value string); | ||
|
||
EXPLAIN CBO SELECT * FROM t1 a INNER JOIN t1 b on a.key = b.key; | ||
EXPLAIN SELECT * FROM t1 a INNER JOIN t1 b on a.key = b.key; |
116 changes: 116 additions & 0 deletions
116
ql/src/test/results/clientpositive/llap/cbo_rp_null_order.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,116 @@ | ||
PREHOOK: query: CREATE TABLE t1(key int, value string) | ||
PREHOOK: type: CREATETABLE | ||
PREHOOK: Output: database:default | ||
PREHOOK: Output: default@t1 | ||
POSTHOOK: query: CREATE TABLE t1(key int, value string) | ||
POSTHOOK: type: CREATETABLE | ||
POSTHOOK: Output: database:default | ||
POSTHOOK: Output: default@t1 | ||
PREHOOK: query: EXPLAIN CBO SELECT * FROM t1 a INNER JOIN t1 b on a.key = b.key | ||
PREHOOK: type: QUERY | ||
PREHOOK: Input: default@t1 | ||
#### A masked pattern was here #### | ||
POSTHOOK: query: EXPLAIN CBO SELECT * FROM t1 a INNER JOIN t1 b on a.key = b.key | ||
POSTHOOK: type: QUERY | ||
POSTHOOK: Input: default@t1 | ||
#### A masked pattern was here #### | ||
CBO PLAN: | ||
HiveJoin(condition=[=($0, $2)], joinType=[inner], algorithm=[none], cost=[not available]) | ||
HiveSortExchange(distribution=[hash[0]], collation=[[0 ASC-nulls-first]]) | ||
HiveProject(key=[$0], value=[$1]) | ||
HiveFilter(condition=[IS NOT NULL($0)]) | ||
HiveTableScan(table=[[default, t1]], qbid:alias=[a]) | ||
HiveSortExchange(distribution=[hash[0]], collation=[[0 ASC-nulls-first]]) | ||
HiveProject(key=[$0], value=[$1]) | ||
HiveFilter(condition=[IS NOT NULL($0)]) | ||
HiveTableScan(table=[[default, t1]], qbid:alias=[b]) | ||
|
||
PREHOOK: query: EXPLAIN SELECT * FROM t1 a INNER JOIN t1 b on a.key = b.key | ||
PREHOOK: type: QUERY | ||
PREHOOK: Input: default@t1 | ||
#### A masked pattern was here #### | ||
POSTHOOK: query: EXPLAIN SELECT * FROM t1 a INNER JOIN t1 b on a.key = b.key | ||
POSTHOOK: type: QUERY | ||
POSTHOOK: Input: default@t1 | ||
#### A masked pattern was here #### | ||
STAGE DEPENDENCIES: | ||
Stage-1 is a root stage | ||
Stage-0 depends on stages: Stage-1 | ||
|
||
STAGE PLANS: | ||
Stage: Stage-1 | ||
Tez | ||
#### A masked pattern was here #### | ||
Edges: | ||
Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 3 (SIMPLE_EDGE) | ||
#### A masked pattern was here #### | ||
Vertices: | ||
Map 1 | ||
Map Operator Tree: | ||
TableScan | ||
alias: a | ||
filterExpr: key is not null (type: boolean) | ||
Statistics: Num rows: 1 Data size: 188 Basic stats: COMPLETE Column stats: NONE | ||
Filter Operator | ||
predicate: key is not null (type: boolean) | ||
Statistics: Num rows: 1 Data size: 188 Basic stats: COMPLETE Column stats: NONE | ||
Select Operator | ||
expressions: key (type: int), value (type: string) | ||
outputColumnNames: key, value | ||
Statistics: Num rows: 1 Data size: 188 Basic stats: COMPLETE Column stats: NONE | ||
Reduce Output Operator | ||
key expressions: key (type: int) | ||
null sort order: a | ||
sort order: + | ||
Map-reduce partition columns: key (type: int) | ||
Statistics: Num rows: 1 Data size: 188 Basic stats: COMPLETE Column stats: NONE | ||
value expressions: value (type: string) | ||
Execution mode: vectorized, llap | ||
LLAP IO: all inputs | ||
Map 3 | ||
Map Operator Tree: | ||
TableScan | ||
alias: b | ||
filterExpr: key is not null (type: boolean) | ||
Statistics: Num rows: 1 Data size: 188 Basic stats: COMPLETE Column stats: NONE | ||
Filter Operator | ||
predicate: key is not null (type: boolean) | ||
Statistics: Num rows: 1 Data size: 188 Basic stats: COMPLETE Column stats: NONE | ||
Select Operator | ||
expressions: key (type: int), value (type: string) | ||
outputColumnNames: key, value | ||
Statistics: Num rows: 1 Data size: 188 Basic stats: COMPLETE Column stats: NONE | ||
Reduce Output Operator | ||
key expressions: key (type: int) | ||
null sort order: a | ||
sort order: + | ||
Map-reduce partition columns: key (type: int) | ||
Statistics: Num rows: 1 Data size: 188 Basic stats: COMPLETE Column stats: NONE | ||
value expressions: value (type: string) | ||
Execution mode: vectorized, llap | ||
LLAP IO: all inputs | ||
Reducer 2 | ||
Execution mode: llap | ||
Reduce Operator Tree: | ||
Merge Join Operator | ||
condition map: | ||
Inner Join 0 to 1 | ||
keys: | ||
0 key (type: int) | ||
1 key (type: int) | ||
outputColumnNames: key, value, key0, value0 | ||
Statistics: Num rows: 1 Data size: 206 Basic stats: COMPLETE Column stats: NONE | ||
File Output Operator | ||
compressed: false | ||
Statistics: Num rows: 1 Data size: 206 Basic stats: COMPLETE Column stats: NONE | ||
table: | ||
input format: org.apache.hadoop.mapred.SequenceFileInputFormat | ||
output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat | ||
serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe | ||
|
||
Stage: Stage-0 | ||
Fetch Operator | ||
limit: -1 | ||
Processor Tree: | ||
ListSink | ||
|