http://git-wip-us.apache.org/repos/asf/hive/blob/be9735e1/ql/src/test/results/clientpositive/perf/query67.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query67.q.out 
b/ql/src/test/results/clientpositive/perf/query67.q.out
index dda5347..f158829 100644
--- a/ql/src/test/results/clientpositive/perf/query67.q.out
+++ b/ql/src/test/results/clientpositive/perf/query67.q.out
@@ -95,158 +95,85 @@ Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
 Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
 
 Stage-0
-   Fetch Operator
-      limit:100
-      Stage-1
-         Reducer 7
-         File Output Operator [FS_37]
-            compressed:false
-            Statistics:Num rows: 100 Data size: 143600 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"}
-            Limit [LIM_36]
-               Number of rows:100
-               Statistics:Num rows: 100 Data size: 143600 Basic stats: 
COMPLETE Column stats: NONE
-               Select Operator [SEL_35]
-               |  
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9"]
-               |  Statistics:Num rows: 762300 Data size: 1094874777 Basic 
stats: COMPLETE Column stats: NONE
-               |<-Reducer 6 [SIMPLE_EDGE]
-                  Reduce Output Operator [RS_34]
-                     key expressions:_col0 (type: string), _col1 (type: 
string), _col2 (type: string), _col3 (type: string), _col4 (type: int), _col5 
(type: int), _col6 (type: int), _col7 (type: string), _col8 (type: 
decimal(28,2)), _col9 (type: int)
-                     sort order:++++++++++
-                     Statistics:Num rows: 762300 Data size: 1094874777 Basic 
stats: COMPLETE Column stats: NONE
-                     Select Operator [SEL_30]
-                        
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9"]
-                        Statistics:Num rows: 762300 Data size: 1094874777 
Basic stats: COMPLETE Column stats: NONE
-                        Filter Operator [FIL_47]
-                           predicate:(rank_window_0 <= 100) (type: boolean)
-                           Statistics:Num rows: 762300 Data size: 1094874777 
Basic stats: COMPLETE Column stats: NONE
-                           PTF Operator [PTF_29]
-                              Function definitions:[{"Input 
definition":{"type:":"WINDOWING"}},{"name:":"windowingtablefunction","order 
by:":"_col16(DESC)","partition by:":"_col0"}]
-                              Statistics:Num rows: 2286900 Data size: 
3284624331 Basic stats: COMPLETE Column stats: NONE
-                              Select Operator [SEL_28]
-                              |  
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col16"]
-                              |  Statistics:Num rows: 2286900 Data size: 
3284624331 Basic stats: COMPLETE Column stats: NONE
-                              |<-Reducer 5 [SIMPLE_EDGE]
-                                 Reduce Output Operator [RS_27]
-                                    key expressions:_col0 (type: string), 
_col16 (type: decimal(28,2))
-                                    Map-reduce partition columns:_col0 (type: 
string)
-                                    sort order:+-
-                                    Statistics:Num rows: 2286900 Data size: 
3284624331 Basic stats: COMPLETE Column stats: NONE
-                                    value expressions:_col1 (type: string), 
_col2 (type: string), _col3 (type: string), _col4 (type: int), _col5 (type: 
int), _col6 (type: int), _col7 (type: string)
-                                    Select Operator [SEL_26]
-                                       
outputColumnNames:["_col0","_col1","_col16","_col2","_col3","_col4","_col5","_col6","_col7"]
-                                       Statistics:Num rows: 2286900 Data size: 
3284624331 Basic stats: COMPLETE Column stats: NONE
-                                       Group By Operator [GBY_25]
-                                       |  aggregations:["sum(VALUE._col0)"]
-                                       |  keys:KEY._col0 (type: string), 
KEY._col1 (type: string), KEY._col2 (type: string), KEY._col3 (type: string), 
KEY._col4 (type: int), KEY._col5 (type: int), KEY._col6 (type: int), KEY._col7 
(type: string), KEY._col8 (type: string)
-                                       |  
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col9"]
-                                       |  Statistics:Num rows: 2286900 Data 
size: 3284624331 Basic stats: COMPLETE Column stats: NONE
-                                       |<-Reducer 4 [SIMPLE_EDGE]
-                                          Reduce Output Operator [RS_24]
-                                             key expressions:_col0 (type: 
string), _col1 (type: string), _col2 (type: string), _col3 (type: string), 
_col4 (type: int), _col5 (type: int), _col6 (type: int), _col7 (type: string), 
_col8 (type: string)
-                                             Map-reduce partition 
columns:_col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 
(type: string), _col4 (type: int), _col5 (type: int), _col6 (type: int), _col7 
(type: string), _col8 (type: string)
-                                             sort order:+++++++++
-                                             Statistics:Num rows: 4573800 Data 
size: 6569248662 Basic stats: COMPLETE Column stats: NONE
-                                             value expressions:_col9 (type: 
decimal(28,2))
-                                             Group By Operator [GBY_23]
-                                                aggregations:["sum(_col8)"]
-                                                keys:_col0 (type: string), 
_col1 (type: string), _col2 (type: string), _col3 (type: string), _col4 (type: 
int), _col5 (type: int), _col6 (type: int), _col7 (type: string), '0' (type: 
string)
-                                                
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9"]
-                                                Statistics:Num rows: 4573800 
Data size: 6569248662 Basic stats: COMPLETE Column stats: NONE
-                                                Select Operator [SEL_21]
-                                                   
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
-                                                   Statistics:Num rows: 508200 
Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
-                                                   Merge Join Operator 
[MERGEJOIN_54]
-                                                   |  condition 
map:[{"":"Inner Join 0 to 1"}]
-                                                   |  keys:{"0":"_col1 (type: 
int)","1":"_col0 (type: int)"}
-                                                   |  
outputColumnNames:["_col3","_col4","_col7","_col8","_col9","_col11","_col13","_col14","_col15","_col16"]
-                                                   |  Statistics:Num rows: 
508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
-                                                   |<-Map 10 [SIMPLE_EDGE]
-                                                   |  Reduce Output Operator 
[RS_19]
-                                                   |     key expressions:_col0 
(type: int)
-                                                   |     Map-reduce partition 
columns:_col0 (type: int)
-                                                   |     sort order:+
-                                                   |     Statistics:Num rows: 
462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                                   |     value 
expressions:_col1 (type: string), _col2 (type: string), _col3 (type: string), 
_col4 (type: string)
-                                                   |     Select Operator 
[SEL_11]
-                                                   |        
outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
-                                                   |        Statistics:Num 
rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                                   |        Filter Operator 
[FIL_51]
-                                                   |           
predicate:i_item_sk is not null (type: boolean)
-                                                   |           Statistics:Num 
rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                                   |           TableScan [TS_9]
-                                                   |              alias:item
-                                                   |              
Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column 
stats: NONE
-                                                   |<-Reducer 3 [SIMPLE_EDGE]
-                                                      Reduce Output Operator 
[RS_18]
-                                                         key expressions:_col1 
(type: int)
-                                                         Map-reduce partition 
columns:_col1 (type: int)
-                                                         sort order:+
-                                                         Statistics:Num rows: 
44193 Data size: 49453132 Basic stats: COMPLETE Column stats: NONE
-                                                         value 
expressions:_col3 (type: int), _col4 (type: decimal(7,2)), _col7 (type: int), 
_col8 (type: int), _col9 (type: int), _col11 (type: string)
-                                                         Merge Join Operator 
[MERGEJOIN_53]
-                                                         |  condition 
map:[{"":"Inner Join 0 to 1"}]
-                                                         |  keys:{"0":"_col2 
(type: int)","1":"_col0 (type: int)"}
-                                                         |  
outputColumnNames:["_col1","_col3","_col4","_col7","_col8","_col9","_col11"]
-                                                         |  Statistics:Num 
rows: 44193 Data size: 49453132 Basic stats: COMPLETE Column stats: NONE
-                                                         |<-Map 9 [SIMPLE_EDGE]
-                                                         |  Reduce Output 
Operator [RS_16]
-                                                         |     key 
expressions:_col0 (type: int)
-                                                         |     Map-reduce 
partition columns:_col0 (type: int)
-                                                         |     sort order:+
-                                                         |     Statistics:Num 
rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column stats: NONE
-                                                         |     value 
expressions:_col1 (type: string)
-                                                         |     Select Operator 
[SEL_8]
-                                                         |        
outputColumnNames:["_col0","_col1"]
-                                                         |        
Statistics:Num rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column 
stats: NONE
-                                                         |        Filter 
Operator [FIL_50]
-                                                         |           
predicate:s_store_sk is not null (type: boolean)
-                                                         |           
Statistics:Num rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column 
stats: NONE
-                                                         |           TableScan 
[TS_6]
-                                                         |              
alias:store
-                                                         |              
Statistics:Num rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column 
stats: NONE
-                                                         |<-Reducer 2 
[SIMPLE_EDGE]
-                                                            Reduce Output 
Operator [RS_15]
-                                                               key 
expressions:_col2 (type: int)
-                                                               Map-reduce 
partition columns:_col2 (type: int)
-                                                               sort order:+
-                                                               Statistics:Num 
rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                                               value 
expressions:_col1 (type: int), _col3 (type: int), _col4 (type: decimal(7,2)), 
_col7 (type: int), _col8 (type: int), _col9 (type: int)
-                                                               Merge Join 
Operator [MERGEJOIN_52]
-                                                               |  condition 
map:[{"":"Inner Join 0 to 1"}]
-                                                               |  
keys:{"0":"_col0 (type: int)","1":"_col0 (type: int)"}
-                                                               |  
outputColumnNames:["_col1","_col2","_col3","_col4","_col7","_col8","_col9"]
-                                                               |  
Statistics:Num rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column 
stats: NONE
-                                                               |<-Map 1 
[SIMPLE_EDGE]
-                                                               |  Reduce 
Output Operator [RS_12]
-                                                               |     key 
expressions:_col0 (type: int)
-                                                               |     
Map-reduce partition columns:_col0 (type: int)
-                                                               |     sort 
order:+
-                                                               |     
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                               |     value 
expressions:_col1 (type: int), _col2 (type: int), _col3 (type: int), _col4 
(type: decimal(7,2))
-                                                               |     Select 
Operator [SEL_2]
-                                                               |        
outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
-                                                               |        
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                               |        Filter 
Operator [FIL_48]
-                                                               |           
predicate:((ss_sold_date_sk is not null and ss_store_sk is not null) and 
ss_item_sk is not null) (type: boolean)
-                                                               |           
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                               |           
TableScan [TS_0]
-                                                               |              
alias:store_sales
-                                                               |              
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                               |<-Map 8 
[SIMPLE_EDGE]
-                                                                  Reduce 
Output Operator [RS_13]
-                                                                     key 
expressions:_col0 (type: int)
-                                                                     
Map-reduce partition columns:_col0 (type: int)
-                                                                     sort 
order:+
-                                                                     
Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column 
stats: NONE
-                                                                     value 
expressions:_col2 (type: int), _col3 (type: int), _col4 (type: int)
-                                                                     Select 
Operator [SEL_5]
-                                                                        
outputColumnNames:["_col0","_col2","_col3","_col4"]
-                                                                        
Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column 
stats: NONE
-                                                                        Filter 
Operator [FIL_49]
-                                                                           
predicate:(d_month_seq BETWEEN 1193 AND 1204 and d_date_sk is not null) (type: 
boolean)
-                                                                           
Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column 
stats: NONE
-                                                                           
TableScan [TS_3]
-                                                                              
alias:date_dim
-                                                                              
Statistics:Num rows: 73049 Data size: 81741831 Basic stats: COMPLETE Column 
stats: NONE
+  Fetch Operator
+    limit:100
+    Stage-1
+      Reducer 7
+      File Output Operator [FS_37]
+        Limit [LIM_36] (rows=100 width=1436)
+          Number of rows:100
+          Select Operator [SEL_35] (rows=762300 width=1436)
+            
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9"]
+          <-Reducer 6 [SIMPLE_EDGE]
+            SHUFFLE [RS_34]
+              Select Operator [SEL_30] (rows=762300 width=1436)
+                
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9"]
+                Filter Operator [FIL_47] (rows=762300 width=1436)
+                  predicate:(rank_window_0 <= 100)
+                  PTF Operator [PTF_29] (rows=2286900 width=1436)
+                    Function 
definitions:[{},{"name:":"windowingtablefunction","order 
by:":"_col16(DESC)","partition by:":"_col0"}]
+                    Select Operator [SEL_28] (rows=2286900 width=1436)
+                      
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col16"]
+                    <-Reducer 5 [SIMPLE_EDGE]
+                      SHUFFLE [RS_27]
+                        PartitionCols:_col0
+                        Select Operator [SEL_26] (rows=2286900 width=1436)
+                          
Output:["_col0","_col1","_col16","_col2","_col3","_col4","_col5","_col6","_col7"]
+                          Group By Operator [GBY_25] (rows=2286900 width=1436)
+                            
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col9"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0,
 KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6, KEY._col7, 
KEY._col8
+                          <-Reducer 4 [SIMPLE_EDGE]
+                            SHUFFLE [RS_24]
+                              PartitionCols:_col0, _col1, _col2, _col3, _col4, 
_col5, _col6, _col7, _col8
+                              Group By Operator [GBY_23] (rows=4573800 
width=1436)
+                                
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9"],aggregations:["sum(_col8)"],keys:_col0,
 _col1, _col2, _col3, _col4, _col5, _col6, _col7, '0'
+                                Select Operator [SEL_21] (rows=508200 
width=1436)
+                                  
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
+                                  Merge Join Operator [MERGEJOIN_54] 
(rows=508200 width=1436)
+                                    
Conds:RS_18._col1=RS_19._col0(Inner),Output:["_col3","_col4","_col7","_col8","_col9","_col11","_col13","_col14","_col15","_col16"]
+                                  <-Map 10 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_19]
+                                      PartitionCols:_col0
+                                      Select Operator [SEL_11] (rows=462000 
width=1436)
+                                        
Output:["_col0","_col1","_col2","_col3","_col4"]
+                                        Filter Operator [FIL_51] (rows=462000 
width=1436)
+                                          predicate:i_item_sk is not null
+                                          TableScan [TS_9] (rows=462000 
width=1436)
+                                            
default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_brand","i_class","i_category","i_product_name"]
+                                  <-Reducer 3 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_18]
+                                      PartitionCols:_col1
+                                      Merge Join Operator [MERGEJOIN_53] 
(rows=44193 width=1119)
+                                        
Conds:RS_15._col2=RS_16._col0(Inner),Output:["_col1","_col3","_col4","_col7","_col8","_col9","_col11"]
+                                      <-Map 9 [SIMPLE_EDGE]
+                                        SHUFFLE [RS_16]
+                                          PartitionCols:_col0
+                                          Select Operator [SEL_8] (rows=1704 
width=1910)
+                                            Output:["_col0","_col1"]
+                                            Filter Operator [FIL_50] 
(rows=1704 width=1910)
+                                              predicate:s_store_sk is not null
+                                              TableScan [TS_6] (rows=1704 
width=1910)
+                                                
default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_store_id"]
+                                      <-Reducer 2 [SIMPLE_EDGE]
+                                        SHUFFLE [RS_15]
+                                          PartitionCols:_col2
+                                          Merge Join Operator [MERGEJOIN_52] 
(rows=40176 width=1119)
+                                            
Conds:RS_12._col0=RS_13._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col7","_col8","_col9"]
+                                          <-Map 1 [SIMPLE_EDGE]
+                                            SHUFFLE [RS_12]
+                                              PartitionCols:_col0
+                                              Select Operator [SEL_2] (rows=1 
width=0)
+                                                
Output:["_col0","_col1","_col2","_col3","_col4"]
+                                                Filter Operator [FIL_48] 
(rows=1 width=0)
+                                                  predicate:((ss_sold_date_sk 
is not null and ss_store_sk is not null) and ss_item_sk is not null)
+                                                  TableScan [TS_0] (rows=1 
width=0)
+                                                    
default@store_sales,store_sales,Tbl:PARTIAL,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_store_sk","ss_quantity","ss_sales_price"]
+                                          <-Map 8 [SIMPLE_EDGE]
+                                            SHUFFLE [RS_13]
+                                              PartitionCols:_col0
+                                              Select Operator [SEL_5] 
(rows=36524 width=1119)
+                                                
Output:["_col0","_col2","_col3","_col4"]
+                                                Filter Operator [FIL_49] 
(rows=36524 width=1119)
+                                                  predicate:(d_month_seq 
BETWEEN 1193 AND 1204 and d_date_sk is not null)
+                                                  TableScan [TS_3] (rows=73049 
width=1119)
+                                                    
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_month_seq","d_year","d_moy","d_qoy"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/be9735e1/ql/src/test/results/clientpositive/perf/query68.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query68.q.out 
b/ql/src/test/results/clientpositive/perf/query68.q.out
index b1aa58a..7828cfc 100644
--- a/ql/src/test/results/clientpositive/perf/query68.q.out
+++ b/ql/src/test/results/clientpositive/perf/query68.q.out
@@ -15,227 +15,120 @@ Reducer 8 <- Map 15 (SIMPLE_EDGE), Reducer 7 (SIMPLE_EDGE)
 Reducer 9 <- Reducer 8 (SIMPLE_EDGE)
 
 Stage-0
-   Fetch Operator
-      limit:100
-      Stage-1
-         Reducer 9
-         File Output Operator [FS_50]
-            compressed:false
-            Statistics:Num rows: 100 Data size: 86000 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"}
-            Limit [LIM_49]
-               Number of rows:100
-               Statistics:Num rows: 100 Data size: 86000 Basic stats: COMPLETE 
Column stats: NONE
-               Select Operator [SEL_48]
-               |  
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-               |  Statistics:Num rows: 96800003 Data size: 83249958789 Basic 
stats: COMPLETE Column stats: NONE
-               |<-Reducer 8 [SIMPLE_EDGE]
-                  Reduce Output Operator [RS_47]
-                     key expressions:_col0 (type: string), _col4 (type: int)
-                     sort order:++
-                     Statistics:Num rows: 96800003 Data size: 83249958789 
Basic stats: COMPLETE Column stats: NONE
-                     value expressions:_col1 (type: string), _col2 (type: 
string), _col3 (type: string), _col5 (type: decimal(17,2)), _col6 (type: 
decimal(17,2)), _col7 (type: decimal(17,2))
-                     Select Operator [SEL_46]
-                        
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                        Statistics:Num rows: 96800003 Data size: 83249958789 
Basic stats: COMPLETE Column stats: NONE
-                        Filter Operator [FIL_45]
-                           predicate:(_col11 <> _col2) (type: boolean)
-                           Statistics:Num rows: 96800003 Data size: 
83249958789 Basic stats: COMPLETE Column stats: NONE
-                           Merge Join Operator [MERGEJOIN_90]
-                           |  condition map:[{"":"Inner Join 0 to 1"}]
-                           |  keys:{"0":"_col7 (type: int)","1":"_col0 (type: 
int)"}
-                           |  
outputColumnNames:["_col0","_col2","_col3","_col4","_col5","_col8","_col9","_col11"]
-                           |  Statistics:Num rows: 96800003 Data size: 
83249958789 Basic stats: COMPLETE Column stats: NONE
-                           |<-Map 15 [SIMPLE_EDGE]
-                           |  Reduce Output Operator [RS_43]
-                           |     key expressions:_col0 (type: int)
-                           |     Map-reduce partition columns:_col0 (type: int)
-                           |     sort order:+
-                           |     Statistics:Num rows: 40000000 Data size: 
40595195284 Basic stats: COMPLETE Column stats: NONE
-                           |     value expressions:_col1 (type: string)
-                           |     Select Operator [SEL_38]
-                           |        outputColumnNames:["_col0","_col1"]
-                           |        Statistics:Num rows: 40000000 Data size: 
40595195284 Basic stats: COMPLETE Column stats: NONE
-                           |        Filter Operator [FIL_84]
-                           |           predicate:ca_address_sk is not null 
(type: boolean)
-                           |           Statistics:Num rows: 40000000 Data 
size: 40595195284 Basic stats: COMPLETE Column stats: NONE
-                           |           TableScan [TS_36]
-                           |              alias:customer_address
-                           |              Statistics:Num rows: 40000000 Data 
size: 40595195284 Basic stats: COMPLETE Column stats: NONE
-                           |<-Reducer 7 [SIMPLE_EDGE]
-                              Reduce Output Operator [RS_42]
-                                 key expressions:_col7 (type: int)
-                                 Map-reduce partition columns:_col7 (type: int)
-                                 sort order:+
-                                 Statistics:Num rows: 88000001 Data size: 
75681779077 Basic stats: COMPLETE Column stats: NONE
-                                 value expressions:_col0 (type: int), _col2 
(type: string), _col3 (type: decimal(17,2)), _col4 (type: decimal(17,2)), _col5 
(type: decimal(17,2)), _col8 (type: string), _col9 (type: string)
-                                 Merge Join Operator [MERGEJOIN_89]
-                                 |  condition map:[{"":"Inner Join 0 to 1"}]
-                                 |  keys:{"0":"_col1 (type: int)","1":"_col0 
(type: int)"}
-                                 |  
outputColumnNames:["_col0","_col2","_col3","_col4","_col5","_col7","_col8","_col9"]
-                                 |  Statistics:Num rows: 88000001 Data size: 
75681779077 Basic stats: COMPLETE Column stats: NONE
-                                 |<-Map 14 [SIMPLE_EDGE]
-                                 |  Reduce Output Operator [RS_40]
-                                 |     key expressions:_col0 (type: int)
-                                 |     Map-reduce partition columns:_col0 
(type: int)
-                                 |     sort order:+
-                                 |     Statistics:Num rows: 80000000 Data 
size: 68801615852 Basic stats: COMPLETE Column stats: NONE
-                                 |     value expressions:_col1 (type: int), 
_col2 (type: string), _col3 (type: string)
-                                 |     Select Operator [SEL_35]
-                                 |        
outputColumnNames:["_col0","_col1","_col2","_col3"]
-                                 |        Statistics:Num rows: 80000000 Data 
size: 68801615852 Basic stats: COMPLETE Column stats: NONE
-                                 |        Filter Operator [FIL_83]
-                                 |           predicate:(c_customer_sk is not 
null and c_current_addr_sk is not null) (type: boolean)
-                                 |           Statistics:Num rows: 80000000 
Data size: 68801615852 Basic stats: COMPLETE Column stats: NONE
-                                 |           TableScan [TS_33]
-                                 |              alias:customer
-                                 |              Statistics:Num rows: 80000000 
Data size: 68801615852 Basic stats: COMPLETE Column stats: NONE
-                                 |<-Reducer 6 [SIMPLE_EDGE]
-                                    Reduce Output Operator [RS_39]
-                                       key expressions:_col1 (type: int)
-                                       Map-reduce partition columns:_col1 
(type: int)
-                                       sort order:+
-                                       Statistics:Num rows: 22000000 Data 
size: 22327357890 Basic stats: COMPLETE Column stats: NONE
-                                       value expressions:_col0 (type: int), 
_col2 (type: string), _col3 (type: decimal(17,2)), _col4 (type: decimal(17,2)), 
_col5 (type: decimal(17,2))
-                                       Select Operator [SEL_31]
-                                          
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                          Statistics:Num rows: 22000000 Data 
size: 22327357890 Basic stats: COMPLETE Column stats: NONE
-                                          Group By Operator [GBY_30]
-                                          |  
aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)"]
-                                          |  keys:KEY._col0 (type: int), 
KEY._col1 (type: int), KEY._col2 (type: int), KEY._col3 (type: string)
-                                          |  
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-                                          |  Statistics:Num rows: 22000000 
Data size: 22327357890 Basic stats: COMPLETE Column stats: NONE
-                                          |<-Reducer 5 [SIMPLE_EDGE]
-                                             Reduce Output Operator [RS_29]
-                                                key expressions:_col0 (type: 
int), _col1 (type: int), _col2 (type: int), _col3 (type: string)
-                                                Map-reduce partition 
columns:_col0 (type: int), _col1 (type: int), _col2 (type: int), _col3 (type: 
string)
-                                                sort order:++++
-                                                Statistics:Num rows: 44000000 
Data size: 44654715780 Basic stats: COMPLETE Column stats: NONE
-                                                value expressions:_col4 (type: 
decimal(17,2)), _col5 (type: decimal(17,2)), _col6 (type: decimal(17,2))
-                                                Group By Operator [GBY_28]
-                                                   
aggregations:["sum(_col6)","sum(_col7)","sum(_col8)"]
-                                                   keys:_col1 (type: int), 
_col3 (type: int), _col5 (type: int), _col18 (type: string)
-                                                   
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-                                                   Statistics:Num rows: 
44000000 Data size: 44654715780 Basic stats: COMPLETE Column stats: NONE
-                                                   Select Operator [SEL_27]
-                                                      
outputColumnNames:["_col1","_col3","_col5","_col18","_col6","_col7","_col8"]
-                                                      Statistics:Num rows: 
44000000 Data size: 44654715780 Basic stats: COMPLETE Column stats: NONE
-                                                      Merge Join Operator 
[MERGEJOIN_88]
-                                                      |  condition 
map:[{"":"Inner Join 0 to 1"}]
-                                                      |  keys:{"0":"_col3 
(type: int)","1":"_col0 (type: int)"}
-                                                      |  
outputColumnNames:["_col1","_col3","_col5","_col6","_col7","_col8","_col18"]
-                                                      |  Statistics:Num rows: 
44000000 Data size: 44654715780 Basic stats: COMPLETE Column stats: NONE
-                                                      |<-Map 13 [SIMPLE_EDGE]
-                                                      |  Reduce Output 
Operator [RS_25]
-                                                      |     key 
expressions:_col0 (type: int)
-                                                      |     Map-reduce 
partition columns:_col0 (type: int)
-                                                      |     sort order:+
-                                                      |     Statistics:Num 
rows: 40000000 Data size: 40595195284 Basic stats: COMPLETE Column stats: NONE
-                                                      |     value 
expressions:_col1 (type: string)
-                                                      |     Select Operator 
[SEL_14]
-                                                      |        
outputColumnNames:["_col0","_col1"]
-                                                      |        Statistics:Num 
rows: 40000000 Data size: 40595195284 Basic stats: COMPLETE Column stats: NONE
-                                                      |        Filter Operator 
[FIL_82]
-                                                      |           
predicate:ca_address_sk is not null (type: boolean)
-                                                      |           
Statistics:Num rows: 40000000 Data size: 40595195284 Basic stats: COMPLETE 
Column stats: NONE
-                                                      |           TableScan 
[TS_12]
-                                                      |              
alias:customer_address
-                                                      |              
Statistics:Num rows: 40000000 Data size: 40595195284 Basic stats: COMPLETE 
Column stats: NONE
-                                                      |<-Reducer 4 
[SIMPLE_EDGE]
-                                                         Reduce Output 
Operator [RS_24]
-                                                            key 
expressions:_col3 (type: int)
-                                                            Map-reduce 
partition columns:_col3 (type: int)
-                                                            sort order:+
-                                                            Statistics:Num 
rows: 24305 Data size: 27199223 Basic stats: COMPLETE Column stats: NONE
-                                                            value 
expressions:_col1 (type: int), _col5 (type: int), _col6 (type: decimal(7,2)), 
_col7 (type: decimal(7,2)), _col8 (type: decimal(7,2))
-                                                            Merge Join 
Operator [MERGEJOIN_87]
-                                                            |  condition 
map:[{"":"Inner Join 0 to 1"}]
-                                                            |  
keys:{"0":"_col2 (type: int)","1":"_col0 (type: int)"}
-                                                            |  
outputColumnNames:["_col1","_col3","_col5","_col6","_col7","_col8"]
-                                                            |  Statistics:Num 
rows: 24305 Data size: 27199223 Basic stats: COMPLETE Column stats: NONE
-                                                            |<-Map 12 
[SIMPLE_EDGE]
-                                                            |  Reduce Output 
Operator [RS_22]
-                                                            |     key 
expressions:_col0 (type: int)
-                                                            |     Map-reduce 
partition columns:_col0 (type: int)
-                                                            |     sort order:+
-                                                            |     
Statistics:Num rows: 7200 Data size: 770400 Basic stats: COMPLETE Column stats: 
NONE
-                                                            |     Select 
Operator [SEL_11]
-                                                            |        
outputColumnNames:["_col0"]
-                                                            |        
Statistics:Num rows: 7200 Data size: 770400 Basic stats: COMPLETE Column stats: 
NONE
-                                                            |        Filter 
Operator [FIL_81]
-                                                            |           
predicate:(((hd_dep_count = 4) or (hd_vehicle_count = 2)) and hd_demo_sk is not 
null) (type: boolean)
-                                                            |           
Statistics:Num rows: 7200 Data size: 770400 Basic stats: COMPLETE Column stats: 
NONE
-                                                            |           
TableScan [TS_9]
-                                                            |              
alias:household_demographics
-                                                            |              
Statistics:Num rows: 7200 Data size: 770400 Basic stats: COMPLETE Column stats: 
NONE
-                                                            |<-Reducer 3 
[SIMPLE_EDGE]
-                                                               Reduce Output 
Operator [RS_21]
-                                                                  key 
expressions:_col2 (type: int)
-                                                                  Map-reduce 
partition columns:_col2 (type: int)
-                                                                  sort order:+
-                                                                  
Statistics:Num rows: 22096 Data size: 24726566 Basic stats: COMPLETE Column 
stats: NONE
-                                                                  value 
expressions:_col1 (type: int), _col3 (type: int), _col5 (type: int), _col6 
(type: decimal(7,2)), _col7 (type: decimal(7,2)), _col8 (type: decimal(7,2))
-                                                                  Merge Join 
Operator [MERGEJOIN_86]
-                                                                  |  condition 
map:[{"":"Inner Join 0 to 1"}]
-                                                                  |  
keys:{"0":"_col4 (type: int)","1":"_col0 (type: int)"}
-                                                                  |  
outputColumnNames:["_col1","_col2","_col3","_col5","_col6","_col7","_col8"]
-                                                                  |  
Statistics:Num rows: 22096 Data size: 24726566 Basic stats: COMPLETE Column 
stats: NONE
-                                                                  |<-Map 11 
[SIMPLE_EDGE]
-                                                                  |  Reduce 
Output Operator [RS_19]
-                                                                  |     key 
expressions:_col0 (type: int)
-                                                                  |     
Map-reduce partition columns:_col0 (type: int)
-                                                                  |     sort 
order:+
-                                                                  |     
Statistics:Num rows: 852 Data size: 1628138 Basic stats: COMPLETE Column stats: 
NONE
-                                                                  |     Select 
Operator [SEL_8]
-                                                                  |        
outputColumnNames:["_col0"]
-                                                                  |        
Statistics:Num rows: 852 Data size: 1628138 Basic stats: COMPLETE Column stats: 
NONE
-                                                                  |        
Filter Operator [FIL_80]
-                                                                  |           
predicate:((s_city) IN ('Rosedale', 'Bethlehem') and s_store_sk is not null) 
(type: boolean)
-                                                                  |           
Statistics:Num rows: 852 Data size: 1628138 Basic stats: COMPLETE Column stats: 
NONE
-                                                                  |           
TableScan [TS_6]
-                                                                  |            
  alias:store
-                                                                  |            
  Statistics:Num rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column 
stats: NONE
-                                                                  |<-Reducer 2 
[SIMPLE_EDGE]
-                                                                     Reduce 
Output Operator [RS_18]
-                                                                        key 
expressions:_col4 (type: int)
-                                                                        
Map-reduce partition columns:_col4 (type: int)
-                                                                        sort 
order:+
-                                                                        
Statistics:Num rows: 20088 Data size: 22478696 Basic stats: COMPLETE Column 
stats: NONE
-                                                                        value 
expressions:_col1 (type: int), _col2 (type: int), _col3 (type: int), _col5 
(type: int), _col6 (type: decimal(7,2)), _col7 (type: decimal(7,2)), _col8 
(type: decimal(7,2))
-                                                                        Merge 
Join Operator [MERGEJOIN_85]
-                                                                        |  
condition map:[{"":"Inner Join 0 to 1"}]
-                                                                        |  
keys:{"0":"_col0 (type: int)","1":"_col0 (type: int)"}
-                                                                        |  
outputColumnNames:["_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
-                                                                        |  
Statistics:Num rows: 20088 Data size: 22478696 Basic stats: COMPLETE Column 
stats: NONE
-                                                                        |<-Map 
1 [SIMPLE_EDGE]
-                                                                        |  
Reduce Output Operator [RS_15]
-                                                                        |     
key expressions:_col0 (type: int)
-                                                                        |     
Map-reduce partition columns:_col0 (type: int)
-                                                                        |     
sort order:+
-                                                                        |     
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                        |     
value expressions:_col1 (type: int), _col2 (type: int), _col3 (type: int), 
_col4 (type: int), _col5 (type: int), _col6 (type: decimal(7,2)), _col7 (type: 
decimal(7,2)), _col8 (type: decimal(7,2))
-                                                                        |     
Select Operator [SEL_2]
-                                                                        |      
  
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
-                                                                        |      
  Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                        |      
  Filter Operator [FIL_78]
-                                                                        |      
     predicate:((((ss_sold_date_sk is not null and ss_store_sk is not null) and 
ss_hdemo_sk is not null) and ss_addr_sk is not null) and ss_customer_sk is not 
null) (type: boolean)
-                                                                        |      
     Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                        |      
     TableScan [TS_0]
-                                                                        |      
        alias:store_sales
-                                                                        |      
        Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: 
NONE
-                                                                        |<-Map 
10 [SIMPLE_EDGE]
-                                                                           
Reduce Output Operator [RS_16]
-                                                                              
key expressions:_col0 (type: int)
-                                                                              
Map-reduce partition columns:_col0 (type: int)
-                                                                              
sort order:+
-                                                                              
Statistics:Num rows: 18262 Data size: 20435178 Basic stats: COMPLETE Column 
stats: NONE
-                                                                              
Select Operator [SEL_5]
-                                                                               
  outputColumnNames:["_col0"]
-                                                                               
  Statistics:Num rows: 18262 Data size: 20435178 Basic stats: COMPLETE Column 
stats: NONE
-                                                                               
  Filter Operator [FIL_79]
-                                                                               
     predicate:((d_dom BETWEEN 1 AND 2 and (d_year) IN (1998, 1999, 2000)) and 
d_date_sk is not null) (type: boolean)
-                                                                               
     Statistics:Num rows: 18262 Data size: 20435178 Basic stats: COMPLETE 
Column stats: NONE
-                                                                               
     TableScan [TS_3]
-                                                                               
        alias:date_dim
-                                                                               
        Statistics:Num rows: 73049 Data size: 81741831 Basic stats: COMPLETE 
Column stats: NONE
+  Fetch Operator
+    limit:100
+    Stage-1
+      Reducer 9
+      File Output Operator [FS_50]
+        Limit [LIM_49] (rows=100 width=860)
+          Number of rows:100
+          Select Operator [SEL_48] (rows=96800003 width=860)
+            
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
+          <-Reducer 8 [SIMPLE_EDGE]
+            SHUFFLE [RS_47]
+              Select Operator [SEL_46] (rows=96800003 width=860)
+                
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
+                Filter Operator [FIL_45] (rows=96800003 width=860)
+                  predicate:(_col11 <> _col2)
+                  Merge Join Operator [MERGEJOIN_90] (rows=96800003 width=860)
+                    
Conds:RS_42._col7=RS_43._col0(Inner),Output:["_col0","_col2","_col3","_col4","_col5","_col8","_col9","_col11"]
+                  <-Map 15 [SIMPLE_EDGE]
+                    SHUFFLE [RS_43]
+                      PartitionCols:_col0
+                      Select Operator [SEL_38] (rows=40000000 width=1014)
+                        Output:["_col0","_col1"]
+                        Filter Operator [FIL_84] (rows=40000000 width=1014)
+                          predicate:ca_address_sk is not null
+                          TableScan [TS_36] (rows=40000000 width=1014)
+                            
default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_city"]
+                  <-Reducer 7 [SIMPLE_EDGE]
+                    SHUFFLE [RS_42]
+                      PartitionCols:_col7
+                      Merge Join Operator [MERGEJOIN_89] (rows=88000001 
width=860)
+                        
Conds:RS_39._col1=RS_40._col0(Inner),Output:["_col0","_col2","_col3","_col4","_col5","_col7","_col8","_col9"]
+                      <-Map 14 [SIMPLE_EDGE]
+                        SHUFFLE [RS_40]
+                          PartitionCols:_col0
+                          Select Operator [SEL_35] (rows=80000000 width=860)
+                            Output:["_col0","_col1","_col2","_col3"]
+                            Filter Operator [FIL_83] (rows=80000000 width=860)
+                              predicate:(c_customer_sk is not null and 
c_current_addr_sk is not null)
+                              TableScan [TS_33] (rows=80000000 width=860)
+                                
default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_current_addr_sk","c_first_name","c_last_name"]
+                      <-Reducer 6 [SIMPLE_EDGE]
+                        SHUFFLE [RS_39]
+                          PartitionCols:_col1
+                          Select Operator [SEL_31] (rows=22000000 width=1014)
+                            
Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                            Group By Operator [GBY_30] (rows=22000000 
width=1014)
+                              
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)"],keys:KEY._col0,
 KEY._col1, KEY._col2, KEY._col3
+                            <-Reducer 5 [SIMPLE_EDGE]
+                              SHUFFLE [RS_29]
+                                PartitionCols:_col0, _col1, _col2, _col3
+                                Group By Operator [GBY_28] (rows=44000000 
width=1014)
+                                  
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"],aggregations:["sum(_col6)","sum(_col7)","sum(_col8)"],keys:_col1,
 _col3, _col5, _col18
+                                  Select Operator [SEL_27] (rows=44000000 
width=1014)
+                                    
Output:["_col1","_col3","_col5","_col18","_col6","_col7","_col8"]
+                                    Merge Join Operator [MERGEJOIN_88] 
(rows=44000000 width=1014)
+                                      
Conds:RS_24._col3=RS_25._col0(Inner),Output:["_col1","_col3","_col5","_col6","_col7","_col8","_col18"]
+                                    <-Map 13 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_25]
+                                        PartitionCols:_col0
+                                        Select Operator [SEL_14] 
(rows=40000000 width=1014)
+                                          Output:["_col0","_col1"]
+                                          Filter Operator [FIL_82] 
(rows=40000000 width=1014)
+                                            predicate:ca_address_sk is not null
+                                            TableScan [TS_12] (rows=40000000 
width=1014)
+                                              
default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_city"]
+                                    <-Reducer 4 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_24]
+                                        PartitionCols:_col3
+                                        Merge Join Operator [MERGEJOIN_87] 
(rows=24305 width=1119)
+                                          
Conds:RS_21._col2=RS_22._col0(Inner),Output:["_col1","_col3","_col5","_col6","_col7","_col8"]
+                                        <-Map 12 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_22]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_11] 
(rows=7200 width=107)
+                                              Output:["_col0"]
+                                              Filter Operator [FIL_81] 
(rows=7200 width=107)
+                                                predicate:(((hd_dep_count = 4) 
or (hd_vehicle_count = 2)) and hd_demo_sk is not null)
+                                                TableScan [TS_9] (rows=7200 
width=107)
+                                                  
default@household_demographics,household_demographics,Tbl:COMPLETE,Col:NONE,Output:["hd_demo_sk","hd_dep_count","hd_vehicle_count"]
+                                        <-Reducer 3 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_21]
+                                            PartitionCols:_col2
+                                            Merge Join Operator [MERGEJOIN_86] 
(rows=22096 width=1119)
+                                              
Conds:RS_18._col4=RS_19._col0(Inner),Output:["_col1","_col2","_col3","_col5","_col6","_col7","_col8"]
+                                            <-Map 11 [SIMPLE_EDGE]
+                                              SHUFFLE [RS_19]
+                                                PartitionCols:_col0
+                                                Select Operator [SEL_8] 
(rows=852 width=1910)
+                                                  Output:["_col0"]
+                                                  Filter Operator [FIL_80] 
(rows=852 width=1910)
+                                                    predicate:((s_city) IN 
('Rosedale', 'Bethlehem') and s_store_sk is not null)
+                                                    TableScan [TS_6] 
(rows=1704 width=1910)
+                                                      
default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_city"]
+                                            <-Reducer 2 [SIMPLE_EDGE]
+                                              SHUFFLE [RS_18]
+                                                PartitionCols:_col4
+                                                Merge Join Operator 
[MERGEJOIN_85] (rows=20088 width=1119)
+                                                  
Conds:RS_15._col0=RS_16._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
+                                                <-Map 1 [SIMPLE_EDGE]
+                                                  SHUFFLE [RS_15]
+                                                    PartitionCols:_col0
+                                                    Select Operator [SEL_2] 
(rows=1 width=0)
+                                                      
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
+                                                      Filter Operator [FIL_78] 
(rows=1 width=0)
+                                                        
predicate:((((ss_sold_date_sk is not null and ss_store_sk is not null) and 
ss_hdemo_sk is not null) and ss_addr_sk is not null) and ss_customer_sk is not 
null)
+                                                        TableScan [TS_0] 
(rows=1 width=0)
+                                                          
default@store_sales,store_sales,Tbl:PARTIAL,Col:NONE,Output:["ss_sold_date_sk","ss_customer_sk","ss_hdemo_sk","ss_addr_sk","ss_store_sk","ss_ticket_number","ss_ext_sales_price","ss_ext_list_price","ss_ext_tax"]
+                                                <-Map 10 [SIMPLE_EDGE]
+                                                  SHUFFLE [RS_16]
+                                                    PartitionCols:_col0
+                                                    Select Operator [SEL_5] 
(rows=18262 width=1119)
+                                                      Output:["_col0"]
+                                                      Filter Operator [FIL_79] 
(rows=18262 width=1119)
+                                                        predicate:((d_dom 
BETWEEN 1 AND 2 and (d_year) IN (1998, 1999, 2000)) and d_date_sk is not null)
+                                                        TableScan [TS_3] 
(rows=73049 width=1119)
+                                                          
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_dom"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/be9735e1/ql/src/test/results/clientpositive/perf/query7.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query7.q.out 
b/ql/src/test/results/clientpositive/perf/query7.q.out
index a463a8b..b5a8254 100644
--- a/ql/src/test/results/clientpositive/perf/query7.q.out
+++ b/ql/src/test/results/clientpositive/perf/query7.q.out
@@ -13,162 +13,86 @@ Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
 Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
 
 Stage-0
-   Fetch Operator
-      limit:100
-      Stage-1
-         Reducer 7
-         File Output Operator [FS_35]
-            compressed:false
-            Statistics:Num rows: 100 Data size: 143600 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"}
-            Limit [LIM_34]
-               Number of rows:100
-               Statistics:Num rows: 100 Data size: 143600 Basic stats: 
COMPLETE Column stats: NONE
-               Select Operator [SEL_33]
-               |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
-               |  Statistics:Num rows: 279510 Data size: 401454093 Basic 
stats: COMPLETE Column stats: NONE
-               |<-Reducer 6 [SIMPLE_EDGE]
-                  Reduce Output Operator [RS_32]
-                     key expressions:_col0 (type: string)
-                     sort order:+
-                     Statistics:Num rows: 279510 Data size: 401454093 Basic 
stats: COMPLETE Column stats: NONE
-                     value expressions:_col1 (type: double), _col2 (type: 
decimal(11,6)), _col3 (type: decimal(11,6)), _col4 (type: decimal(11,6))
-                     Group By Operator [GBY_30]
-                     |  
aggregations:["avg(VALUE._col0)","avg(VALUE._col1)","avg(VALUE._col2)","avg(VALUE._col3)"]
-                     |  keys:KEY._col0 (type: string)
-                     |  
outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
-                     |  Statistics:Num rows: 279510 Data size: 401454093 Basic 
stats: COMPLETE Column stats: NONE
-                     |<-Reducer 5 [SIMPLE_EDGE]
-                        Reduce Output Operator [RS_29]
-                           key expressions:_col0 (type: string)
-                           Map-reduce partition columns:_col0 (type: string)
-                           sort order:+
-                           Statistics:Num rows: 559020 Data size: 802908187 
Basic stats: COMPLETE Column stats: NONE
-                           value expressions:_col1 (type: 
struct<count:bigint,sum:double,input:int>), _col2 (type: 
struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>), _col3 (type: 
struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>), _col4 (type: 
struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>)
-                           Group By Operator [GBY_28]
-                              
aggregations:["avg(_col4)","avg(_col5)","avg(_col7)","avg(_col6)"]
-                              keys:_col15 (type: string)
-                              
outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
-                              Statistics:Num rows: 559020 Data size: 802908187 
Basic stats: COMPLETE Column stats: NONE
-                              Select Operator [SEL_27]
-                                 
outputColumnNames:["_col15","_col4","_col5","_col7","_col6"]
-                                 Statistics:Num rows: 559020 Data size: 
802908187 Basic stats: COMPLETE Column stats: NONE
-                                 Merge Join Operator [MERGEJOIN_58]
-                                 |  condition map:[{"":"Inner Join 0 to 1"}]
-                                 |  keys:{"0":"_col3 (type: int)","1":"_col0 
(type: int)"}
-                                 |  
outputColumnNames:["_col4","_col5","_col6","_col7","_col15"]
-                                 |  Statistics:Num rows: 559020 Data size: 
802908187 Basic stats: COMPLETE Column stats: NONE
-                                 |<-Map 11 [SIMPLE_EDGE]
-                                 |  Reduce Output Operator [RS_25]
-                                 |     key expressions:_col0 (type: int)
-                                 |     Map-reduce partition columns:_col0 
(type: int)
-                                 |     sort order:+
-                                 |     Statistics:Num rows: 2300 Data size: 
2713420 Basic stats: COMPLETE Column stats: NONE
-                                 |     Select Operator [SEL_14]
-                                 |        outputColumnNames:["_col0"]
-                                 |        Statistics:Num rows: 2300 Data size: 
2713420 Basic stats: COMPLETE Column stats: NONE
-                                 |        Filter Operator [FIL_54]
-                                 |           predicate:(((p_channel_email = 
'N') or (p_channel_event = 'N')) and p_promo_sk is not null) (type: boolean)
-                                 |           Statistics:Num rows: 2300 Data 
size: 2713420 Basic stats: COMPLETE Column stats: NONE
-                                 |           TableScan [TS_12]
-                                 |              alias:promotion
-                                 |              Statistics:Num rows: 2300 Data 
size: 2713420 Basic stats: COMPLETE Column stats: NONE
-                                 |<-Reducer 4 [SIMPLE_EDGE]
-                                    Reduce Output Operator [RS_24]
-                                       key expressions:_col3 (type: int)
-                                       Map-reduce partition columns:_col3 
(type: int)
-                                       sort order:+
-                                       Statistics:Num rows: 508200 Data size: 
729916518 Basic stats: COMPLETE Column stats: NONE
-                                       value expressions:_col4 (type: int), 
_col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col7 (type: 
decimal(7,2)), _col15 (type: string)
-                                       Merge Join Operator [MERGEJOIN_57]
-                                       |  condition map:[{"":"Inner Join 0 to 
1"}]
-                                       |  keys:{"0":"_col1 (type: 
int)","1":"_col0 (type: int)"}
-                                       |  
outputColumnNames:["_col3","_col4","_col5","_col6","_col7","_col15"]
-                                       |  Statistics:Num rows: 508200 Data 
size: 729916518 Basic stats: COMPLETE Column stats: NONE
-                                       |<-Map 10 [SIMPLE_EDGE]
-                                       |  Reduce Output Operator [RS_22]
-                                       |     key expressions:_col0 (type: int)
-                                       |     Map-reduce partition 
columns:_col0 (type: int)
-                                       |     sort order:+
-                                       |     Statistics:Num rows: 462000 Data 
size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                       |     value expressions:_col1 (type: 
string)
-                                       |     Select Operator [SEL_11]
-                                       |        
outputColumnNames:["_col0","_col1"]
-                                       |        Statistics:Num rows: 462000 
Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                       |        Filter Operator [FIL_53]
-                                       |           predicate:i_item_sk is not 
null (type: boolean)
-                                       |           Statistics:Num rows: 462000 
Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                       |           TableScan [TS_9]
-                                       |              alias:item
-                                       |              Statistics:Num rows: 
462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                       |<-Reducer 3 [SIMPLE_EDGE]
-                                          Reduce Output Operator [RS_21]
-                                             key expressions:_col1 (type: int)
-                                             Map-reduce partition 
columns:_col1 (type: int)
-                                             sort order:+
-                                             Statistics:Num rows: 40176 Data 
size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                             value expressions:_col3 (type: 
int), _col4 (type: int), _col5 (type: decimal(7,2)), _col6 (type: 
decimal(7,2)), _col7 (type: decimal(7,2))
-                                             Merge Join Operator [MERGEJOIN_56]
-                                             |  condition map:[{"":"Inner Join 
0 to 1"}]
-                                             |  keys:{"0":"_col0 (type: 
int)","1":"_col0 (type: int)"}
-                                             |  
outputColumnNames:["_col1","_col3","_col4","_col5","_col6","_col7"]
-                                             |  Statistics:Num rows: 40176 
Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                             |<-Map 9 [SIMPLE_EDGE]
-                                             |  Reduce Output Operator [RS_19]
-                                             |     key expressions:_col0 
(type: int)
-                                             |     Map-reduce partition 
columns:_col0 (type: int)
-                                             |     sort order:+
-                                             |     Statistics:Num rows: 36524 
Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                             |     Select Operator [SEL_8]
-                                             |        
outputColumnNames:["_col0"]
-                                             |        Statistics:Num rows: 
36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                             |        Filter Operator [FIL_52]
-                                             |           predicate:((d_year = 
1998) and d_date_sk is not null) (type: boolean)
-                                             |           Statistics:Num rows: 
36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                             |           TableScan [TS_6]
-                                             |              alias:date_dim
-                                             |              Statistics:Num 
rows: 73049 Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
-                                             |<-Reducer 2 [SIMPLE_EDGE]
-                                                Reduce Output Operator [RS_18]
-                                                   key expressions:_col0 
(type: int)
-                                                   Map-reduce partition 
columns:_col0 (type: int)
-                                                   sort order:+
-                                                   Statistics:Num rows: 2722 
Data size: 986020 Basic stats: COMPLETE Column stats: NONE
-                                                   value expressions:_col1 
(type: int), _col3 (type: int), _col4 (type: int), _col5 (type: decimal(7,2)), 
_col6 (type: decimal(7,2)), _col7 (type: decimal(7,2))
-                                                   Merge Join Operator 
[MERGEJOIN_55]
-                                                   |  condition 
map:[{"":"Inner Join 0 to 1"}]
-                                                   |  keys:{"0":"_col2 (type: 
int)","1":"_col0 (type: int)"}
-                                                   |  
outputColumnNames:["_col0","_col1","_col3","_col4","_col5","_col6","_col7"]
-                                                   |  Statistics:Num rows: 
2722 Data size: 986020 Basic stats: COMPLETE Column stats: NONE
-                                                   |<-Map 1 [SIMPLE_EDGE]
-                                                   |  Reduce Output Operator 
[RS_15]
-                                                   |     key expressions:_col2 
(type: int)
-                                                   |     Map-reduce partition 
columns:_col2 (type: int)
-                                                   |     sort order:+
-                                                   |     Statistics:Num rows: 
1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                   |     value 
expressions:_col0 (type: int), _col1 (type: int), _col3 (type: int), _col4 
(type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col7 
(type: decimal(7,2))
-                                                   |     Select Operator 
[SEL_2]
-                                                   |        
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                                                   |        Statistics:Num 
rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                   |        Filter Operator 
[FIL_50]
-                                                   |           
predicate:(((ss_cdemo_sk is not null and ss_sold_date_sk is not null) and 
ss_item_sk is not null) and ss_promo_sk is not null) (type: boolean)
-                                                   |           Statistics:Num 
rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                   |           TableScan [TS_0]
-                                                   |              
alias:store_sales
-                                                   |              
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                   |<-Map 8 [SIMPLE_EDGE]
-                                                      Reduce Output Operator 
[RS_16]
-                                                         key expressions:_col0 
(type: int)
-                                                         Map-reduce partition 
columns:_col0 (type: int)
-                                                         sort order:+
-                                                         Statistics:Num rows: 
2475 Data size: 896382 Basic stats: COMPLETE Column stats: NONE
-                                                         Select Operator 
[SEL_5]
-                                                            
outputColumnNames:["_col0"]
-                                                            Statistics:Num 
rows: 2475 Data size: 896382 Basic stats: COMPLETE Column stats: NONE
-                                                            Filter Operator 
[FIL_51]
-                                                               
predicate:((((cd_gender = 'F') and (cd_marital_status = 'W')) and 
(cd_education_status = 'Primary')) and cd_demo_sk is not null) (type: boolean)
-                                                               Statistics:Num 
rows: 2475 Data size: 896382 Basic stats: COMPLETE Column stats: NONE
-                                                               TableScan [TS_3]
-                                                                  
alias:customer_demographics
-                                                                  
Statistics:Num rows: 19800 Data size: 7171059 Basic stats: COMPLETE Column 
stats: NONE
+  Fetch Operator
+    limit:100
+    Stage-1
+      Reducer 7
+      File Output Operator [FS_35]
+        Limit [LIM_34] (rows=100 width=1436)
+          Number of rows:100
+          Select Operator [SEL_33] (rows=279510 width=1436)
+            Output:["_col0","_col1","_col2","_col3","_col4"]
+          <-Reducer 6 [SIMPLE_EDGE]
+            SHUFFLE [RS_32]
+              Group By Operator [GBY_30] (rows=279510 width=1436)
+                
Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["avg(VALUE._col0)","avg(VALUE._col1)","avg(VALUE._col2)","avg(VALUE._col3)"],keys:KEY._col0
+              <-Reducer 5 [SIMPLE_EDGE]
+                SHUFFLE [RS_29]
+                  PartitionCols:_col0
+                  Group By Operator [GBY_28] (rows=559020 width=1436)
+                    
Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["avg(_col4)","avg(_col5)","avg(_col7)","avg(_col6)"],keys:_col15
+                    Select Operator [SEL_27] (rows=559020 width=1436)
+                      Output:["_col15","_col4","_col5","_col7","_col6"]
+                      Merge Join Operator [MERGEJOIN_58] (rows=559020 
width=1436)
+                        
Conds:RS_24._col3=RS_25._col0(Inner),Output:["_col4","_col5","_col6","_col7","_col15"]
+                      <-Map 11 [SIMPLE_EDGE]
+                        SHUFFLE [RS_25]
+                          PartitionCols:_col0
+                          Select Operator [SEL_14] (rows=2300 width=1179)
+                            Output:["_col0"]
+                            Filter Operator [FIL_54] (rows=2300 width=1179)
+                              predicate:(((p_channel_email = 'N') or 
(p_channel_event = 'N')) and p_promo_sk is not null)
+                              TableScan [TS_12] (rows=2300 width=1179)
+                                
default@promotion,promotion,Tbl:COMPLETE,Col:NONE,Output:["p_promo_sk","p_channel_email","p_channel_event"]
+                      <-Reducer 4 [SIMPLE_EDGE]
+                        SHUFFLE [RS_24]
+                          PartitionCols:_col3
+                          Merge Join Operator [MERGEJOIN_57] (rows=508200 
width=1436)
+                            
Conds:RS_21._col1=RS_22._col0(Inner),Output:["_col3","_col4","_col5","_col6","_col7","_col15"]
+                          <-Map 10 [SIMPLE_EDGE]
+                            SHUFFLE [RS_22]
+                              PartitionCols:_col0
+                              Select Operator [SEL_11] (rows=462000 width=1436)
+                                Output:["_col0","_col1"]
+                                Filter Operator [FIL_53] (rows=462000 
width=1436)
+                                  predicate:i_item_sk is not null
+                                  TableScan [TS_9] (rows=462000 width=1436)
+                                    
default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id"]
+                          <-Reducer 3 [SIMPLE_EDGE]
+                            SHUFFLE [RS_21]
+                              PartitionCols:_col1
+                              Merge Join Operator [MERGEJOIN_56] (rows=40176 
width=1119)
+                                
Conds:RS_18._col0=RS_19._col0(Inner),Output:["_col1","_col3","_col4","_col5","_col6","_col7"]
+                              <-Map 9 [SIMPLE_EDGE]
+                                SHUFFLE [RS_19]
+                                  PartitionCols:_col0
+                                  Select Operator [SEL_8] (rows=36524 
width=1119)
+                                    Output:["_col0"]
+                                    Filter Operator [FIL_52] (rows=36524 
width=1119)
+                                      predicate:((d_year = 1998) and d_date_sk 
is not null)
+                                      TableScan [TS_6] (rows=73049 width=1119)
+                                        
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
+                              <-Reducer 2 [SIMPLE_EDGE]
+                                SHUFFLE [RS_18]
+                                  PartitionCols:_col0
+                                  Merge Join Operator [MERGEJOIN_55] 
(rows=2722 width=362)
+                                    
Conds:RS_15._col2=RS_16._col0(Inner),Output:["_col0","_col1","_col3","_col4","_col5","_col6","_col7"]
+                                  <-Map 1 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_15]
+                                      PartitionCols:_col2
+                                      Select Operator [SEL_2] (rows=1 width=0)
+                                        
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
+                                        Filter Operator [FIL_50] (rows=1 
width=0)
+                                          predicate:(((ss_cdemo_sk is not null 
and ss_sold_date_sk is not null) and ss_item_sk is not null) and ss_promo_sk is 
not null)
+                                          TableScan [TS_0] (rows=1 width=0)
+                                            
default@store_sales,store_sales,Tbl:PARTIAL,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_cdemo_sk","ss_promo_sk","ss_quantity","ss_list_price","ss_sales_price","ss_coupon_amt"]
+                                  <-Map 8 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_16]
+                                      PartitionCols:_col0
+                                      Select Operator [SEL_5] (rows=2475 
width=362)
+                                        Output:["_col0"]
+                                        Filter Operator [FIL_51] (rows=2475 
width=362)
+                                          predicate:((((cd_gender = 'F') and 
(cd_marital_status = 'W')) and (cd_education_status = 'Primary')) and 
cd_demo_sk is not null)
+                                          TableScan [TS_3] (rows=19800 
width=362)
+                                            
default@customer_demographics,customer_demographics,Tbl:COMPLETE,Col:NONE,Output:["cd_demo_sk","cd_gender","cd_marital_status","cd_education_status"]
 

Reply via email to