http://git-wip-us.apache.org/repos/asf/hive/blob/55887646/ql/src/test/results/clientpositive/llap/subquery_scalar.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/llap/subquery_scalar.q.out
b/ql/src/test/results/clientpositive/llap/subquery_scalar.q.out
index c72e4b2..c43ad91 100644
--- a/ql/src/test/results/clientpositive/llap/subquery_scalar.q.out
+++ b/ql/src/test/results/clientpositive/llap/subquery_scalar.q.out
@@ -109,13 +109,13 @@ STAGE PLANS:
alias: part
Statistics: Num rows: 26 Data size: 16094 Basic stats:
COMPLETE Column stats: COMPLETE
Select Operator
- expressions: p_partkey (type: int), p_name (type: string),
p_mfgr (type: string), p_brand (type: string), p_type (type: string), p_size
(type: int), p_container (type: string), p_retailprice (type: double),
p_comment (type: string)
- outputColumnNames: _col0, _col1, _col2, _col3, _col4,
_col5, _col6, _col7, _col8
- Statistics: Num rows: 26 Data size: 16094 Basic stats:
COMPLETE Column stats: COMPLETE
+ expressions: p_partkey (type: int), p_name (type: string),
p_mfgr (type: string), p_brand (type: string), p_type (type: string), p_size
(type: int), p_container (type: string), p_retailprice (type: double),
p_comment (type: string), UDFToDouble(p_size) (type: double)
+ outputColumnNames: _col0, _col1, _col2, _col3, _col4,
_col5, _col6, _col7, _col8, _col9
+ Statistics: Num rows: 26 Data size: 16302 Basic stats:
COMPLETE Column stats: COMPLETE
Reduce Output Operator
sort order:
- Statistics: Num rows: 26 Data size: 16094 Basic stats:
COMPLETE Column stats: COMPLETE
- value expressions: _col0 (type: int), _col1 (type:
string), _col2 (type: string), _col3 (type: string), _col4 (type: string),
_col5 (type: int), _col6 (type: string), _col7 (type: double), _col8 (type:
string)
+ Statistics: Num rows: 26 Data size: 16302 Basic stats:
COMPLETE Column stats: COMPLETE
+ value expressions: _col0 (type: int), _col1 (type:
string), _col2 (type: string), _col3 (type: string), _col4 (type: string),
_col5 (type: int), _col6 (type: string), _col7 (type: double), _col8 (type:
string), _col9 (type: double)
Execution mode: vectorized, llap
LLAP IO: no inputs
Map 3
@@ -147,16 +147,16 @@ STAGE PLANS:
keys:
0
1
- outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8, _col9
- residual filter predicates: {(UDFToDouble(_col5) > _col9)}
- Statistics: Num rows: 8 Data size: 5120 Basic stats: COMPLETE
Column stats: NONE
+ outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8, _col9, _col10
+ residual filter predicates: {(_col9 > _col10)}
+ Statistics: Num rows: 8 Data size: 5184 Basic stats: COMPLETE
Column stats: NONE
Select Operator
expressions: _col0 (type: int), _col1 (type: string), _col2
(type: string), _col3 (type: string), _col4 (type: string), _col5 (type: int),
_col6 (type: string), _col7 (type: double), _col8 (type: string)
outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8
- Statistics: Num rows: 8 Data size: 5120 Basic stats:
COMPLETE Column stats: NONE
+ Statistics: Num rows: 8 Data size: 5184 Basic stats:
COMPLETE Column stats: NONE
File Output Operator
compressed: false
- Statistics: Num rows: 8 Data size: 5120 Basic stats:
COMPLETE Column stats: NONE
+ Statistics: Num rows: 8 Data size: 5184 Basic stats:
COMPLETE Column stats: NONE
table:
input format:
org.apache.hadoop.mapred.SequenceFileInputFormat
output format:
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
@@ -397,12 +397,12 @@ STAGE PLANS:
Statistics: Num rows: 1 Data size: 619 Basic stats:
COMPLETE Column stats: COMPLETE
Select Operator
expressions: p_partkey (type: int), p_mfgr (type:
string), p_brand (type: string), p_type (type: string), p_size (type: int),
p_container (type: string), p_retailprice (type: double), p_comment (type:
string)
- outputColumnNames: _col0, _col2, _col3, _col4, _col5,
_col6, _col7, _col8
- Statistics: Num rows: 1 Data size: 582 Basic stats:
COMPLETE Column stats: COMPLETE
+ outputColumnNames: _col0, _col1, _col2, _col3, _col4,
_col5, _col6, _col7
+ Statistics: Num rows: 1 Data size: 498 Basic stats:
COMPLETE Column stats: COMPLETE
Reduce Output Operator
sort order:
- Statistics: Num rows: 1 Data size: 582 Basic stats:
COMPLETE Column stats: COMPLETE
- value expressions: _col0 (type: int), _col2 (type:
string), _col3 (type: string), _col4 (type: string), _col5 (type: int), _col6
(type: string), _col7 (type: double), _col8 (type: string)
+ Statistics: Num rows: 1 Data size: 498 Basic stats:
COMPLETE Column stats: COMPLETE
+ value expressions: _col0 (type: int), _col1 (type:
string), _col2 (type: string), _col3 (type: string), _col4 (type: int), _col5
(type: string), _col6 (type: double), _col7 (type: string)
Execution mode: vectorized, llap
LLAP IO: no inputs
Reducer 2
@@ -432,15 +432,15 @@ STAGE PLANS:
0
1
2
- outputColumnNames: _col2, _col4, _col5, _col6, _col7, _col8,
_col9, _col10
- Statistics: Num rows: 1 Data size: 959 Basic stats: COMPLETE
Column stats: NONE
+ outputColumnNames: _col2, _col3, _col4, _col5, _col6, _col7,
_col8, _col9
+ Statistics: Num rows: 1 Data size: 875 Basic stats: COMPLETE
Column stats: NONE
Select Operator
- expressions: _col2 (type: int), null (type: string), _col4
(type: string), _col5 (type: string), _col6 (type: string), _col7 (type: int),
_col8 (type: string), _col9 (type: double), _col10 (type: string)
+ expressions: _col2 (type: int), null (type: string), _col3
(type: string), _col4 (type: string), _col5 (type: string), _col6 (type: int),
_col7 (type: string), _col8 (type: double), _col9 (type: string)
outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8
- Statistics: Num rows: 1 Data size: 959 Basic stats: COMPLETE
Column stats: NONE
+ Statistics: Num rows: 1 Data size: 875 Basic stats: COMPLETE
Column stats: NONE
File Output Operator
compressed: false
- Statistics: Num rows: 1 Data size: 959 Basic stats:
COMPLETE Column stats: NONE
+ Statistics: Num rows: 1 Data size: 875 Basic stats:
COMPLETE Column stats: NONE
table:
input format:
org.apache.hadoop.mapred.SequenceFileInputFormat
output format:
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
@@ -1245,13 +1245,13 @@ STAGE PLANS:
alias: part
Statistics: Num rows: 26 Data size: 16094 Basic stats:
COMPLETE Column stats: COMPLETE
Select Operator
- expressions: p_partkey (type: int), p_name (type: string),
p_mfgr (type: string), p_brand (type: string), p_type (type: string), p_size
(type: int), p_container (type: string), p_retailprice (type: double),
p_comment (type: string)
- outputColumnNames: _col0, _col1, _col2, _col3, _col4,
_col5, _col6, _col7, _col8
- Statistics: Num rows: 26 Data size: 16094 Basic stats:
COMPLETE Column stats: COMPLETE
+ expressions: p_partkey (type: int), p_name (type: string),
p_mfgr (type: string), p_brand (type: string), p_type (type: string), p_size
(type: int), p_container (type: string), p_retailprice (type: double),
p_comment (type: string), (p_partkey * p_size) (type: int)
+ outputColumnNames: _col0, _col1, _col2, _col3, _col4,
_col5, _col6, _col7, _col8, _col9
+ Statistics: Num rows: 26 Data size: 16198 Basic stats:
COMPLETE Column stats: COMPLETE
Reduce Output Operator
sort order:
- Statistics: Num rows: 26 Data size: 16094 Basic stats:
COMPLETE Column stats: COMPLETE
- value expressions: _col0 (type: int), _col1 (type:
string), _col2 (type: string), _col3 (type: string), _col4 (type: string),
_col5 (type: int), _col6 (type: string), _col7 (type: double), _col8 (type:
string)
+ Statistics: Num rows: 26 Data size: 16198 Basic stats:
COMPLETE Column stats: COMPLETE
+ value expressions: _col0 (type: int), _col1 (type:
string), _col2 (type: string), _col3 (type: string), _col4 (type: string),
_col5 (type: int), _col6 (type: string), _col7 (type: double), _col8 (type:
string), _col9 (type: int)
Execution mode: vectorized, llap
LLAP IO: no inputs
Map 3
@@ -1283,9 +1283,9 @@ STAGE PLANS:
keys:
0
1
- outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8, _col9
- residual filter predicates: {((_col0 * _col5) <> _col9)}
- Statistics: Num rows: 26 Data size: 16198 Basic stats:
COMPLETE Column stats: COMPLETE
+ outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8, _col9, _col10
+ residual filter predicates: {(_col9 <> _col10)}
+ Statistics: Num rows: 26 Data size: 16302 Basic stats:
COMPLETE Column stats: COMPLETE
Select Operator
expressions: _col0 (type: int), _col1 (type: string), _col2
(type: string), _col3 (type: string), _col4 (type: string), _col5 (type: int),
_col6 (type: string), _col7 (type: double), _col8 (type: string)
outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8
@@ -1383,7 +1383,7 @@ STAGE PLANS:
predicate: p_name is not null (type: boolean)
Statistics: Num rows: 26 Data size: 3250 Basic stats:
COMPLETE Column stats: COMPLETE
Select Operator
- expressions: p_name (type: string), p_size (type: int)
+ expressions: p_name (type: string), (p_size + 100)
(type: int)
outputColumnNames: _col0, _col1
Statistics: Num rows: 26 Data size: 3250 Basic stats:
COMPLETE Column stats: COMPLETE
Reduce Output Operator
@@ -1427,7 +1427,7 @@ STAGE PLANS:
0 _col0 (type: string)
1 _col1 (type: string)
outputColumnNames: _col1, _col2
- residual filter predicates: {((_col1 + 100) < _col2)}
+ residual filter predicates: {(_col1 < _col2)}
Statistics: Num rows: 4 Data size: 32 Basic stats: COMPLETE
Column stats: COMPLETE
Select Operator
Statistics: Num rows: 4 Data size: 32 Basic stats: COMPLETE
Column stats: COMPLETE
@@ -1659,15 +1659,15 @@ STAGE PLANS:
predicate: p_type is not null (type: boolean)
Statistics: Num rows: 26 Data size: 16094 Basic stats:
COMPLETE Column stats: COMPLETE
Select Operator
- expressions: p_partkey (type: int), p_name (type:
string), p_mfgr (type: string), p_brand (type: string), p_type (type: string),
p_size (type: int), p_container (type: string), p_retailprice (type: double),
p_comment (type: string)
- outputColumnNames: _col0, _col1, _col2, _col3, _col4,
_col5, _col6, _col7, _col8
- Statistics: Num rows: 26 Data size: 16094 Basic stats:
COMPLETE Column stats: COMPLETE
+ expressions: p_partkey (type: int), p_name (type:
string), p_mfgr (type: string), p_brand (type: string), p_type (type: string),
p_size (type: int), p_container (type: string), p_retailprice (type: double),
p_comment (type: string), UDFToDouble(p_size) (type: double)
+ outputColumnNames: _col0, _col1, _col2, _col3, _col4,
_col5, _col6, _col7, _col8, _col9
+ Statistics: Num rows: 26 Data size: 16302 Basic stats:
COMPLETE Column stats: COMPLETE
Reduce Output Operator
key expressions: _col4 (type: string)
sort order: +
Map-reduce partition columns: _col4 (type: string)
- Statistics: Num rows: 26 Data size: 16094 Basic stats:
COMPLETE Column stats: COMPLETE
- value expressions: _col0 (type: int), _col1 (type:
string), _col2 (type: string), _col3 (type: string), _col5 (type: int), _col6
(type: string), _col7 (type: double), _col8 (type: string)
+ Statistics: Num rows: 26 Data size: 16302 Basic stats:
COMPLETE Column stats: COMPLETE
+ value expressions: _col0 (type: int), _col1 (type:
string), _col2 (type: string), _col3 (type: string), _col5 (type: int), _col6
(type: string), _col7 (type: double), _col8 (type: string), _col9 (type: double)
Execution mode: vectorized, llap
LLAP IO: no inputs
Map 3
@@ -1702,16 +1702,16 @@ STAGE PLANS:
keys:
0 _col4 (type: string)
1 _col1 (type: string)
- outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8, _col9
- residual filter predicates: {(UDFToDouble(_col5) > _col9)}
- Statistics: Num rows: 9 Data size: 5690 Basic stats: COMPLETE
Column stats: NONE
+ outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8, _col9, _col10
+ residual filter predicates: {(_col9 > _col10)}
+ Statistics: Num rows: 9 Data size: 5763 Basic stats: COMPLETE
Column stats: NONE
Select Operator
expressions: _col0 (type: int), _col1 (type: string), _col2
(type: string), _col3 (type: string), _col4 (type: string), _col5 (type: int),
_col6 (type: string), _col7 (type: double), _col8 (type: string)
outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8
- Statistics: Num rows: 9 Data size: 5690 Basic stats:
COMPLETE Column stats: NONE
+ Statistics: Num rows: 9 Data size: 5763 Basic stats:
COMPLETE Column stats: NONE
File Output Operator
compressed: false
- Statistics: Num rows: 9 Data size: 5690 Basic stats:
COMPLETE Column stats: NONE
+ Statistics: Num rows: 9 Data size: 5763 Basic stats:
COMPLETE Column stats: NONE
table:
input format:
org.apache.hadoop.mapred.SequenceFileInputFormat
output format:
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
@@ -3754,8 +3754,8 @@ STAGE PLANS:
keys:
0 _col4 (type: string)
1 _col1 (type: string)
- outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8, _col13
- residual filter predicates: {(not (_col1 like _col13))}
+ outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8, _col9
+ residual filter predicates: {(not (_col1 like _col9))}
Statistics: Num rows: 5 Data size: 795 Basic stats: COMPLETE
Column stats: NONE
Select Operator
expressions: _col0 (type: int), _col1 (type: string), _col2
(type: string), _col3 (type: string), _col4 (type: string), _col5 (type: int),
_col6 (type: string), _col7 (type: double), _col8 (type: string)
@@ -3860,12 +3860,12 @@ STAGE PLANS:
Select Operator
expressions: l_orderkey (type: int), l_partkey (type:
int), l_suppkey (type: int)
outputColumnNames: _col0, _col1, _col2
- Statistics: Num rows: 14 Data size: 224 Basic stats:
COMPLETE Column stats: COMPLETE
+ Statistics: Num rows: 14 Data size: 168 Basic stats:
COMPLETE Column stats: COMPLETE
Reduce Output Operator
key expressions: _col1 (type: int)
sort order: +
Map-reduce partition columns: _col1 (type: int)
- Statistics: Num rows: 14 Data size: 224 Basic stats:
COMPLETE Column stats: COMPLETE
+ Statistics: Num rows: 14 Data size: 168 Basic stats:
COMPLETE Column stats: COMPLETE
value expressions: _col0 (type: int), _col2 (type: int)
Execution mode: vectorized, llap
LLAP IO: no inputs
@@ -3941,8 +3941,8 @@ STAGE PLANS:
keys:
0
1
- outputColumnNames: _col0, _col1, _col2, _col5
- residual filter predicates: {(_col0 <> _col5)}
+ outputColumnNames: _col0, _col1, _col2, _col4
+ residual filter predicates: {(_col0 <> _col4)}
Statistics: Num rows: 14 Data size: 224 Basic stats: COMPLETE
Column stats: COMPLETE
Select Operator
expressions: _col1 (type: int), _col2 (type: int)
@@ -4074,12 +4074,12 @@ STAGE PLANS:
Select Operator
expressions: l_orderkey (type: int), l_partkey (type:
int), l_suppkey (type: int)
outputColumnNames: _col0, _col1, _col2
- Statistics: Num rows: 14 Data size: 224 Basic stats:
COMPLETE Column stats: COMPLETE
+ Statistics: Num rows: 14 Data size: 168 Basic stats:
COMPLETE Column stats: COMPLETE
Reduce Output Operator
key expressions: _col1 (type: int)
sort order: +
Map-reduce partition columns: _col1 (type: int)
- Statistics: Num rows: 14 Data size: 224 Basic stats:
COMPLETE Column stats: COMPLETE
+ Statistics: Num rows: 14 Data size: 168 Basic stats:
COMPLETE Column stats: COMPLETE
value expressions: _col0 (type: int), _col2 (type: int)
Execution mode: vectorized, llap
LLAP IO: no inputs
@@ -4155,8 +4155,8 @@ STAGE PLANS:
keys:
0
1
- outputColumnNames: _col0, _col1, _col2, _col5
- residual filter predicates: {(_col0 <> _col5)}
+ outputColumnNames: _col0, _col1, _col2, _col4
+ residual filter predicates: {(_col0 <> _col4)}
Statistics: Num rows: 14 Data size: 224 Basic stats: COMPLETE
Column stats: COMPLETE
Select Operator
expressions: _col1 (type: int), _col2 (type: int)
@@ -5224,15 +5224,15 @@ STAGE PLANS:
predicate: name is not null (type: boolean)
Statistics: Num rows: 5 Data size: 1650 Basic stats:
COMPLETE Column stats: COMPLETE
Select Operator
- expressions: empno (type: int), name (type: string),
deptno (type: int), gender (type: string), city (type: string), empid (type:
int), age (type: int), slacker (type: boolean), manager (type: boolean),
joinedat (type: date)
- outputColumnNames: _col0, _col1, _col2, _col3, _col4,
_col5, _col6, _col7, _col8, _col9
- Statistics: Num rows: 5 Data size: 1650 Basic stats:
COMPLETE Column stats: COMPLETE
+ expressions: empno (type: int), name (type: string),
deptno (type: int), gender (type: string), city (type: string), empid (type:
int), age (type: int), slacker (type: boolean), manager (type: boolean),
joinedat (type: date), UDFToLong(deptno) (type: bigint)
+ outputColumnNames: _col0, _col1, _col2, _col3, _col4,
_col5, _col6, _col7, _col8, _col9, _col10
+ Statistics: Num rows: 5 Data size: 1690 Basic stats:
COMPLETE Column stats: COMPLETE
Reduce Output Operator
key expressions: _col1 (type: string)
sort order: +
Map-reduce partition columns: _col1 (type: string)
- Statistics: Num rows: 5 Data size: 1650 Basic stats:
COMPLETE Column stats: COMPLETE
- value expressions: _col0 (type: int), _col2 (type:
int), _col3 (type: string), _col4 (type: string), _col5 (type: int), _col6
(type: int), _col7 (type: boolean), _col8 (type: boolean), _col9 (type: date)
+ Statistics: Num rows: 5 Data size: 1690 Basic stats:
COMPLETE Column stats: COMPLETE
+ value expressions: _col0 (type: int), _col2 (type:
int), _col3 (type: string), _col4 (type: string), _col5 (type: int), _col6
(type: int), _col7 (type: boolean), _col8 (type: boolean), _col9 (type: date),
_col10 (type: bigint)
Execution mode: vectorized, llap
LLAP IO: no inputs
Map 4
@@ -5287,12 +5287,12 @@ STAGE PLANS:
keys:
0 _col1 (type: string)
1 _col1 (type: string)
- outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8, _col9, _col10
- residual filter predicates: {(UDFToLong(_col2) <> _col10)}
- Statistics: Num rows: 1 Data size: 359 Basic stats: COMPLETE
Column stats: COMPLETE
+ outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8, _col9, _col10, _col11
+ residual filter predicates: {(_col10 <> _col11)}
+ Statistics: Num rows: 1 Data size: 367 Basic stats: COMPLETE
Column stats: COMPLETE
Reduce Output Operator
sort order:
- Statistics: Num rows: 1 Data size: 359 Basic stats: COMPLETE
Column stats: COMPLETE
+ Statistics: Num rows: 1 Data size: 367 Basic stats: COMPLETE
Column stats: COMPLETE
value expressions: _col0 (type: int), _col1 (type: string),
_col2 (type: int), _col3 (type: string), _col4 (type: string), _col5 (type:
int), _col6 (type: int), _col7 (type: boolean), _col8 (type: boolean), _col9
(type: date)
Reducer 3
Execution mode: llap
@@ -5303,8 +5303,8 @@ STAGE PLANS:
keys:
0
1
- outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8, _col9, _col12
- residual filter predicates: {(UDFToLong(_col0) > _col12)}
+ outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8, _col9, _col13
+ residual filter predicates: {(UDFToLong(_col0) > _col13)}
Statistics: Num rows: 1 Data size: 359 Basic stats: COMPLETE
Column stats: COMPLETE
Select Operator
expressions: _col0 (type: int), _col1 (type: string), _col2
(type: int), _col3 (type: string), _col4 (type: string), _col5 (type: int),
_col6 (type: int), _col7 (type: boolean), _col8 (type: boolean), _col9 (type:
date)
@@ -5999,8 +5999,8 @@ STAGE PLANS:
0 _col4 (type: string)
1 _col0 (type: string)
2 _col1 (type: string)
- outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8, _col11
- residual filter predicates: {(_col5 > _col11)}
+ outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5,
_col6, _col7, _col8, _col10
+ residual filter predicates: {(_col5 > _col10)}
Statistics: Num rows: 4 Data size: 2492 Basic stats: COMPLETE
Column stats: COMPLETE
Select Operator
expressions: _col0 (type: int), _col1 (type: string), _col2
(type: string), _col3 (type: string), _col4 (type: string), _col5 (type: int),
_col6 (type: string), _col7 (type: double), _col8 (type: string)
@@ -6033,12 +6033,12 @@ STAGE PLANS:
Select Operator
expressions: _col0 (type: string)
outputColumnNames: _col0
- Statistics: Num rows: 4 Data size: 448 Basic stats:
COMPLETE Column stats: COMPLETE
+ Statistics: Num rows: 4 Data size: 416 Basic stats:
COMPLETE Column stats: COMPLETE
Reduce Output Operator
key expressions: _col0 (type: string)
sort order: +
Map-reduce partition columns: _col0 (type: string)
- Statistics: Num rows: 4 Data size: 448 Basic stats:
COMPLETE Column stats: COMPLETE
+ Statistics: Num rows: 4 Data size: 416 Basic stats:
COMPLETE Column stats: COMPLETE
Reducer 6
Execution mode: vectorized, llap
Reduce Operator Tree: