http://git-wip-us.apache.org/repos/asf/hive/blob/be9735e1/ql/src/test/results/clientpositive/perf/query51.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query51.q.out 
b/ql/src/test/results/clientpositive/perf/query51.q.out
index f57af2c..f568ead 100644
--- a/ql/src/test/results/clientpositive/perf/query51.q.out
+++ b/ql/src/test/results/clientpositive/perf/query51.q.out
@@ -96,188 +96,100 @@ Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
 Reducer 9 <- Map 11 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
 
 Stage-0
-   Fetch Operator
-      limit:100
-      Stage-1
-         Reducer 6
-         File Output Operator [FS_53]
-            compressed:false
-            Statistics:Num rows: 100 Data size: 111900 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_52]
-               Number of rows:100
-               Statistics:Num rows: 100 Data size: 111900 Basic stats: 
COMPLETE Column stats: NONE
-               Select Operator [SEL_51]
-               |  
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
-               |  Statistics:Num rows: 7365 Data size: 8241815 Basic stats: 
COMPLETE Column stats: NONE
-               |<-Reducer 5 [SIMPLE_EDGE]
-                  Reduce Output Operator [RS_50]
-                     key expressions:_col0 (type: int), _col1 (type: string)
-                     sort order:++
-                     Statistics:Num rows: 7365 Data size: 8241815 Basic stats: 
COMPLETE Column stats: NONE
-                     value expressions:_col2 (type: decimal(27,2)), _col3 
(type: decimal(27,2)), _col4 (type: decimal(27,2)), _col5 (type: decimal(27,2))
-                     Select Operator [SEL_46]
-                        
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                        Statistics:Num rows: 7365 Data size: 8241815 Basic 
stats: COMPLETE Column stats: NONE
-                        Filter Operator [FIL_58]
-                           predicate:(max_window_0 > max_window_1) (type: 
boolean)
-                           Statistics:Num rows: 7365 Data size: 8241815 Basic 
stats: COMPLETE Column stats: NONE
-                           PTF Operator [PTF_45]
-                              Function definitions:[{"Input 
definition":{"type:":"WINDOWING"}},{"name:":"windowingtablefunction","order 
by:":"CASE WHEN (_col1 is not null) THEN (_col1) ELSE (_col4) END","partition 
by:":"CASE WHEN (_col0 is not null) THEN (_col0) ELSE (_col3) END"}]
-                              Statistics:Num rows: 22096 Data size: 24726566 
Basic stats: COMPLETE Column stats: NONE
-                              Select Operator [SEL_44]
-                              |  
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                              |  Statistics:Num rows: 22096 Data size: 
24726566 Basic stats: COMPLETE Column stats: NONE
-                              |<-Reducer 4 [SIMPLE_EDGE]
-                                 Reduce Output Operator [RS_43]
-                                    key expressions:CASE WHEN (_col0 is not 
null) THEN (_col0) ELSE (_col3) END (type: int), CASE WHEN (_col1 is not null) 
THEN (_col1) ELSE (_col4) END (type: string)
-                                    Map-reduce partition columns:CASE WHEN 
(_col0 is not null) THEN (_col0) ELSE (_col3) END (type: int)
-                                    sort order:++
-                                    Statistics:Num rows: 22096 Data size: 
24726566 Basic stats: COMPLETE Column stats: NONE
-                                    value expressions:_col0 (type: int), _col1 
(type: string), _col2 (type: decimal(27,2)), _col3 (type: int), _col4 (type: 
string), _col5 (type: decimal(27,2))
-                                    Merge Join Operator [MERGEJOIN_67]
-                                    |  condition map:[{"":"Outer Join 0 to 1"}]
-                                    |  keys:{"0":"_col0 (type: int), _col1 
(type: string)","1":"_col0 (type: int), _col1 (type: string)"}
-                                    |  
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                    |  Statistics:Num rows: 22096 Data size: 
24726566 Basic stats: COMPLETE Column stats: NONE
-                                    |<-Reducer 10 [SIMPLE_EDGE]
-                                    |  Reduce Output Operator [RS_41]
-                                    |     key expressions:_col0 (type: int), 
_col1 (type: string)
-                                    |     Map-reduce partition columns:_col0 
(type: int), _col1 (type: string)
-                                    |     sort order:++
-                                    |     Statistics:Num rows: 20088 Data 
size: 22478696 Basic stats: COMPLETE Column stats: NONE
-                                    |     value expressions:_col2 (type: 
decimal(27,2))
-                                    |     Select Operator [SEL_37]
-                                    |        
outputColumnNames:["_col0","_col1","_col2"]
-                                    |        Statistics:Num rows: 20088 Data 
size: 22478696 Basic stats: COMPLETE Column stats: NONE
-                                    |        PTF Operator [PTF_36]
-                                    |           Function definitions:[{"Input 
definition":{"type:":"WINDOWING"}},{"name:":"windowingtablefunction","order 
by:":"_col1","partition by:":"_col0"}]
-                                    |           Statistics:Num rows: 20088 
Data size: 22478696 Basic stats: COMPLETE Column stats: NONE
-                                    |           Group By Operator [GBY_32]
-                                    |           |  
aggregations:["sum(VALUE._col0)"]
-                                    |           |  keys:KEY._col0 (type: int), 
KEY._col1 (type: string)
-                                    |           |  
outputColumnNames:["_col0","_col1","_col2"]
-                                    |           |  Statistics:Num rows: 20088 
Data size: 22478696 Basic stats: COMPLETE Column stats: NONE
-                                    |           |<-Reducer 9 [SIMPLE_EDGE]
-                                    |              Reduce Output Operator 
[RS_31]
-                                    |                 key expressions:_col0 
(type: int), _col1 (type: string)
-                                    |                 Map-reduce partition 
columns:_col0 (type: int)
-                                    |                 sort order:++
-                                    |                 Statistics:Num rows: 
40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                    |                 value expressions:_col2 
(type: decimal(17,2))
-                                    |                 Group By Operator 
[GBY_30]
-                                    |                    
aggregations:["sum(_col2)"]
-                                    |                    keys:_col1 (type: 
int), _col4 (type: string)
-                                    |                    
outputColumnNames:["_col0","_col1","_col2"]
-                                    |                    Statistics:Num rows: 
40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                    |                    Select Operator 
[SEL_29]
-                                    |                       
outputColumnNames:["_col1","_col4","_col2"]
-                                    |                       Statistics:Num 
rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                    |                       Merge Join 
Operator [MERGEJOIN_66]
-                                    |                       |  condition 
map:[{"":"Inner Join 0 to 1"}]
-                                    |                       |  
keys:{"0":"_col0 (type: int)","1":"_col0 (type: int)"}
-                                    |                       |  
outputColumnNames:["_col1","_col2","_col4"]
-                                    |                       |  Statistics:Num 
rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                    |                       |<-Map 11 
[SIMPLE_EDGE]
-                                    |                       |  Reduce Output 
Operator [RS_27]
-                                    |                       |     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:_col1 (type: string)
-                                    |                       |     Select 
Operator [SEL_25]
-                                    |                       |        
outputColumnNames:["_col0","_col1"]
-                                    |                       |        
Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column 
stats: NONE
-                                    |                       |        Filter 
Operator [FIL_62]
-                                    |                       |           
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_23]
-                                    |                       |              
alias:date_dim
-                                    |                       |              
Statistics:Num rows: 73049 Data size: 81741831 Basic stats: COMPLETE Column 
stats: NONE
-                                    |                       |<-Map 8 
[SIMPLE_EDGE]
-                                    |                          Reduce Output 
Operator [RS_26]
-                                    |                             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: decimal(7,2))
-                                    |                             Select 
Operator [SEL_22]
-                                    |                                
outputColumnNames:["_col0","_col1","_col2"]
-                                    |                                
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                    |                                Filter 
Operator [FIL_61]
-                                    |                                   
predicate:(ss_item_sk is not null and ss_sold_date_sk is not null) (type: 
boolean)
-                                    |                                   
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                    |                                   
TableScan [TS_20]
-                                    |                                      
alias:store_sales
-                                    |                                      
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                    |<-Reducer 3 [SIMPLE_EDGE]
-                                       Reduce Output Operator [RS_40]
-                                          key expressions:_col0 (type: int), 
_col1 (type: string)
-                                          Map-reduce partition columns:_col0 
(type: int), _col1 (type: string)
-                                          sort order:++
-                                          Statistics:Num rows: 20088 Data 
size: 22478696 Basic stats: COMPLETE Column stats: NONE
-                                          value expressions:_col2 (type: 
decimal(27,2))
-                                          Select Operator [SEL_17]
-                                             
outputColumnNames:["_col0","_col1","_col2"]
-                                             Statistics:Num rows: 20088 Data 
size: 22478696 Basic stats: COMPLETE Column stats: NONE
-                                             PTF Operator [PTF_16]
-                                                Function definitions:[{"Input 
definition":{"type:":"WINDOWING"}},{"name:":"windowingtablefunction","order 
by:":"_col1","partition by:":"_col0"}]
-                                                Statistics:Num rows: 20088 
Data size: 22478696 Basic stats: COMPLETE Column stats: NONE
-                                                Group By Operator [GBY_12]
-                                                |  
aggregations:["sum(VALUE._col0)"]
-                                                |  keys:KEY._col0 (type: int), 
KEY._col1 (type: string)
-                                                |  
outputColumnNames:["_col0","_col1","_col2"]
-                                                |  Statistics:Num rows: 20088 
Data size: 22478696 Basic stats: COMPLETE Column stats: NONE
-                                                |<-Reducer 2 [SIMPLE_EDGE]
-                                                   Reduce Output Operator 
[RS_11]
-                                                      key expressions:_col0 
(type: int), _col1 (type: string)
-                                                      Map-reduce partition 
columns:_col0 (type: int)
-                                                      sort order:++
-                                                      Statistics:Num rows: 
40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                                      value expressions:_col2 
(type: decimal(17,2))
-                                                      Group By Operator 
[GBY_10]
-                                                         
aggregations:["sum(_col2)"]
-                                                         keys:_col1 (type: 
int), _col4 (type: string)
-                                                         
outputColumnNames:["_col0","_col1","_col2"]
-                                                         Statistics:Num rows: 
40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                                         Select Operator 
[SEL_9]
-                                                            
outputColumnNames:["_col1","_col4","_col2"]
-                                                            Statistics:Num 
rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                                            Merge Join 
Operator [MERGEJOIN_65]
-                                                            |  condition 
map:[{"":"Inner Join 0 to 1"}]
-                                                            |  
keys:{"0":"_col0 (type: int)","1":"_col0 (type: int)"}
-                                                            |  
outputColumnNames:["_col1","_col2","_col4"]
-                                                            |  Statistics:Num 
rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                                            |<-Map 1 
[SIMPLE_EDGE]
-                                                            |  Reduce Output 
Operator [RS_6]
-                                                            |     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: decimal(7,2))
-                                                            |     Select 
Operator [SEL_2]
-                                                            |        
outputColumnNames:["_col0","_col1","_col2"]
-                                                            |        
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                            |        Filter 
Operator [FIL_59]
-                                                            |           
predicate:(ws_item_sk is not null and ws_sold_date_sk is not null) (type: 
boolean)
-                                                            |           
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                            |           
TableScan [TS_0]
-                                                            |              
alias:web_sales
-                                                            |              
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                            |<-Map 7 
[SIMPLE_EDGE]
-                                                               Reduce Output 
Operator [RS_7]
-                                                                  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:_col1 (type: string)
-                                                                  Select 
Operator [SEL_5]
-                                                                     
outputColumnNames:["_col0","_col1"]
-                                                                     
Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column 
stats: NONE
-                                                                     Filter 
Operator [FIL_60]
-                                                                        
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 6
+      File Output Operator [FS_53]
+        Limit [LIM_52] (rows=100 width=1119)
+          Number of rows:100
+          Select Operator [SEL_51] (rows=7365 width=1119)
+            Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+          <-Reducer 5 [SIMPLE_EDGE]
+            SHUFFLE [RS_50]
+              Select Operator [SEL_46] (rows=7365 width=1119)
+                Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                Filter Operator [FIL_58] (rows=7365 width=1119)
+                  predicate:(max_window_0 > max_window_1)
+                  PTF Operator [PTF_45] (rows=22096 width=1119)
+                    Function 
definitions:[{},{"name:":"windowingtablefunction","order by:":"CASE WHEN (_col1 
is not null) THEN (_col1) ELSE (_col4) END","partition by:":"CASE WHEN (_col0 
is not null) THEN (_col0) ELSE (_col3) END"}]
+                    Select Operator [SEL_44] (rows=22096 width=1119)
+                      Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                    <-Reducer 4 [SIMPLE_EDGE]
+                      SHUFFLE [RS_43]
+                        PartitionCols:CASE WHEN (_col0 is not null) THEN 
(_col0) ELSE (_col3) END
+                        Merge Join Operator [MERGEJOIN_67] (rows=22096 
width=1119)
+                          Conds:RS_40._col0, _col1=RS_41._col0, 
_col1(Outer),Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                        <-Reducer 10 [SIMPLE_EDGE]
+                          SHUFFLE [RS_41]
+                            PartitionCols:_col0, _col1
+                            Select Operator [SEL_37] (rows=20088 width=1119)
+                              Output:["_col0","_col1","_col2"]
+                              PTF Operator [PTF_36] (rows=20088 width=1119)
+                                Function 
definitions:[{},{"name:":"windowingtablefunction","order 
by:":"_col1","partition by:":"_col0"}]
+                                Group By Operator [GBY_32] (rows=20088 
width=1119)
+                                  
Output:["_col0","_col1","_col2"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0,
 KEY._col1
+                                <-Reducer 9 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_31]
+                                    PartitionCols:_col0
+                                    Group By Operator [GBY_30] (rows=40176 
width=1119)
+                                      
Output:["_col0","_col1","_col2"],aggregations:["sum(_col2)"],keys:_col1, _col4
+                                      Select Operator [SEL_29] (rows=40176 
width=1119)
+                                        Output:["_col1","_col4","_col2"]
+                                        Merge Join Operator [MERGEJOIN_66] 
(rows=40176 width=1119)
+                                          
Conds:RS_26._col0=RS_27._col0(Inner),Output:["_col1","_col2","_col4"]
+                                        <-Map 11 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_27]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_25] 
(rows=36524 width=1119)
+                                              Output:["_col0","_col1"]
+                                              Filter Operator [FIL_62] 
(rows=36524 width=1119)
+                                                predicate:(d_month_seq BETWEEN 
1193 AND 1204 and d_date_sk is not null)
+                                                TableScan [TS_23] (rows=73049 
width=1119)
+                                                  
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_date","d_month_seq"]
+                                        <-Map 8 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_26]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_22] (rows=1 
width=0)
+                                              Output:["_col0","_col1","_col2"]
+                                              Filter Operator [FIL_61] (rows=1 
width=0)
+                                                predicate:(ss_item_sk is not 
null and ss_sold_date_sk is not null)
+                                                TableScan [TS_20] (rows=1 
width=0)
+                                                  
default@store_sales,store_sales,Tbl:PARTIAL,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_sales_price"]
+                        <-Reducer 3 [SIMPLE_EDGE]
+                          SHUFFLE [RS_40]
+                            PartitionCols:_col0, _col1
+                            Select Operator [SEL_17] (rows=20088 width=1119)
+                              Output:["_col0","_col1","_col2"]
+                              PTF Operator [PTF_16] (rows=20088 width=1119)
+                                Function 
definitions:[{},{"name:":"windowingtablefunction","order 
by:":"_col1","partition by:":"_col0"}]
+                                Group By Operator [GBY_12] (rows=20088 
width=1119)
+                                  
Output:["_col0","_col1","_col2"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0,
 KEY._col1
+                                <-Reducer 2 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_11]
+                                    PartitionCols:_col0
+                                    Group By Operator [GBY_10] (rows=40176 
width=1119)
+                                      
Output:["_col0","_col1","_col2"],aggregations:["sum(_col2)"],keys:_col1, _col4
+                                      Select Operator [SEL_9] (rows=40176 
width=1119)
+                                        Output:["_col1","_col4","_col2"]
+                                        Merge Join Operator [MERGEJOIN_65] 
(rows=40176 width=1119)
+                                          
Conds:RS_6._col0=RS_7._col0(Inner),Output:["_col1","_col2","_col4"]
+                                        <-Map 1 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_6]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_2] (rows=1 
width=0)
+                                              Output:["_col0","_col1","_col2"]
+                                              Filter Operator [FIL_59] (rows=1 
width=0)
+                                                predicate:(ws_item_sk is not 
null and ws_sold_date_sk is not null)
+                                                TableScan [TS_0] (rows=1 
width=0)
+                                                  
default@web_sales,web_sales,Tbl:PARTIAL,Col:NONE,Output:["ws_sold_date_sk","ws_item_sk","ws_sales_price"]
+                                        <-Map 7 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_7]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_5] 
(rows=36524 width=1119)
+                                              Output:["_col0","_col1"]
+                                              Filter Operator [FIL_60] 
(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_date","d_month_seq"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/be9735e1/ql/src/test/results/clientpositive/perf/query52.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query52.q.out 
b/ql/src/test/results/clientpositive/perf/query52.q.out
index 87b272a..f5bc52b 100644
--- a/ql/src/test/results/clientpositive/perf/query52.q.out
+++ b/ql/src/test/results/clientpositive/perf/query52.q.out
@@ -11,111 +11,60 @@ Reducer 4 <- Reducer 3 (SIMPLE_EDGE)
 Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
 
 Stage-0
-   Fetch Operator
-      limit:100
-      Stage-1
-         Reducer 5
-         File Output Operator [FS_24]
-            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_23]
-               Number of rows:100
-               Statistics:Num rows: 100 Data size: 143600 Basic stats: 
COMPLETE Column stats: NONE
-               Select Operator [SEL_22]
-               |  outputColumnNames:["_col0","_col1","_col2","_col3"]
-               |  Statistics:Num rows: 127050 Data size: 182479129 Basic 
stats: COMPLETE Column stats: NONE
-               |<-Reducer 4 [SIMPLE_EDGE]
-                  Reduce Output Operator [RS_21]
-                     key expressions:1998 (type: int), _col3 (type: 
decimal(17,2)), _col1 (type: int)
-                     sort order:+-+
-                     Statistics:Num rows: 127050 Data size: 182479129 Basic 
stats: COMPLETE Column stats: NONE
-                     value expressions:_col2 (type: string)
-                     Select Operator [SEL_20]
-                        outputColumnNames:["_col1","_col2","_col3"]
-                        Statistics:Num rows: 127050 Data size: 182479129 Basic 
stats: COMPLETE Column stats: NONE
-                        Group By Operator [GBY_19]
-                        |  aggregations:["sum(VALUE._col0)"]
-                        |  keys:1998 (type: int), KEY._col1 (type: string), 
KEY._col2 (type: int)
-                        |  outputColumnNames:["_col0","_col1","_col2","_col3"]
-                        |  Statistics:Num rows: 127050 Data size: 182479129 
Basic stats: COMPLETE Column stats: NONE
-                        |<-Reducer 3 [SIMPLE_EDGE]
-                           Reduce Output Operator [RS_18]
-                              key expressions:1998 (type: int), _col1 (type: 
string), _col2 (type: int)
-                              Map-reduce partition columns:1998 (type: int), 
_col1 (type: string), _col2 (type: int)
-                              sort order:+++
-                              Statistics:Num rows: 254100 Data size: 364958258 
Basic stats: COMPLETE Column stats: NONE
-                              value expressions:_col3 (type: decimal(17,2))
-                              Group By Operator [GBY_17]
-                                 aggregations:["sum(_col3)"]
-                                 keys:1998 (type: int), _col1 (type: string), 
_col2 (type: int)
-                                 
outputColumnNames:["_col0","_col1","_col2","_col3"]
-                                 Statistics:Num rows: 254100 Data size: 
364958258 Basic stats: COMPLETE Column stats: NONE
-                                 Select Operator [SEL_15]
-                                    outputColumnNames:["_col1","_col2","_col3"]
-                                    Statistics:Num rows: 254100 Data size: 
364958258 Basic stats: COMPLETE Column stats: NONE
-                                    Merge Join Operator [MERGEJOIN_34]
-                                    |  condition map:[{"":"Inner Join 0 to 1"}]
-                                    |  keys:{"0":"_col4 (type: 
int)","1":"_col0 (type: int)"}
-                                    |  
outputColumnNames:["_col5","_col7","_col8"]
-                                    |  Statistics:Num rows: 254100 Data size: 
364958258 Basic stats: COMPLETE Column stats: NONE
-                                    |<-Map 7 [SIMPLE_EDGE]
-                                    |  Reduce Output Operator [RS_13]
-                                    |     key expressions:_col0 (type: int)
-                                    |     Map-reduce partition columns:_col0 
(type: int)
-                                    |     sort order:+
-                                    |     Statistics:Num rows: 231000 Data 
size: 331780228 Basic stats: COMPLETE Column stats: NONE
-                                    |     value expressions:_col1 (type: int), 
_col2 (type: string)
-                                    |     Select Operator [SEL_8]
-                                    |        
outputColumnNames:["_col0","_col1","_col2"]
-                                    |        Statistics:Num rows: 231000 Data 
size: 331780228 Basic stats: COMPLETE Column stats: NONE
-                                    |        Filter Operator [FIL_32]
-                                    |           predicate:((i_manager_id = 1) 
and i_item_sk is not null) (type: boolean)
-                                    |           Statistics:Num rows: 231000 
Data size: 331780228 Basic stats: COMPLETE Column stats: NONE
-                                    |           TableScan [TS_6]
-                                    |              alias:item
-                                    |              Statistics:Num rows: 462000 
Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                    |<-Reducer 2 [SIMPLE_EDGE]
-                                       Reduce Output Operator [RS_12]
-                                          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:_col5 (type: 
decimal(7,2))
-                                          Merge Join Operator [MERGEJOIN_33]
-                                          |  condition map:[{"":"Inner Join 0 
to 1"}]
-                                          |  keys:{"0":"_col0 (type: 
int)","1":"_col0 (type: int)"}
-                                          |  
outputColumnNames:["_col4","_col5"]
-                                          |  Statistics:Num rows: 20088 Data 
size: 22478696 Basic stats: COMPLETE Column stats: NONE
-                                          |<-Map 1 [SIMPLE_EDGE]
-                                          |  Reduce Output Operator [RS_9]
-                                          |     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_2]
-                                          |        outputColumnNames:["_col0"]
-                                          |        Statistics:Num rows: 18262 
Data size: 20435178 Basic stats: COMPLETE Column stats: NONE
-                                          |        Filter Operator [FIL_30]
-                                          |           predicate:(((d_moy = 12) 
and (d_year = 1998)) and d_date_sk is not null) (type: boolean)
-                                          |           Statistics:Num rows: 
18262 Data size: 20435178 Basic stats: COMPLETE Column stats: NONE
-                                          |           TableScan [TS_0]
-                                          |              alias:dt
-                                          |              Statistics:Num rows: 
73049 Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
-                                          |<-Map 6 [SIMPLE_EDGE]
-                                             Reduce Output Operator [RS_10]
-                                                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: decimal(7,2))
-                                                Select Operator [SEL_5]
-                                                   
outputColumnNames:["_col0","_col1","_col2"]
-                                                   Statistics:Num rows: 1 Data 
size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                   Filter Operator [FIL_31]
-                                                      
predicate:(ss_sold_date_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_3]
-                                                         alias:store_sales
-                                                         Statistics:Num rows: 
1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+  Fetch Operator
+    limit:100
+    Stage-1
+      Reducer 5
+      File Output Operator [FS_24]
+        Limit [LIM_23] (rows=100 width=1436)
+          Number of rows:100
+          Select Operator [SEL_22] (rows=127050 width=1436)
+            Output:["_col0","_col1","_col2","_col3"]
+          <-Reducer 4 [SIMPLE_EDGE]
+            SHUFFLE [RS_21]
+              Select Operator [SEL_20] (rows=127050 width=1436)
+                Output:["_col1","_col2","_col3"]
+                Group By Operator [GBY_19] (rows=127050 width=1436)
+                  
Output:["_col0","_col1","_col2","_col3"],aggregations:["sum(VALUE._col0)"],keys:1998,
 KEY._col1, KEY._col2
+                <-Reducer 3 [SIMPLE_EDGE]
+                  SHUFFLE [RS_18]
+                    PartitionCols:1998, _col1, _col2
+                    Group By Operator [GBY_17] (rows=254100 width=1436)
+                      
Output:["_col0","_col1","_col2","_col3"],aggregations:["sum(_col3)"],keys:1998, 
_col1, _col2
+                      Select Operator [SEL_15] (rows=254100 width=1436)
+                        Output:["_col1","_col2","_col3"]
+                        Merge Join Operator [MERGEJOIN_34] (rows=254100 
width=1436)
+                          
Conds:RS_12._col4=RS_13._col0(Inner),Output:["_col5","_col7","_col8"]
+                        <-Map 7 [SIMPLE_EDGE]
+                          SHUFFLE [RS_13]
+                            PartitionCols:_col0
+                            Select Operator [SEL_8] (rows=231000 width=1436)
+                              Output:["_col0","_col1","_col2"]
+                              Filter Operator [FIL_32] (rows=231000 width=1436)
+                                predicate:((i_manager_id = 1) and i_item_sk is 
not null)
+                                TableScan [TS_6] (rows=462000 width=1436)
+                                  
default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_brand_id","i_brand","i_manager_id"]
+                        <-Reducer 2 [SIMPLE_EDGE]
+                          SHUFFLE [RS_12]
+                            PartitionCols:_col4
+                            Merge Join Operator [MERGEJOIN_33] (rows=20088 
width=1119)
+                              
Conds:RS_9._col0=RS_10._col0(Inner),Output:["_col4","_col5"]
+                            <-Map 1 [SIMPLE_EDGE]
+                              SHUFFLE [RS_9]
+                                PartitionCols:_col0
+                                Select Operator [SEL_2] (rows=18262 width=1119)
+                                  Output:["_col0"]
+                                  Filter Operator [FIL_30] (rows=18262 
width=1119)
+                                    predicate:(((d_moy = 12) and (d_year = 
1998)) and d_date_sk is not null)
+                                    TableScan [TS_0] (rows=73049 width=1119)
+                                      
default@date_dim,dt,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
+                            <-Map 6 [SIMPLE_EDGE]
+                              SHUFFLE [RS_10]
+                                PartitionCols:_col0
+                                Select Operator [SEL_5] (rows=1 width=0)
+                                  Output:["_col0","_col1","_col2"]
+                                  Filter Operator [FIL_31] (rows=1 width=0)
+                                    predicate:(ss_sold_date_sk is not null and 
ss_item_sk is not null)
+                                    TableScan [TS_3] (rows=1 width=0)
+                                      
default@store_sales,store_sales,Tbl:PARTIAL,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_ext_sales_price"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/be9735e1/ql/src/test/results/clientpositive/perf/query54.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query54.q.out 
b/ql/src/test/results/clientpositive/perf/query54.q.out
index efa358d..9a0e9b4 100644
--- a/ql/src/test/results/clientpositive/perf/query54.q.out
+++ b/ql/src/test/results/clientpositive/perf/query54.q.out
@@ -20,295 +20,154 @@ Reducer 8 <- Map 19 (SIMPLE_EDGE), Reducer 7 (SIMPLE_EDGE)
 Reducer 9 <- Map 20 (SIMPLE_EDGE), Reducer 8 (SIMPLE_EDGE)
 
 Stage-0
-   Fetch Operator
-      limit:100
-      Stage-1
-         Reducer 13
-         File Output Operator [FS_68]
-            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_67]
-               Number of rows:100
-               Statistics:Num rows: 100 Data size: 86000 Basic stats: COMPLETE 
Column stats: NONE
-               Select Operator [SEL_66]
-               |  outputColumnNames:["_col0","_col1","_col2"]
-               |  Statistics:Num rows: 16105101 Data size: 13850712636 Basic 
stats: COMPLETE Column stats: NONE
-               |<-Reducer 12 [SIMPLE_EDGE]
-                  Reduce Output Operator [RS_65]
-                     key expressions:_col0 (type: int), _col1 (type: bigint)
-                     sort order:++
-                     Statistics:Num rows: 16105101 Data size: 13850712636 
Basic stats: COMPLETE Column stats: NONE
-                     value expressions:_col2 (type: int)
-                     Select Operator [SEL_64]
-                        outputColumnNames:["_col0","_col1","_col2"]
-                        Statistics:Num rows: 16105101 Data size: 13850712636 
Basic stats: COMPLETE Column stats: NONE
-                        Group By Operator [GBY_63]
-                        |  aggregations:["count(VALUE._col0)"]
-                        |  keys:KEY._col0 (type: int)
-                        |  outputColumnNames:["_col0","_col1"]
-                        |  Statistics:Num rows: 16105101 Data size: 
13850712636 Basic stats: COMPLETE Column stats: NONE
-                        |<-Reducer 11 [SIMPLE_EDGE]
-                           Reduce Output Operator [RS_62]
-                              key expressions:_col0 (type: int)
-                              Map-reduce partition columns:_col0 (type: int)
-                              sort order:+
-                              Statistics:Num rows: 32210202 Data size: 
27701425272 Basic stats: COMPLETE Column stats: NONE
-                              value expressions:_col1 (type: bigint)
-                              Group By Operator [GBY_61]
-                                 aggregations:["count()"]
-                                 keys:_col0 (type: int)
-                                 outputColumnNames:["_col0","_col1"]
-                                 Statistics:Num rows: 32210202 Data size: 
27701425272 Basic stats: COMPLETE Column stats: NONE
-                                 Select Operator [SEL_59]
-                                    outputColumnNames:["_col0"]
-                                    Statistics:Num rows: 32210202 Data size: 
27701425272 Basic stats: COMPLETE Column stats: NONE
-                                    Group By Operator [GBY_58]
-                                    |  aggregations:["sum(VALUE._col0)"]
-                                    |  keys:KEY._col0 (type: int)
-                                    |  outputColumnNames:["_col0","_col1"]
-                                    |  Statistics:Num rows: 32210202 Data 
size: 27701425272 Basic stats: COMPLETE Column stats: NONE
-                                    |<-Reducer 10 [SIMPLE_EDGE]
-                                       Reduce Output Operator [RS_57]
-                                          key expressions:_col0 (type: int)
-                                          Map-reduce partition columns:_col0 
(type: int)
-                                          sort order:+
-                                          Statistics:Num rows: 64420404 Data 
size: 55402850544 Basic stats: COMPLETE Column stats: NONE
-                                          value expressions:_col1 (type: 
decimal(17,2))
-                                          Group By Operator [GBY_56]
-                                             aggregations:["sum(_col4)"]
-                                             keys:_col0 (type: int)
-                                             
outputColumnNames:["_col0","_col1"]
-                                             Statistics:Num rows: 64420404 
Data size: 55402850544 Basic stats: COMPLETE Column stats: NONE
-                                             Merge Join Operator 
[MERGEJOIN_126]
-                                             |  condition map:[{"":"Inner Join 
0 to 1"}]
-                                             |  keys:{"0":"_col2 (type: 
int)","1":"_col0 (type: int)"}
-                                             |  
outputColumnNames:["_col0","_col4"]
-                                             |  Statistics:Num rows: 64420404 
Data size: 55402850544 Basic stats: COMPLETE Column stats: NONE
-                                             |<-Map 21 [SIMPLE_EDGE]
-                                             |  Reduce Output Operator [RS_53]
-                                             |     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_42]
-                                             |        
outputColumnNames:["_col0"]
-                                             |        Statistics:Num rows: 
36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                             |        Filter Operator [FIL_119]
-                                             |           
predicate:(d_month_seq BETWEEN 1203 AND 1205 and d_date_sk is not null) (type: 
boolean)
-                                             |           Statistics:Num rows: 
36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                             |           TableScan [TS_40]
-                                             |              alias:date_dim
-                                             |              Statistics:Num 
rows: 73049 Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
-                                             |<-Reducer 9 [SIMPLE_EDGE]
-                                                Reduce Output Operator [RS_52]
-                                                   key expressions:_col2 
(type: int)
-                                                   Map-reduce partition 
columns:_col2 (type: int)
-                                                   sort order:+
-                                                   Statistics:Num rows: 
58564003 Data size: 50366226676 Basic stats: COMPLETE Column stats: NONE
-                                                   value expressions:_col0 
(type: int), _col4 (type: decimal(7,2))
-                                                   Merge Join Operator 
[MERGEJOIN_125]
-                                                   |  condition 
map:[{"":"Inner Join 0 to 1"}]
-                                                   |  keys:{"0":"_col6 (type: 
string), _col7 (type: string)","1":"_col0 (type: string), _col1 (type: string)"}
-                                                   |  
outputColumnNames:["_col0","_col2","_col4"]
-                                                   |  Statistics:Num rows: 
58564003 Data size: 50366226676 Basic stats: COMPLETE Column stats: NONE
-                                                   |<-Map 20 [SIMPLE_EDGE]
-                                                   |  Reduce Output Operator 
[RS_50]
-                                                   |     key expressions:_col0 
(type: string), _col1 (type: string)
-                                                   |     Map-reduce partition 
columns:_col0 (type: string), _col1 (type: string)
-                                                   |     sort order:++
-                                                   |     Statistics:Num rows: 
1704 Data size: 3256276 Basic stats: COMPLETE Column stats: NONE
-                                                   |     Select Operator 
[SEL_39]
-                                                   |        
outputColumnNames:["_col0","_col1"]
-                                                   |        Statistics:Num 
rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column stats: NONE
-                                                   |        Filter Operator 
[FIL_118]
-                                                   |           
predicate:(s_county is not null and s_state is not null) (type: boolean)
-                                                   |           Statistics:Num 
rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column stats: NONE
-                                                   |           TableScan 
[TS_37]
-                                                   |              alias:store
-                                                   |              
Statistics:Num rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column 
stats: NONE
-                                                   |<-Reducer 8 [SIMPLE_EDGE]
-                                                      Reduce Output Operator 
[RS_49]
-                                                         key expressions:_col6 
(type: string), _col7 (type: string)
-                                                         Map-reduce partition 
columns:_col6 (type: string), _col7 (type: string)
-                                                         sort order:++
-                                                         Statistics:Num rows: 
53240002 Data size: 45787477804 Basic stats: COMPLETE Column stats: NONE
-                                                         value 
expressions:_col0 (type: int), _col2 (type: int), _col4 (type: decimal(7,2))
-                                                         Merge Join Operator 
[MERGEJOIN_124]
-                                                         |  condition 
map:[{"":"Inner Join 0 to 1"}]
-                                                         |  keys:{"0":"_col1 
(type: int)","1":"_col0 (type: int)"}
-                                                         |  
outputColumnNames:["_col0","_col2","_col4","_col6","_col7"]
-                                                         |  Statistics:Num 
rows: 53240002 Data size: 45787477804 Basic stats: COMPLETE Column stats: NONE
-                                                         |<-Map 19 
[SIMPLE_EDGE]
-                                                         |  Reduce Output 
Operator [RS_47]
-                                                         |     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), _col2 (type: string)
-                                                         |     Select Operator 
[SEL_36]
-                                                         |        
outputColumnNames:["_col0","_col1","_col2"]
-                                                         |        
Statistics:Num rows: 40000000 Data size: 40595195284 Basic stats: COMPLETE 
Column stats: NONE
-                                                         |        Filter 
Operator [FIL_117]
-                                                         |           
predicate:((ca_address_sk is not null and ca_county is not null) and ca_state 
is not null) (type: boolean)
-                                                         |           
Statistics:Num rows: 40000000 Data size: 40595195284 Basic stats: COMPLETE 
Column stats: NONE
-                                                         |           TableScan 
[TS_34]
-                                                         |              
alias:customer_address
-                                                         |              
Statistics:Num rows: 40000000 Data size: 40595195284 Basic stats: COMPLETE 
Column stats: NONE
-                                                         |<-Reducer 7 
[SIMPLE_EDGE]
-                                                            Reduce Output 
Operator [RS_46]
-                                                               key 
expressions:_col1 (type: int)
-                                                               Map-reduce 
partition columns:_col1 (type: int)
-                                                               sort order:+
-                                                               Statistics:Num 
rows: 48400001 Data size: 41624978920 Basic stats: COMPLETE Column stats: NONE
-                                                               value 
expressions:_col0 (type: int), _col2 (type: int), _col4 (type: decimal(7,2))
-                                                               Merge Join 
Operator [MERGEJOIN_123]
-                                                               |  condition 
map:[{"":"Inner Join 0 to 1"}]
-                                                               |  
keys:{"0":"_col0 (type: int)","1":"_col1 (type: int)"}
-                                                               |  
outputColumnNames:["_col0","_col1","_col2","_col4"]
-                                                               |  
Statistics:Num rows: 48400001 Data size: 41624978920 Basic stats: COMPLETE 
Column stats: NONE
-                                                               |<-Map 18 
[SIMPLE_EDGE]
-                                                               |  Reduce 
Output Operator [RS_44]
-                                                               |     key 
expressions:_col1 (type: int)
-                                                               |     
Map-reduce partition columns:_col1 (type: int)
-                                                               |     sort 
order:+
-                                                               |     
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                               |     value 
expressions:_col0 (type: int), _col2 (type: decimal(7,2))
-                                                               |     Select 
Operator [SEL_33]
-                                                               |        
outputColumnNames:["_col0","_col1","_col2"]
-                                                               |        
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                               |        Filter 
Operator [FIL_116]
-                                                               |           
predicate:(ss_customer_sk is not null and ss_sold_date_sk is not null) (type: 
boolean)
-                                                               |           
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                               |           
TableScan [TS_31]
-                                                               |              
alias:store_sales
-                                                               |              
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                               |<-Reducer 6 
[SIMPLE_EDGE]
-                                                                  Reduce 
Output Operator [RS_43]
-                                                                     key 
expressions:_col0 (type: int)
-                                                                     
Map-reduce partition columns:_col0 (type: int)
-                                                                     sort 
order:+
-                                                                     
Statistics:Num rows: 44000000 Data size: 37840889108 Basic stats: COMPLETE 
Column stats: NONE
-                                                                     value 
expressions:_col1 (type: int)
-                                                                     Group By 
Operator [GBY_29]
-                                                                     |  
keys:KEY._col0 (type: int), KEY._col1 (type: int)
-                                                                     |  
outputColumnNames:["_col0","_col1"]
-                                                                     |  
Statistics:Num rows: 44000000 Data size: 37840889108 Basic stats: COMPLETE 
Column stats: NONE
-                                                                     
|<-Reducer 5 [SIMPLE_EDGE]
-                                                                        Reduce 
Output Operator [RS_28]
-                                                                           key 
expressions:_col0 (type: int), _col1 (type: int)
-                                                                           
Map-reduce partition columns:_col0 (type: int), _col1 (type: int)
-                                                                           
sort order:++
-                                                                           
Statistics:Num rows: 88000001 Data size: 75681779077 Basic stats: COMPLETE 
Column stats: NONE
-                                                                           
Group By Operator [GBY_27]
-                                                                              
keys:_col9 (type: int), _col10 (type: int)
-                                                                              
outputColumnNames:["_col0","_col1"]
-                                                                              
Statistics:Num rows: 88000001 Data size: 75681779077 Basic stats: COMPLETE 
Column stats: NONE
-                                                                              
Merge Join Operator [MERGEJOIN_122]
-                                                                              
|  condition map:[{"":"Inner Join 0 to 1"}]
-                                                                              
|  keys:{"0":"_col1 (type: int)","1":"_col0 (type: int)"}
-                                                                              
|  outputColumnNames:["_col9","_col10"]
-                                                                              
|  Statistics:Num rows: 88000001 Data size: 75681779077 Basic stats: COMPLETE 
Column stats: NONE
-                                                                              
|<-Map 17 [SIMPLE_EDGE]
-                                                                              
|  Reduce Output Operator [RS_24]
-                                                                              
|     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)
-                                                                              
|     Select Operator [SEL_16]
-                                                                              
|        outputColumnNames:["_col0","_col1"]
-                                                                              
|        Statistics:Num rows: 80000000 Data size: 68801615852 Basic stats: 
COMPLETE Column stats: NONE
-                                                                              
|        Filter Operator [FIL_115]
-                                                                              
|           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_14]
-                                                                              
|              alias:customer
-                                                                              
|              Statistics:Num rows: 80000000 Data size: 68801615852 Basic 
stats: COMPLETE Column stats: NONE
-                                                                              
|<-Reducer 4 [SIMPLE_EDGE]
-                                                                               
  Reduce Output Operator [RS_23]
-                                                                               
     key expressions:_col1 (type: int)
-                                                                               
     Map-reduce partition columns:_col1 (type: int)
-                                                                               
     sort order:+
-                                                                               
     Statistics:Num rows: 139755 Data size: 200727046 Basic stats: COMPLETE 
Column stats: NONE
-                                                                               
     Merge Join Operator [MERGEJOIN_121]
-                                                                               
     |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                                               
     |  keys:{"0":"_col0 (type: int)","1":"_col0 (type: int)"}
-                                                                               
     |  outputColumnNames:["_col1"]
-                                                                               
     |  Statistics:Num rows: 139755 Data size: 200727046 Basic stats: COMPLETE 
Column stats: NONE
-                                                                               
     |<-Map 16 [SIMPLE_EDGE]
-                                                                               
     |  Reduce Output Operator [RS_21]
-                                                                               
     |     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_13]
-                                                                               
     |        outputColumnNames:["_col0"]
-                                                                               
     |        Statistics:Num rows: 18262 Data size: 20435178 Basic stats: 
COMPLETE Column stats: NONE
-                                                                               
     |        Filter Operator [FIL_114]
-                                                                               
     |           predicate:(((d_moy = 3) and (d_year = 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_11]
-                                                                               
     |              alias:date_dim
-                                                                               
     |              Statistics:Num rows: 73049 Data size: 81741831 Basic stats: 
COMPLETE Column stats: NONE
-                                                                               
     |<-Reducer 3 [SIMPLE_EDGE]
-                                                                               
        Reduce Output Operator [RS_20]
-                                                                               
           key expressions:_col0 (type: int)
-                                                                               
           Map-reduce partition columns:_col0 (type: int)
-                                                                               
           sort order:+
-                                                                               
           Statistics:Num rows: 127050 Data size: 182479129 Basic stats: 
COMPLETE Column stats: NONE
-                                                                               
           value expressions:_col1 (type: int)
-                                                                               
           Merge Join Operator [MERGEJOIN_120]
-                                                                               
           |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                                               
           |  keys:{"0":"_col2 (type: int)","1":"_col0 (type: int)"}
-                                                                               
           |  outputColumnNames:["_col0","_col1"]
-                                                                               
           |  Statistics:Num rows: 127050 Data size: 182479129 Basic stats: 
COMPLETE Column stats: NONE
-                                                                               
           |<-Map 15 [SIMPLE_EDGE]
-                                                                               
           |  Reduce Output Operator [RS_18]
-                                                                               
           |     key expressions:_col0 (type: int)
-                                                                               
           |     Map-reduce partition columns:_col0 (type: int)
-                                                                               
           |     sort order:+
-                                                                               
           |     Statistics:Num rows: 115500 Data size: 165890114 Basic stats: 
COMPLETE Column stats: NONE
-                                                                               
           |     Select Operator [SEL_10]
-                                                                               
           |        outputColumnNames:["_col0"]
-                                                                               
           |        Statistics:Num rows: 115500 Data size: 165890114 Basic 
stats: COMPLETE Column stats: NONE
-                                                                               
           |        Filter Operator [FIL_113]
-                                                                               
           |           predicate:(((i_category = 'Jewelry') and (i_class = 
'football')) and i_item_sk is not null) (type: boolean)
-                                                                               
           |           Statistics:Num rows: 115500 Data size: 165890114 Basic 
stats: COMPLETE Column stats: NONE
-                                                                               
           |           TableScan [TS_8]
-                                                                               
           |              alias:item
-                                                                               
           |              Statistics:Num rows: 462000 Data size: 663560457 
Basic stats: COMPLETE Column stats: NONE
-                                                                               
           |<-Union 2 [SIMPLE_EDGE]
-                                                                               
              |<-Map 1 [CONTAINS]
-                                                                               
              |  Reduce Output Operator [RS_17]
-                                                                               
              |     key expressions:_col2 (type: int)
-                                                                               
              |     Map-reduce partition columns:_col2 (type: int)
-                                                                               
              |     sort order:+
-                                                                               
              |     Statistics:Num rows: 2 Data size: 0 Basic stats: PARTIAL 
Column stats: NONE
-                                                                               
              |     value expressions:_col0 (type: int), _col1 (type: int)
-                                                                               
              |     Select Operator [SEL_2]
-                                                                               
              |        outputColumnNames:["_col0","_col1","_col2"]
-                                                                               
              |        Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL 
Column stats: NONE
-                                                                               
              |        Filter Operator [FIL_111]
-                                                                               
              |           predicate:((cs_item_sk is not null and 
cs_sold_date_sk is not null) and cs_bill_customer_sk is not null) (type: 
boolean)
-                                                                               
              |           Statistics:Num rows: 1 Data size: 0 Basic stats: 
PARTIAL Column stats: NONE
-                                                                               
              |           TableScan [TS_0]
-                                                                               
              |              alias:catalog_sales
-                                                                               
              |              Statistics:Num rows: 1 Data size: 0 Basic stats: 
PARTIAL Column stats: NONE
-                                                                               
              |<-Map 14 [CONTAINS]
-                                                                               
                 Reduce Output Operator [RS_17]
-                                                                               
                    key expressions:_col2 (type: int)
-                                                                               
                    Map-reduce partition columns:_col2 (type: int)
-                                                                               
                    sort order:+
-                                                                               
                    Statistics:Num rows: 2 Data size: 0 Basic stats: PARTIAL 
Column stats: NONE
-                                                                               
                    value expressions:_col0 (type: int), _col1 (type: int)
-                                                                               
                    Select Operator [SEL_5]
-                                                                               
                       outputColumnNames:["_col0","_col1","_col2"]
-                                                                               
                       Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL 
Column stats: NONE
-                                                                               
                       Filter Operator [FIL_112]
-                                                                               
                          predicate:((ws_item_sk is not null and 
ws_sold_date_sk is not null) and ws_bill_customer_sk is not null) (type: 
boolean)
-                                                                               
                          Statistics:Num rows: 1 Data size: 0 Basic stats: 
PARTIAL Column stats: NONE
-                                                                               
                          TableScan [TS_3]
-                                                                               
                             alias:web_sales
-                                                                               
                             Statistics:Num rows: 1 Data size: 0 Basic stats: 
PARTIAL Column stats: NONE
+  Fetch Operator
+    limit:100
+    Stage-1
+      Reducer 13
+      File Output Operator [FS_68]
+        Limit [LIM_67] (rows=100 width=860)
+          Number of rows:100
+          Select Operator [SEL_66] (rows=16105101 width=860)
+            Output:["_col0","_col1","_col2"]
+          <-Reducer 12 [SIMPLE_EDGE]
+            SHUFFLE [RS_65]
+              Select Operator [SEL_64] (rows=16105101 width=860)
+                Output:["_col0","_col1","_col2"]
+                Group By Operator [GBY_63] (rows=16105101 width=860)
+                  
Output:["_col0","_col1"],aggregations:["count(VALUE._col0)"],keys:KEY._col0
+                <-Reducer 11 [SIMPLE_EDGE]
+                  SHUFFLE [RS_62]
+                    PartitionCols:_col0
+                    Group By Operator [GBY_61] (rows=32210202 width=860)
+                      
Output:["_col0","_col1"],aggregations:["count()"],keys:_col0
+                      Select Operator [SEL_59] (rows=32210202 width=860)
+                        Output:["_col0"]
+                        Group By Operator [GBY_58] (rows=32210202 width=860)
+                          
Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
+                        <-Reducer 10 [SIMPLE_EDGE]
+                          SHUFFLE [RS_57]
+                            PartitionCols:_col0
+                            Group By Operator [GBY_56] (rows=64420404 
width=860)
+                              
Output:["_col0","_col1"],aggregations:["sum(_col4)"],keys:_col0
+                              Merge Join Operator [MERGEJOIN_126] 
(rows=64420404 width=860)
+                                
Conds:RS_52._col2=RS_53._col0(Inner),Output:["_col0","_col4"]
+                              <-Map 21 [SIMPLE_EDGE]
+                                SHUFFLE [RS_53]
+                                  PartitionCols:_col0
+                                  Select Operator [SEL_42] (rows=36524 
width=1119)
+                                    Output:["_col0"]
+                                    Filter Operator [FIL_119] (rows=36524 
width=1119)
+                                      predicate:(d_month_seq BETWEEN 1203 AND 
1205 and d_date_sk is not null)
+                                      TableScan [TS_40] (rows=73049 width=1119)
+                                        
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_month_seq"]
+                              <-Reducer 9 [SIMPLE_EDGE]
+                                SHUFFLE [RS_52]
+                                  PartitionCols:_col2
+                                  Merge Join Operator [MERGEJOIN_125] 
(rows=58564003 width=860)
+                                    Conds:RS_49._col6, _col7=RS_50._col0, 
_col1(Inner),Output:["_col0","_col2","_col4"]
+                                  <-Map 20 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_50]
+                                      PartitionCols:_col0, _col1
+                                      Select Operator [SEL_39] (rows=1704 
width=1910)
+                                        Output:["_col0","_col1"]
+                                        Filter Operator [FIL_118] (rows=1704 
width=1910)
+                                          predicate:(s_county is not null and 
s_state is not null)
+                                          TableScan [TS_37] (rows=1704 
width=1910)
+                                            
default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_county","s_state"]
+                                  <-Reducer 8 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_49]
+                                      PartitionCols:_col6, _col7
+                                      Merge Join Operator [MERGEJOIN_124] 
(rows=53240002 width=860)
+                                        
Conds:RS_46._col1=RS_47._col0(Inner),Output:["_col0","_col2","_col4","_col6","_col7"]
+                                      <-Map 19 [SIMPLE_EDGE]
+                                        SHUFFLE [RS_47]
+                                          PartitionCols:_col0
+                                          Select Operator [SEL_36] 
(rows=40000000 width=1014)
+                                            Output:["_col0","_col1","_col2"]
+                                            Filter Operator [FIL_117] 
(rows=40000000 width=1014)
+                                              predicate:((ca_address_sk is not 
null and ca_county is not null) and ca_state is not null)
+                                              TableScan [TS_34] (rows=40000000 
width=1014)
+                                                
default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_county","ca_state"]
+                                      <-Reducer 7 [SIMPLE_EDGE]
+                                        SHUFFLE [RS_46]
+                                          PartitionCols:_col1
+                                          Merge Join Operator [MERGEJOIN_123] 
(rows=48400001 width=860)
+                                            
Conds:RS_43._col0=RS_44._col1(Inner),Output:["_col0","_col1","_col2","_col4"]
+                                          <-Map 18 [SIMPLE_EDGE]
+                                            SHUFFLE [RS_44]
+                                              PartitionCols:_col1
+                                              Select Operator [SEL_33] (rows=1 
width=0)
+                                                
Output:["_col0","_col1","_col2"]
+                                                Filter Operator [FIL_116] 
(rows=1 width=0)
+                                                  predicate:(ss_customer_sk is 
not null and ss_sold_date_sk is not null)
+                                                  TableScan [TS_31] (rows=1 
width=0)
+                                                    
default@store_sales,store_sales,Tbl:PARTIAL,Col:NONE,Output:["ss_sold_date_sk","ss_customer_sk","ss_ext_sales_price"]
+                                          <-Reducer 6 [SIMPLE_EDGE]
+                                            SHUFFLE [RS_43]
+                                              PartitionCols:_col0
+                                              Group By Operator [GBY_29] 
(rows=44000000 width=860)
+                                                
Output:["_col0","_col1"],keys:KEY._col0, KEY._col1
+                                              <-Reducer 5 [SIMPLE_EDGE]
+                                                SHUFFLE [RS_28]
+                                                  PartitionCols:_col0, _col1
+                                                  Group By Operator [GBY_27] 
(rows=88000001 width=860)
+                                                    
Output:["_col0","_col1"],keys:_col9, _col10
+                                                    Merge Join Operator 
[MERGEJOIN_122] (rows=88000001 width=860)
+                                                      
Conds:RS_23._col1=RS_24._col0(Inner),Output:["_col9","_col10"]
+                                                    <-Map 17 [SIMPLE_EDGE]
+                                                      SHUFFLE [RS_24]
+                                                        PartitionCols:_col0
+                                                        Select Operator 
[SEL_16] (rows=80000000 width=860)
+                                                          
Output:["_col0","_col1"]
+                                                          Filter Operator 
[FIL_115] (rows=80000000 width=860)
+                                                            
predicate:(c_customer_sk is not null and c_current_addr_sk is not null)
+                                                            TableScan [TS_14] 
(rows=80000000 width=860)
+                                                              
default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_current_addr_sk"]
+                                                    <-Reducer 4 [SIMPLE_EDGE]
+                                                      SHUFFLE [RS_23]
+                                                        PartitionCols:_col1
+                                                        Merge Join Operator 
[MERGEJOIN_121] (rows=139755 width=1436)
+                                                          
Conds:RS_20._col0=RS_21._col0(Inner),Output:["_col1"]
+                                                        <-Map 16 [SIMPLE_EDGE]
+                                                          SHUFFLE [RS_21]
+                                                            PartitionCols:_col0
+                                                            Select Operator 
[SEL_13] (rows=18262 width=1119)
+                                                              Output:["_col0"]
+                                                              Filter Operator 
[FIL_114] (rows=18262 width=1119)
+                                                                
predicate:(((d_moy = 3) and (d_year = 2000)) and d_date_sk is not null)
+                                                                TableScan 
[TS_11] (rows=73049 width=1119)
+                                                                  
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
+                                                        <-Reducer 3 
[SIMPLE_EDGE]
+                                                          SHUFFLE [RS_20]
+                                                            PartitionCols:_col0
+                                                            Merge Join 
Operator [MERGEJOIN_120] (rows=127050 width=1436)
+                                                              Conds:Union 
2._col2=RS_18._col0(Inner),Output:["_col0","_col1"]
+                                                            <-Map 15 
[SIMPLE_EDGE]
+                                                              SHUFFLE [RS_18]
+                                                                
PartitionCols:_col0
+                                                                Select 
Operator [SEL_10] (rows=115500 width=1436)
+                                                                  
Output:["_col0"]
+                                                                  Filter 
Operator [FIL_113] (rows=115500 width=1436)
+                                                                    
predicate:(((i_category = 'Jewelry') and (i_class = 'football')) and i_item_sk 
is not null)
+                                                                    TableScan 
[TS_8] (rows=462000 width=1436)
+                                                                      
default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_class","i_category"]
+                                                            <-Union 2 
[SIMPLE_EDGE]
+                                                              <-Map 1 
[CONTAINS]
+                                                                Reduce Output 
Operator [RS_17]
+                                                                  
PartitionCols:_col2
+                                                                  Select 
Operator [SEL_2] (rows=1 width=0)
+                                                                    
Output:["_col0","_col1","_col2"]
+                                                                    Filter 
Operator [FIL_111] (rows=1 width=0)
+                                                                      
predicate:((cs_item_sk is not null and cs_sold_date_sk is not null) and 
cs_bill_customer_sk is not null)
+                                                                      
TableScan [TS_0] (rows=1 width=0)
+                                                                        
Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_item_sk"]
+                                                              <-Map 14 
[CONTAINS]
+                                                                Reduce Output 
Operator [RS_17]
+                                                                  
PartitionCols:_col2
+                                                                  Select 
Operator [SEL_5] (rows=1 width=0)
+                                                                    
Output:["_col0","_col1","_col2"]
+                                                                    Filter 
Operator [FIL_112] (rows=1 width=0)
+                                                                      
predicate:((ws_item_sk is not null and ws_sold_date_sk is not null) and 
ws_bill_customer_sk is not null)
+                                                                      
TableScan [TS_3] (rows=1 width=0)
+                                                                        
Output:["ws_sold_date_sk","ws_item_sk","ws_bill_customer_sk"]
 

Reply via email to