http://git-wip-us.apache.org/repos/asf/hive/blob/48b201ee/ql/src/test/results/clientpositive/perf/query87.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query87.q.out 
b/ql/src/test/results/clientpositive/perf/query87.q.out
index a336189..8e7b634 100644
--- a/ql/src/test/results/clientpositive/perf/query87.q.out
+++ b/ql/src/test/results/clientpositive/perf/query87.q.out
@@ -133,7 +133,7 @@ Stage-0
                            |                                
outputColumnNames:["_col0","_col1"]
                            |                                Statistics:Num 
rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
                            |                                Filter Operator 
[FIL_103]
-                           |                                   
predicate:(d_month_seq BETWEEN 1193 AND 1204 and d_date_sk is not null) (type: 
boolean)
+                           |                                   
predicate:(d_date_sk is not null and d_month_seq BETWEEN 1193 AND 1204) (type: 
boolean)
                            |                                   Statistics:Num 
rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
                            |                                   TableScan 
[TS_48]
                            |                                      
alias:date_dim
@@ -238,7 +238,7 @@ Stage-0
                                        |                                
outputColumnNames:["_col0","_col1"]
                                        |                                
Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column 
stats: NONE
                                        |                                Filter 
Operator [FIL_100]
-                                       |                                   
predicate:(d_month_seq BETWEEN 1193 AND 1204 and d_date_sk is not null) (type: 
boolean)
+                                       |                                   
predicate:(d_date_sk is not null and d_month_seq BETWEEN 1193 AND 1204) (type: 
boolean)
                                        |                                   
Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column 
stats: NONE
                                        |                                   
TableScan [TS_23]
                                        |                                      
alias:date_dim
@@ -326,7 +326,7 @@ Stage-0
                                                                         
outputColumnNames:["_col0","_col1"]
                                                                         
Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column 
stats: NONE
                                                                         Filter 
Operator [FIL_97]
-                                                                           
predicate:(d_month_seq BETWEEN 1193 AND 1204 and d_date_sk is not null) (type: 
boolean)
+                                                                           
predicate:(d_date_sk is not null and d_month_seq BETWEEN 1193 AND 1204) (type: 
boolean)
                                                                            
Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column 
stats: NONE
                                                                            
TableScan [TS_3]
                                                                               
alias:date_dim

http://git-wip-us.apache.org/repos/asf/hive/blob/48b201ee/ql/src/test/results/clientpositive/perf/query88.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query88.q.out 
b/ql/src/test/results/clientpositive/perf/query88.q.out
index f139dd1..c1d868f 100644
--- a/ql/src/test/results/clientpositive/perf/query88.q.out
+++ b/ql/src/test/results/clientpositive/perf/query88.q.out
@@ -672,7 +672,7 @@ Stage-0
             |     |                       |                    |        
outputColumnNames:["_col0"]
             |     |                       |                    |        
Statistics:Num rows: 14400 Data size: 6782400 Basic stats: COMPLETE Column 
stats: NONE
             |     |                       |                    |        Filter 
Operator [FIL_320]
-            |     |                       |                    |           
predicate:(((t_minute >= 30) and (t_hour = 9)) and t_time_sk is not null) 
(type: boolean)
+            |     |                       |                    |           
predicate:(((t_hour = 9) and (t_minute >= 30)) and t_time_sk is not null) 
(type: boolean)
             |     |                       |                    |           
Statistics:Num rows: 14400 Data size: 6782400 Basic stats: COMPLETE Column 
stats: NONE
             |     |                       |                    |           
TableScan [TS_58]
             |     |                       |                    |              
alias:time_dim
@@ -894,7 +894,7 @@ Stage-0
             |     |                                                  |        
outputColumnNames:["_col0"]
             |     |                                                  |        
Statistics:Num rows: 14400 Data size: 6782400 Basic stats: COMPLETE Column 
stats: NONE
             |     |                                                  |        
Filter Operator [FIL_312]
-            |     |                                                  |         
  predicate:(((t_minute >= 30) and (t_hour = 8)) and t_time_sk is not null) 
(type: boolean)
+            |     |                                                  |         
  predicate:(((t_hour = 8) and (t_minute >= 30)) and t_time_sk is not null) 
(type: boolean)
             |     |                                                  |         
  Statistics:Num rows: 14400 Data size: 6782400 Basic stats: COMPLETE Column 
stats: NONE
             |     |                                                  |         
  TableScan [TS_6]
             |     |                                                  |         
     alias:time_dim
@@ -1000,7 +1000,7 @@ Stage-0
             |                          |        outputColumnNames:["_col0"]
             |                          |        Statistics:Num rows: 14400 
Data size: 6782400 Basic stats: COMPLETE Column stats: NONE
             |                          |        Filter Operator [FIL_336]
-            |                          |           predicate:(((t_minute >= 
30) and (t_hour = 11)) and t_time_sk is not null) (type: boolean)
+            |                          |           predicate:(((t_hour = 11) 
and (t_minute >= 30)) and t_time_sk is not null) (type: boolean)
             |                          |           Statistics:Num rows: 14400 
Data size: 6782400 Basic stats: COMPLETE Column stats: NONE
             |                          |           TableScan [TS_162]
             |                          |              alias:time_dim

http://git-wip-us.apache.org/repos/asf/hive/blob/48b201ee/ql/src/test/results/clientpositive/perf/query89.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query89.q.out 
b/ql/src/test/results/clientpositive/perf/query89.q.out
index ee9eabc..445ab6c 100644
--- a/ql/src/test/results/clientpositive/perf/query89.q.out
+++ b/ql/src/test/results/clientpositive/perf/query89.q.out
@@ -200,7 +200,7 @@ Stage-0
                                                                   |        
outputColumnNames:["_col0","_col1","_col2","_col3"]
                                                                   |        
Statistics:Num rows: 231000 Data size: 331780228 Basic stats: COMPLETE Column 
stats: NONE
                                                                   |        
Filter Operator [FIL_47]
-                                                                  |           
predicate:((((((i_category) IN ('Home', 'Books', 'Electronics') and (i_class) 
IN ('wallpaper', 'parenting', 'musical')) or ((i_category) IN ('Shoes', 
'Jewelry', 'Men') and (i_class) IN ('womens', 'birdal', 'pants'))) and 
((i_category) IN ('Home', 'Books', 'Electronics') or (i_category) IN ('Shoes', 
'Jewelry', 'Men'))) and ((i_class) IN ('wallpaper', 'parenting', 'musical') or 
(i_class) IN ('womens', 'birdal', 'pants'))) and i_item_sk is not null) (type: 
boolean)
+                                                                  |           
predicate:(((((i_category) IN ('Home', 'Books', 'Electronics') or (i_category) 
IN ('Shoes', 'Jewelry', 'Men')) and ((i_class) IN ('wallpaper', 'parenting', 
'musical') or (i_class) IN ('womens', 'birdal', 'pants'))) and (((i_category) 
IN ('Home', 'Books', 'Electronics') and (i_class) IN ('wallpaper', 'parenting', 
'musical')) or ((i_category) IN ('Shoes', 'Jewelry', 'Men') and (i_class) IN 
('womens', 'birdal', 'pants')))) and i_item_sk is not null) (type: boolean)
                                                                   |           
Statistics:Num rows: 231000 Data size: 331780228 Basic stats: COMPLETE Column 
stats: NONE
                                                                   |           
TableScan [TS_0]
                                                                   |            
  alias:item

http://git-wip-us.apache.org/repos/asf/hive/blob/48b201ee/ql/src/test/results/clientpositive/perf/query90.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query90.q.out 
b/ql/src/test/results/clientpositive/perf/query90.q.out
index d34aaf4..3e9adf2 100644
--- a/ql/src/test/results/clientpositive/perf/query90.q.out
+++ b/ql/src/test/results/clientpositive/perf/query90.q.out
@@ -209,7 +209,7 @@ Stage-0
                                              |        
outputColumnNames:["_col0"]
                                              |        Statistics:Num rows: 
43200 Data size: 20347200 Basic stats: COMPLETE Column stats: NONE
                                              |        Filter Operator [FIL_81]
-                                             |           predicate:(t_time_sk 
is not null and t_hour BETWEEN 6 AND 7) (type: boolean)
+                                             |           predicate:(t_hour 
BETWEEN 6 AND 7 and t_time_sk is not null) (type: boolean)
                                              |           Statistics:Num rows: 
43200 Data size: 20347200 Basic stats: COMPLETE Column stats: NONE
                                              |           TableScan [TS_6]
                                              |              alias:time_dim

http://git-wip-us.apache.org/repos/asf/hive/blob/48b201ee/ql/src/test/results/clientpositive/perf/query91.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query91.q.out 
b/ql/src/test/results/clientpositive/perf/query91.q.out
index 54f58e4..306cec7 100644
--- a/ql/src/test/results/clientpositive/perf/query91.q.out
+++ b/ql/src/test/results/clientpositive/perf/query91.q.out
@@ -70,7 +70,7 @@ Stage-0
                                  |        outputColumnNames:["_col0"]
                                  |        Statistics:Num rows: 3600 Data size: 
385200 Basic stats: COMPLETE Column stats: NONE
                                  |        Filter Operator [FIL_80]
-                                 |           predicate:(hd_demo_sk is not null 
and (hd_buy_potential like '0-500%')) (type: boolean)
+                                 |           predicate:((hd_buy_potential like 
'0-500%') and hd_demo_sk is not null) (type: boolean)
                                  |           Statistics:Num rows: 3600 Data 
size: 385200 Basic stats: COMPLETE Column stats: NONE
                                  |           TableScan [TS_18]
                                  |              alias:household_demographics
@@ -98,7 +98,7 @@ Stage-0
                                        |        
outputColumnNames:["_col0","_col1","_col2"]
                                        |        Statistics:Num rows: 9900 Data 
size: 3585529 Basic stats: COMPLETE Column stats: NONE
                                        |        Filter Operator [FIL_79]
-                                       |           
predicate:((((((cd_marital_status = 'M') and (cd_education_status = 'Unknown')) 
or ((cd_marital_status = 'W') and (cd_education_status = 'Advanced Degree'))) 
and ((cd_education_status = 'Unknown') or (cd_education_status = 'Advanced 
Degree'))) and ((cd_marital_status = 'M') or (cd_marital_status = 'W'))) and 
cd_demo_sk is not null) (type: boolean)
+                                       |           
predicate:(((((cd_marital_status = 'M') or (cd_marital_status = 'W')) and 
((cd_education_status = 'Unknown') or (cd_education_status = 'Advanced 
Degree'))) and (((cd_marital_status = 'M') and (cd_education_status = 
'Unknown')) or ((cd_marital_status = 'W') and (cd_education_status = 'Advanced 
Degree')))) and cd_demo_sk is not null) (type: boolean)
                                        |           Statistics:Num rows: 9900 
Data size: 3585529 Basic stats: COMPLETE Column stats: NONE
                                        |           TableScan [TS_15]
                                        |              
alias:customer_demographics
@@ -180,7 +180,7 @@ Stage-0
                                                          |        
outputColumnNames:["_col0"]
                                                          |        
Statistics:Num rows: 18262 Data size: 20435178 Basic stats: COMPLETE Column 
stats: NONE
                                                          |        Filter 
Operator [FIL_76]
-                                                         |           
predicate:(((d_moy = 11) and d_date_sk is not null) and (d_year = 1999)) (type: 
boolean)
+                                                         |           
predicate:(((d_year = 1999) and (d_moy = 11)) and d_date_sk is not null) (type: 
boolean)
                                                          |           
Statistics:Num rows: 18262 Data size: 20435178 Basic stats: COMPLETE Column 
stats: NONE
                                                          |           TableScan 
[TS_6]
                                                          |              
alias:date_dim

http://git-wip-us.apache.org/repos/asf/hive/blob/48b201ee/ql/src/test/results/clientpositive/perf/query92.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query92.q.out 
b/ql/src/test/results/clientpositive/perf/query92.q.out
index 6fb2133..865290c 100644
--- a/ql/src/test/results/clientpositive/perf/query92.q.out
+++ b/ql/src/test/results/clientpositive/perf/query92.q.out
@@ -96,7 +96,7 @@ Stage-0
                         |                          outputColumnNames:["_col0"]
                         |                          Statistics:Num rows: 8116 
Data size: 9081804 Basic stats: COMPLETE Column stats: NONE
                         |                          Filter Operator [FIL_43]
-                        |                             predicate:(((d_month_seq 
<= 1217) and d_date_sk is not null) and (d_month_seq >= 1206)) (type: boolean)
+                        |                             predicate:((d_date_sk is 
not null and (d_month_seq >= 1206)) and (d_month_seq <= 1217)) (type: boolean)
                         |                             Statistics:Num rows: 
8116 Data size: 9081804 Basic stats: COMPLETE Column stats: NONE
                         |                             TableScan [TS_3]
                         |                                alias:d1
@@ -136,7 +136,7 @@ Stage-0
                                        |        outputColumnNames:["_col0"]
                                        |        Statistics:Num rows: 8116 Data 
size: 9081804 Basic stats: COMPLETE Column stats: NONE
                                        |        Filter Operator [FIL_45]
-                                       |           predicate:(((d_month_seq <= 
1217) and d_date_sk is not null) and (d_month_seq >= 1206)) (type: boolean)
+                                       |           predicate:((d_date_sk is 
not null and (d_month_seq >= 1206)) and (d_month_seq <= 1217)) (type: boolean)
                                        |           Statistics:Num rows: 8116 
Data size: 9081804 Basic stats: COMPLETE Column stats: NONE
                                        |           TableScan [TS_17]
                                        |              alias:d1

http://git-wip-us.apache.org/repos/asf/hive/blob/48b201ee/ql/src/test/results/clientpositive/perf/query93.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query93.q.out 
b/ql/src/test/results/clientpositive/perf/query93.q.out
index 5255145..401c58b 100644
--- a/ql/src/test/results/clientpositive/perf/query93.q.out
+++ b/ql/src/test/results/clientpositive/perf/query93.q.out
@@ -15,100 +15,103 @@ Stage-0
       limit:100
       Stage-1
          Reducer 5
-         File Output Operator [FS_23]
+         File Output Operator [FS_24]
             compressed:false
             Statistics:Num rows: 19 Data size: 3858 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_22]
+            Limit [LIM_23]
                Number of rows:100
                Statistics:Num rows: 19 Data size: 3858 Basic stats: COMPLETE 
Column stats: NONE
-               Select Operator [SEL_21]
+               Select Operator [SEL_22]
                |  outputColumnNames:["_col0","_col1"]
                |  Statistics:Num rows: 19 Data size: 3858 Basic stats: 
COMPLETE Column stats: NONE
                |<-Reducer 4 [SIMPLE_EDGE]
-                  Reduce Output Operator [RS_20]
+                  Reduce Output Operator [RS_21]
                      key expressions:_col1 (type: decimal(28,2)), _col0 (type: 
int)
                      sort order:++
                      Statistics:Num rows: 19 Data size: 3858 Basic stats: 
COMPLETE Column stats: NONE
-                     Group By Operator [GBY_18]
+                     Group By Operator [GBY_19]
                      |  aggregations:["sum(VALUE._col0)"]
                      |  keys:KEY._col0 (type: int)
                      |  outputColumnNames:["_col0","_col1"]
                      |  Statistics:Num rows: 19 Data size: 3858 Basic stats: 
COMPLETE Column stats: NONE
                      |<-Reducer 3 [SIMPLE_EDGE]
-                        Reduce Output Operator [RS_17]
+                        Reduce Output Operator [RS_18]
                            key expressions:_col0 (type: int)
                            Map-reduce partition columns:_col0 (type: int)
                            sort order:+
                            Statistics:Num rows: 39 Data size: 7920 Basic 
stats: COMPLETE Column stats: NONE
                            value expressions:_col1 (type: decimal(28,2))
-                           Group By Operator [GBY_16]
+                           Group By Operator [GBY_17]
                               aggregations:["sum(_col1)"]
                               keys:_col0 (type: int)
                               outputColumnNames:["_col0","_col1"]
                               Statistics:Num rows: 39 Data size: 7920 Basic 
stats: COMPLETE Column stats: NONE
-                              Select Operator [SEL_14]
+                              Select Operator [SEL_15]
                                  outputColumnNames:["_col0","_col1"]
                                  Statistics:Num rows: 39 Data size: 7920 Basic 
stats: COMPLETE Column stats: NONE
-                                 Merge Join Operator [MERGEJOIN_33]
+                                 Merge Join Operator [MERGEJOIN_34]
                                  |  condition map:[{"":"Inner Join 0 to 1"}]
                                  |  keys:{"0":"_col6 (type: int)","1":"_col0 
(type: int)"}
                                  |  
outputColumnNames:["_col1","_col3","_col4","_col8"]
                                  |  Statistics:Num rows: 39 Data size: 7920 
Basic stats: COMPLETE Column stats: NONE
                                  |<-Map 7 [SIMPLE_EDGE]
-                                 |  Reduce Output Operator [RS_12]
+                                 |  Reduce Output Operator [RS_13]
                                  |     key expressions:_col0 (type: int)
                                  |     Map-reduce partition columns:_col0 
(type: int)
                                  |     sort order:+
                                  |     Statistics:Num rows: 36 Data size: 7200 
Basic stats: COMPLETE Column stats: NONE
-                                 |     Select Operator [SEL_7]
+                                 |     Select Operator [SEL_8]
                                  |        outputColumnNames:["_col0"]
                                  |        Statistics:Num rows: 36 Data size: 
7200 Basic stats: COMPLETE Column stats: NONE
-                                 |        Filter Operator [FIL_31]
+                                 |        Filter Operator [FIL_32]
                                  |           predicate:((r_reason_desc = 'Did 
not like the warranty') and r_reason_sk is not null) (type: boolean)
                                  |           Statistics:Num rows: 36 Data 
size: 7200 Basic stats: COMPLETE Column stats: NONE
-                                 |           TableScan [TS_5]
+                                 |           TableScan [TS_6]
                                  |              alias:reason
                                  |              Statistics:Num rows: 72 Data 
size: 14400 Basic stats: COMPLETE Column stats: NONE
                                  |<-Reducer 2 [SIMPLE_EDGE]
-                                    Reduce Output Operator [RS_11]
+                                    Reduce Output Operator [RS_12]
                                        key expressions:_col6 (type: int)
                                        Map-reduce partition columns:_col6 
(type: int)
                                        sort order:+
                                        Statistics:Num rows: 1 Data size: 0 
Basic stats: PARTIAL Column stats: NONE
                                        value expressions:_col1 (type: int), 
_col3 (type: int), _col4 (type: decimal(7,2)), _col8 (type: int)
-                                       Merge Join Operator [MERGEJOIN_32]
+                                       Merge Join Operator [MERGEJOIN_33]
                                        |  condition map:[{"":"Inner Join 0 to 
1"}]
                                        |  keys:{"0":"_col0 (type: int), _col2 
(type: int)","1":"_col0 (type: int), _col2 (type: int)"}
                                        |  
outputColumnNames:["_col1","_col3","_col4","_col6","_col8"]
                                        |  Statistics:Num rows: 1 Data size: 0 
Basic stats: PARTIAL Column stats: NONE
                                        |<-Map 1 [SIMPLE_EDGE]
-                                       |  Reduce Output Operator [RS_8]
+                                       |  Reduce Output Operator [RS_9]
                                        |     key expressions:_col0 (type: 
int), _col2 (type: int)
                                        |     Map-reduce partition 
columns:_col0 (type: int), _col2 (type: int)
                                        |     sort order:++
                                        |     Statistics:Num rows: 1 Data size: 
0 Basic stats: PARTIAL Column stats: NONE
                                        |     value expressions:_col1 (type: 
int), _col3 (type: int), _col4 (type: decimal(7,2))
-                                       |     Select Operator [SEL_1]
+                                       |     Select Operator [SEL_2]
                                        |        
outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
                                        |        Statistics:Num rows: 1 Data 
size: 0 Basic stats: PARTIAL Column stats: NONE
-                                       |        TableScan [TS_0]
-                                       |           alias:store_sales
+                                       |        Filter Operator [FIL_30]
+                                       |           predicate:(ss_item_sk is 
not null and ss_ticket_number 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 6 [SIMPLE_EDGE]
-                                          Reduce Output Operator [RS_9]
+                                          Reduce Output Operator [RS_10]
                                              key expressions:_col0 (type: 
int), _col2 (type: int)
                                              Map-reduce partition 
columns:_col0 (type: int), _col2 (type: int)
                                              sort order:++
                                              Statistics:Num rows: 1 Data size: 
0 Basic stats: PARTIAL Column stats: NONE
                                              value expressions:_col1 (type: 
int), _col3 (type: int)
-                                             Select Operator [SEL_4]
+                                             Select Operator [SEL_5]
                                                 
outputColumnNames:["_col0","_col1","_col2","_col3"]
                                                 Statistics:Num rows: 1 Data 
size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                Filter Operator [FIL_30]
-                                                   predicate:sr_reason_sk is 
not null (type: boolean)
+                                                Filter Operator [FIL_31]
+                                                   predicate:((sr_reason_sk is 
not null and sr_item_sk is not null) and sr_ticket_number is not null) (type: 
boolean)
                                                    Statistics:Num rows: 1 Data 
size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                   TableScan [TS_2]
+                                                   TableScan [TS_3]
                                                       alias:store_returns
                                                       Statistics:Num rows: 1 
Data size: 0 Basic stats: PARTIAL Column stats: NONE
 

http://git-wip-us.apache.org/repos/asf/hive/blob/48b201ee/ql/src/test/results/clientpositive/perf/query94.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query94.q.out 
b/ql/src/test/results/clientpositive/perf/query94.q.out
index 0357835..0f128ab 100644
--- a/ql/src/test/results/clientpositive/perf/query94.q.out
+++ b/ql/src/test/results/clientpositive/perf/query94.q.out
@@ -18,65 +18,68 @@ Stage-0
       limit:100
       Stage-1
          Reducer 7
-         File Output Operator [FS_49]
+         File Output Operator [FS_50]
             compressed:false
             Statistics:Num rows: 1 Data size: 344 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_48]
+            Limit [LIM_49]
                Number of rows:100
                Statistics:Num rows: 1 Data size: 344 Basic stats: COMPLETE 
Column stats: NONE
-               Group By Operator [GBY_46]
+               Group By Operator [GBY_47]
                |  aggregations:["count(DISTINCT 
KEY._col0:0._col0)","sum(VALUE._col1)","sum(VALUE._col2)"]
                |  outputColumnNames:["_col0","_col1","_col2"]
                |  Statistics:Num rows: 1 Data size: 344 Basic stats: COMPLETE 
Column stats: NONE
                |<-Reducer 6 [SIMPLE_EDGE]
-                  Reduce Output Operator [RS_45]
+                  Reduce Output Operator [RS_46]
                      key expressions:_col0 (type: int)
                      sort order:+
                      Statistics:Num rows: 14641000 Data size: 14858857641 
Basic stats: COMPLETE Column stats: NONE
                      value expressions:_col2 (type: decimal(17,2)), _col3 
(type: decimal(17,2))
-                     Group By Operator [GBY_44]
+                     Group By Operator [GBY_45]
                         aggregations:["count(DISTINCT 
_col3)","sum(_col4)","sum(_col5)"]
                         keys:_col3 (type: int)
                         outputColumnNames:["_col0","_col1","_col2","_col3"]
                         Statistics:Num rows: 14641000 Data size: 14858857641 
Basic stats: COMPLETE Column stats: NONE
-                        Select Operator [SEL_43]
+                        Select Operator [SEL_44]
                            outputColumnNames:["_col3","_col4","_col5"]
                            Statistics:Num rows: 14641000 Data size: 
14858857641 Basic stats: COMPLETE Column stats: NONE
-                           Filter Operator [FIL_42]
+                           Filter Operator [FIL_43]
                               predicate:_col12 is null (type: boolean)
                               Statistics:Num rows: 14641000 Data size: 
14858857641 Basic stats: COMPLETE Column stats: NONE
-                              Merge Join Operator [MERGEJOIN_83]
+                              Merge Join Operator [MERGEJOIN_84]
                               |  condition map:[{"":"Left Outer Join0 to 1"}]
                               |  keys:{"0":"_col3 (type: int)","1":"_col0 
(type: int)"}
                               |  
outputColumnNames:["_col3","_col4","_col5","_col12"]
                               |  Statistics:Num rows: 29282000 Data size: 
29717715282 Basic stats: COMPLETE Column stats: NONE
                               |<-Map 14 [SIMPLE_EDGE]
-                              |  Reduce Output Operator [RS_40]
+                              |  Reduce Output Operator [RS_41]
                               |     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
-                              |     Select Operator [SEL_24]
+                              |     Select Operator [SEL_25]
                               |        outputColumnNames:["_col0"]
                               |        Statistics:Num rows: 1 Data size: 0 
Basic stats: PARTIAL Column stats: NONE
-                              |        TableScan [TS_23]
-                              |           alias:wr1
+                              |        Filter Operator [FIL_78]
+                              |           predicate:wr_order_number is not 
null (type: boolean)
                               |           Statistics:Num rows: 1 Data size: 0 
Basic stats: PARTIAL Column stats: NONE
+                              |           TableScan [TS_23]
+                              |              alias:wr1
+                              |              Statistics:Num rows: 1 Data size: 
0 Basic stats: PARTIAL Column stats: NONE
                               |<-Reducer 5 [SIMPLE_EDGE]
-                                 Reduce Output Operator [RS_39]
+                                 Reduce Output Operator [RS_40]
                                     key expressions:_col3 (type: int)
                                     Map-reduce partition columns:_col3 (type: 
int)
                                     sort order:+
                                     Statistics:Num rows: 26620000 Data size: 
27016104217 Basic stats: COMPLETE Column stats: NONE
                                     value expressions:_col4 (type: 
decimal(7,2)), _col5 (type: decimal(7,2))
-                                    Merge Join Operator [MERGEJOIN_82]
+                                    Merge Join Operator [MERGEJOIN_83]
                                     |  condition map:[{"":"Inner Join 0 to 1"}]
                                     |  keys:{"0":"_col0 (type: 
int)","1":"_col0 (type: int)"}
                                     |  
outputColumnNames:["_col3","_col4","_col5"]
                                     |  Statistics:Num rows: 26620000 Data 
size: 27016104217 Basic stats: COMPLETE Column stats: NONE
                                     |<-Map 13 [SIMPLE_EDGE]
-                                    |  Reduce Output Operator [RS_37]
+                                    |  Reduce Output Operator [RS_38]
                                     |     key expressions:_col0 (type: int)
                                     |     Map-reduce partition columns:_col0 
(type: int)
                                     |     sort order:+
@@ -84,26 +87,26 @@ Stage-0
                                     |     Select Operator [SEL_22]
                                     |        outputColumnNames:["_col0"]
                                     |        Statistics:Num rows: 36524 Data 
size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                    |        Filter Operator [FIL_76]
-                                    |           predicate:(d_date BETWEEN 
'1999-05-01' AND '1999-07-01' and d_date_sk is not null) (type: boolean)
+                                    |        Filter Operator [FIL_77]
+                                    |           predicate:(d_date_sk is not 
null and d_date BETWEEN '1999-05-01' AND '1999-07-01') (type: boolean)
                                     |           Statistics:Num rows: 36524 
Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
                                     |           TableScan [TS_20]
                                     |              alias:d
                                     |              Statistics:Num rows: 73049 
Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
                                     |<-Reducer 4 [SIMPLE_EDGE]
-                                       Reduce Output Operator [RS_36]
+                                       Reduce Output Operator [RS_37]
                                           key expressions:_col0 (type: int)
                                           Map-reduce partition columns:_col0 
(type: int)
                                           sort order:+
                                           Statistics:Num rows: 24200000 Data 
size: 24560094211 Basic stats: COMPLETE Column stats: NONE
                                           value expressions:_col3 (type: int), 
_col4 (type: decimal(7,2)), _col5 (type: decimal(7,2))
-                                          Merge Join Operator [MERGEJOIN_81]
+                                          Merge Join Operator [MERGEJOIN_82]
                                           |  condition map:[{"":"Inner Join 0 
to 1"}]
                                           |  keys:{"0":"_col2 (type: 
int)","1":"_col0 (type: int)"}
                                           |  
outputColumnNames:["_col0","_col3","_col4","_col5"]
                                           |  Statistics:Num rows: 24200000 
Data size: 24560094211 Basic stats: COMPLETE Column stats: NONE
                                           |<-Map 12 [SIMPLE_EDGE]
-                                          |  Reduce Output Operator [RS_34]
+                                          |  Reduce Output Operator [RS_35]
                                           |     key expressions:_col0 (type: 
int)
                                           |     Map-reduce partition 
columns:_col0 (type: int)
                                           |     sort order:+
@@ -111,26 +114,26 @@ Stage-0
                                           |     Select Operator [SEL_19]
                                           |        outputColumnNames:["_col0"]
                                           |        Statistics:Num rows: 42 
Data size: 77704 Basic stats: COMPLETE Column stats: NONE
-                                          |        Filter Operator [FIL_75]
-                                          |           
predicate:((web_company_name = 'pri') and web_site_sk is not null) (type: 
boolean)
+                                          |        Filter Operator [FIL_76]
+                                          |           predicate:(web_site_sk 
is not null and (web_company_name = 'pri')) (type: boolean)
                                           |           Statistics:Num rows: 42 
Data size: 77704 Basic stats: COMPLETE Column stats: NONE
                                           |           TableScan [TS_17]
                                           |              alias:s
                                           |              Statistics:Num rows: 
84 Data size: 155408 Basic stats: COMPLETE Column stats: NONE
                                           |<-Reducer 3 [SIMPLE_EDGE]
-                                             Reduce Output Operator [RS_33]
+                                             Reduce Output Operator [RS_34]
                                                 key expressions:_col2 (type: 
int)
                                                 Map-reduce partition 
columns:_col2 (type: int)
                                                 sort order:+
                                                 Statistics:Num rows: 22000000 
Data size: 22327357890 Basic stats: COMPLETE Column stats: NONE
                                                 value expressions:_col0 (type: 
int), _col3 (type: int), _col4 (type: decimal(7,2)), _col5 (type: decimal(7,2))
-                                                Merge Join Operator 
[MERGEJOIN_80]
+                                                Merge Join Operator 
[MERGEJOIN_81]
                                                 |  condition map:[{"":"Inner 
Join 0 to 1"}]
                                                 |  keys:{"0":"_col1 (type: 
int)","1":"_col0 (type: int)"}
                                                 |  
outputColumnNames:["_col0","_col2","_col3","_col4","_col5"]
                                                 |  Statistics:Num rows: 
22000000 Data size: 22327357890 Basic stats: COMPLETE Column stats: NONE
                                                 |<-Map 11 [SIMPLE_EDGE]
-                                                |  Reduce Output Operator 
[RS_31]
+                                                |  Reduce Output Operator 
[RS_32]
                                                 |     key expressions:_col0 
(type: int)
                                                 |     Map-reduce partition 
columns:_col0 (type: int)
                                                 |     sort order:+
@@ -138,26 +141,26 @@ Stage-0
                                                 |     Select Operator [SEL_16]
                                                 |        
outputColumnNames:["_col0"]
                                                 |        Statistics:Num rows: 
20000000 Data size: 20297597642 Basic stats: COMPLETE Column stats: NONE
-                                                |        Filter Operator 
[FIL_74]
-                                                |           
predicate:((ca_state = 'TX') and ca_address_sk is not null) (type: boolean)
+                                                |        Filter Operator 
[FIL_75]
+                                                |           
predicate:(ca_address_sk is not null and (ca_state = 'TX')) (type: boolean)
                                                 |           Statistics:Num 
rows: 20000000 Data size: 20297597642 Basic stats: COMPLETE Column stats: NONE
                                                 |           TableScan [TS_14]
                                                 |              alias:ca
                                                 |              Statistics:Num 
rows: 40000000 Data size: 40595195284 Basic stats: COMPLETE Column stats: NONE
                                                 |<-Reducer 2 [SIMPLE_EDGE]
-                                                   Reduce Output Operator 
[RS_30]
+                                                   Reduce Output Operator 
[RS_31]
                                                       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: int), _col3 (type: int), _col4 (type: decimal(7,2)), 
_col5 (type: decimal(7,2))
-                                                      Merge Join Operator 
[MERGEJOIN_79]
+                                                      Merge Join Operator 
[MERGEJOIN_80]
                                                       |  condition 
map:[{"":"Left Semi Join 0 to 1"}]
                                                       |  keys:{"0":"_col3 
(type: int)","1":"_col0 (type: int)"}
                                                       |  
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
                                                       |  Statistics:Num rows: 
1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
                                                       |<-Map 1 [SIMPLE_EDGE]
-                                                      |  Reduce Output 
Operator [RS_27]
+                                                      |  Reduce Output 
Operator [RS_28]
                                                       |     key 
expressions:_col3 (type: int)
                                                       |     Map-reduce 
partition columns:_col3 (type: int)
                                                       |     sort order:+
@@ -166,19 +169,19 @@ Stage-0
                                                       |     Select Operator 
[SEL_2]
                                                       |        
outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
                                                       |        Statistics:Num 
rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                      |        Filter Operator 
[FIL_71]
+                                                      |        Filter Operator 
[FIL_72]
                                                       |           
predicate:(((ws_ship_addr_sk is not null and ws_web_site_sk is not null) and 
ws_ship_date_sk is not null) and ws_order_number is not null) (type: boolean)
                                                       |           
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
                                                       |           TableScan 
[TS_0]
                                                       |              alias:ws1
                                                       |              
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
                                                       |<-Reducer 9 
[SIMPLE_EDGE]
-                                                         Reduce Output 
Operator [RS_28]
+                                                         Reduce Output 
Operator [RS_29]
                                                             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
-                                                            Group By Operator 
[GBY_26]
+                                                            Group By Operator 
[GBY_27]
                                                                keys:_col0 
(type: int)
                                                                
outputColumnNames:["_col0"]
                                                                Statistics:Num 
rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
@@ -188,7 +191,7 @@ Stage-0
                                                                   Filter 
Operator [FIL_12]
                                                                      
predicate:(_col0 <> _col2) (type: boolean)
                                                                      
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                     Merge 
Join Operator [MERGEJOIN_78]
+                                                                     Merge 
Join Operator [MERGEJOIN_79]
                                                                      |  
condition map:[{"":"Inner Join 0 to 1"}]
                                                                      |  
keys:{"0":"_col1 (type: int)","1":"_col1 (type: int)"}
                                                                      |  
outputColumnNames:["_col0","_col1","_col2"]
@@ -203,7 +206,7 @@ Stage-0
                                                                      |     
Select Operator [SEL_8]
                                                                      |        
outputColumnNames:["_col0","_col1"]
                                                                      |        
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                     |        
Filter Operator [FIL_73]
+                                                                     |        
Filter Operator [FIL_74]
                                                                      |         
  predicate:ws_order_number is not null (type: boolean)
                                                                      |         
  Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
                                                                      |         
  TableScan [TS_6]
@@ -219,7 +222,7 @@ Stage-0
                                                                            
Select Operator [SEL_5]
                                                                               
outputColumnNames:["_col0","_col1"]
                                                                               
Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                              
Filter Operator [FIL_72]
+                                                                              
Filter Operator [FIL_73]
                                                                                
  predicate:ws_order_number is not null (type: boolean)
                                                                                
  Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
                                                                                
  TableScan [TS_3]

http://git-wip-us.apache.org/repos/asf/hive/blob/48b201ee/ql/src/test/results/clientpositive/perf/query95.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query95.q.out 
b/ql/src/test/results/clientpositive/perf/query95.q.out
index a7c6a98..28c516b 100644
--- a/ql/src/test/results/clientpositive/perf/query95.q.out
+++ b/ql/src/test/results/clientpositive/perf/query95.q.out
@@ -53,7 +53,7 @@ Stage-0
                      |        outputColumnNames:["_col0"]
                      |        Statistics:Num rows: 36524 Data size: 40870356 
Basic stats: COMPLETE Column stats: NONE
                      |        Filter Operator [FIL_115]
-                     |           predicate:(d_date BETWEEN '2002-05-01' AND 
'2002-06-30' and d_date_sk is not null) (type: boolean)
+                     |           predicate:(d_date_sk is not null and d_date 
BETWEEN '2002-05-01' AND '2002-06-30') (type: boolean)
                      |           Statistics:Num rows: 36524 Data size: 
40870356 Basic stats: COMPLETE Column stats: NONE
                      |           TableScan [TS_38]
                      |              alias:d
@@ -80,7 +80,7 @@ Stage-0
                            |        outputColumnNames:["_col0"]
                            |        Statistics:Num rows: 42 Data size: 77704 
Basic stats: COMPLETE Column stats: NONE
                            |        Filter Operator [FIL_114]
-                           |           predicate:((web_company_name = 'pri') 
and web_site_sk is not null) (type: boolean)
+                           |           predicate:(web_site_sk is not null and 
(web_company_name = 'pri')) (type: boolean)
                            |           Statistics:Num rows: 42 Data size: 
77704 Basic stats: COMPLETE Column stats: NONE
                            |           TableScan [TS_35]
                            |              alias:s
@@ -107,7 +107,7 @@ Stage-0
                                  |        outputColumnNames:["_col0"]
                                  |        Statistics:Num rows: 20000000 Data 
size: 20297597642 Basic stats: COMPLETE Column stats: NONE
                                  |        Filter Operator [FIL_113]
-                                 |           predicate:((ca_state = 'GA') and 
ca_address_sk is not null) (type: boolean)
+                                 |           predicate:(ca_address_sk is not 
null and (ca_state = 'GA')) (type: boolean)
                                  |           Statistics:Num rows: 20000000 
Data size: 20297597642 Basic stats: COMPLETE Column stats: NONE
                                  |           TableScan [TS_32]
                                  |              alias:ca

http://git-wip-us.apache.org/repos/asf/hive/blob/48b201ee/ql/src/test/results/clientpositive/perf/query96.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query96.q.out 
b/ql/src/test/results/clientpositive/perf/query96.q.out
index bba8965..9a510b4 100644
--- a/ql/src/test/results/clientpositive/perf/query96.q.out
+++ b/ql/src/test/results/clientpositive/perf/query96.q.out
@@ -84,7 +84,7 @@ Stage-0
                                     |        outputColumnNames:["_col0"]
                                     |        Statistics:Num rows: 14400 Data 
size: 6782400 Basic stats: COMPLETE Column stats: NONE
                                     |        Filter Operator [FIL_41]
-                                    |           predicate:(((t_minute >= 30) 
and (t_hour = 8)) and t_time_sk is not null) (type: boolean)
+                                    |           predicate:(((t_hour = 8) and 
(t_minute >= 30)) and t_time_sk is not null) (type: boolean)
                                     |           Statistics:Num rows: 14400 
Data size: 6782400 Basic stats: COMPLETE Column stats: NONE
                                     |           TableScan [TS_6]
                                     |              alias:time_dim

http://git-wip-us.apache.org/repos/asf/hive/blob/48b201ee/ql/src/test/results/clientpositive/perf/query97.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query97.q.out 
b/ql/src/test/results/clientpositive/perf/query97.q.out
index c4c384d..4e254e3 100644
--- a/ql/src/test/results/clientpositive/perf/query97.q.out
+++ b/ql/src/test/results/clientpositive/perf/query97.q.out
@@ -2,7 +2,7 @@ PREHOOK: query: explain select sum(case when ssci.customer_sk 
is not null and cs
 PREHOOK: type: QUERY
 POSTHOOK: query: explain select sum(case when ssci.customer_sk is not null and 
csci.customer_sk is null then 1 else 0 end) store_only ,sum(case when 
ssci.customer_sk is null and csci.customer_sk is not null then 1 else 0 end) 
catalog_only ,sum(case when ssci.customer_sk is not null and csci.customer_sk 
is not null then 1 else 0 end) store_and_catalog from ( select ss_customer_sk 
customer_sk ,ss_item_sk item_sk from store_sales JOIN date_dim ON 
store_sales.ss_sold_date_sk = date_dim.d_date_sk where d_month_seq between 1193 
and 1193 + 11 group by ss_customer_sk ,ss_item_sk) ssci full outer join ( 
select cs_bill_customer_sk customer_sk ,cs_item_sk item_sk from catalog_sales 
JOIN date_dim ON catalog_sales.cs_sold_date_sk = date_dim.d_date_sk where 
d_month_seq between 1193 and 1193 + 11 group by cs_bill_customer_sk 
,cs_item_sk) csci on (ssci.customer_sk=csci.customer_sk and ssci.item_sk = 
csci.item_sk) limit 100
 POSTHOOK: type: QUERY
-Plan optimized by CBO.
+Plan not optimized by CBO.
 
 Vertex dependency in root stage
 Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 6 (SIMPLE_EDGE)
@@ -17,147 +17,132 @@ Stage-0
       limit:100
       Stage-1
          Reducer 5
-         File Output Operator [FS_38]
+         File Output Operator [FS_35]
             compressed:false
             Statistics:Num rows: 1 Data size: 24 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_37]
+            Limit [LIM_34]
                Number of rows:100
                Statistics:Num rows: 1 Data size: 24 Basic stats: COMPLETE 
Column stats: NONE
-               Group By Operator [GBY_35]
+               Group By Operator [GBY_32]
                |  
aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)"]
                |  outputColumnNames:["_col0","_col1","_col2"]
                |  Statistics:Num rows: 1 Data size: 24 Basic stats: COMPLETE 
Column stats: NONE
                |<-Reducer 4 [SIMPLE_EDGE]
-                  Reduce Output Operator [RS_34]
+                  Reduce Output Operator [RS_31]
                      sort order:
                      Statistics:Num rows: 1 Data size: 24 Basic stats: 
COMPLETE Column stats: NONE
                      value expressions:_col0 (type: bigint), _col1 (type: 
bigint), _col2 (type: bigint)
-                     Group By Operator [GBY_33]
-                        aggregations:["sum(_col0)","sum(_col1)","sum(_col2)"]
+                     Group By Operator [GBY_30]
+                        aggregations:["sum(CASE WHEN ((_col0 is not null and 
_col2 is null)) THEN (1) ELSE (0) END)","sum(CASE WHEN ((_col0 is null and 
_col2 is not null)) THEN (1) ELSE (0) END)","sum(CASE WHEN ((_col0 is not null 
and _col2 is not null)) THEN (1) ELSE (0) END)"]
                         outputColumnNames:["_col0","_col1","_col2"]
                         Statistics:Num rows: 1 Data size: 24 Basic stats: 
COMPLETE Column stats: NONE
-                        Select Operator [SEL_31]
-                           outputColumnNames:["_col0","_col1","_col2"]
-                           Statistics:Num rows: 22096 Data size: 24726566 
Basic stats: COMPLETE Column stats: NONE
-                           Merge Join Operator [MERGEJOIN_49]
-                           |  condition map:[{"":"Outer Join 0 to 1"}]
-                           |  keys:{"0":"_col0 (type: int), _col1 (type: 
int)","1":"_col0 (type: int), _col1 (type: int)"}
-                           |  outputColumnNames:["_col0","_col2"]
-                           |  Statistics:Num rows: 22096 Data size: 24726566 
Basic stats: COMPLETE Column stats: NONE
-                           |<-Reducer 3 [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: 20088 Data size: 
22478696 Basic stats: COMPLETE Column stats: NONE
-                           |     Select Operator [SEL_13]
-                           |        outputColumnNames:["_col0","_col1"]
-                           |        Statistics:Num rows: 20088 Data size: 
22478696 Basic stats: COMPLETE Column stats: NONE
-                           |        Group By Operator [GBY_12]
-                           |        |  keys:KEY._col0 (type: int), KEY._col1 
(type: int)
-                           |        |  outputColumnNames:["_col0","_col1"]
-                           |        |  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: int)
-                           |              Map-reduce partition columns:_col0 
(type: int), _col1 (type: int)
-                           |              sort order:++
-                           |              Statistics:Num rows: 40176 Data 
size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                           |              Group By Operator [GBY_10]
-                           |                 keys:_col1 (type: int), _col2 
(type: int)
-                           |                 
outputColumnNames:["_col0","_col1"]
-                           |                 Statistics:Num rows: 40176 Data 
size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                           |                 Merge Join Operator [MERGEJOIN_47]
-                           |                 |  condition map:[{"":"Inner Join 
0 to 1"}]
-                           |                 |  keys:{"0":"_col0 (type: 
int)","1":"_col0 (type: int)"}
-                           |                 |  
outputColumnNames:["_col1","_col2"]
-                           |                 |  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: 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_43]
-                           |                 |           
predicate:ss_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:store_sales
-                           |                 |              Statistics:Num 
rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                           |                 |<-Map 6 [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
-                           |                       Select Operator [SEL_5]
-                           |                          
outputColumnNames:["_col0"]
-                           |                          Statistics:Num rows: 
36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                           |                          Filter Operator [FIL_44]
-                           |                             
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
-                           |<-Reducer 9 [SIMPLE_EDGE]
-                              Reduce Output Operator [RS_29]
-                                 key expressions:_col0 (type: int), _col1 
(type: int)
-                                 Map-reduce partition columns:_col0 (type: 
int), _col1 (type: int)
-                                 sort order:++
-                                 Statistics:Num rows: 20088 Data size: 
22478696 Basic stats: COMPLETE Column stats: NONE
-                                 Group By Operator [GBY_26]
-                                 |  keys:KEY._col0 (type: int), KEY._col1 
(type: int)
-                                 |  outputColumnNames:["_col0","_col1"]
-                                 |  Statistics:Num rows: 20088 Data size: 
22478696 Basic stats: COMPLETE Column stats: NONE
-                                 |<-Reducer 8 [SIMPLE_EDGE]
-                                    Reduce Output Operator [RS_25]
-                                       key expressions:_col0 (type: int), 
_col1 (type: int)
-                                       Map-reduce partition columns:_col0 
(type: int), _col1 (type: int)
-                                       sort order:++
+                        Merge Join Operator [MERGEJOIN_46]
+                        |  condition map:[{"":"Outer Join 0 to 1"}]
+                        |  keys:{"0":"_col0 (type: int), _col1 (type: 
int)","1":"_col0 (type: int), _col1 (type: int)"}
+                        |  outputColumnNames:["_col0","_col2"]
+                        |  Statistics:Num rows: 22096 Data size: 24726566 
Basic stats: COMPLETE Column stats: NONE
+                        |<-Reducer 3 [SIMPLE_EDGE]
+                        |  Reduce Output Operator [RS_26]
+                        |     key expressions:_col0 (type: int), _col1 (type: 
int)
+                        |     Map-reduce partition columns:_col0 (type: int), 
_col1 (type: int)
+                        |     sort order:++
+                        |     Statistics:Num rows: 20088 Data size: 22478696 
Basic stats: COMPLETE Column stats: NONE
+                        |     Group By Operator [GBY_11]
+                        |     |  keys:KEY._col0 (type: int), KEY._col1 (type: 
int)
+                        |     |  outputColumnNames:["_col0","_col1"]
+                        |     |  Statistics:Num rows: 20088 Data size: 
22478696 Basic stats: COMPLETE Column stats: NONE
+                        |     |<-Reducer 2 [SIMPLE_EDGE]
+                        |        Reduce Output Operator [RS_10]
+                        |           key expressions:_col0 (type: int), _col1 
(type: int)
+                        |           Map-reduce partition columns:_col0 (type: 
int), _col1 (type: int)
+                        |           sort order:++
+                        |           Statistics:Num rows: 40176 Data size: 
44957392 Basic stats: COMPLETE Column stats: NONE
+                        |           Group By Operator [GBY_9]
+                        |              keys:_col3 (type: int), _col2 (type: 
int)
+                        |              outputColumnNames:["_col0","_col1"]
+                        |              Statistics:Num rows: 40176 Data size: 
44957392 Basic stats: COMPLETE Column stats: NONE
+                        |              Select Operator [SEL_8]
+                        |                 outputColumnNames:["_col3","_col2"]
+                        |                 Statistics:Num rows: 40176 Data 
size: 44957392 Basic stats: COMPLETE Column stats: NONE
+                        |                 Merge Join Operator [MERGEJOIN_44]
+                        |                 |  condition map:[{"":"Inner Join 0 
to 1"}]
+                        |                 |  keys:{"0":"ss_sold_date_sk (type: 
int)","1":"d_date_sk (type: int)"}
+                        |                 |  
outputColumnNames:["_col2","_col3"]
+                        |                 |  Statistics:Num rows: 40176 Data 
size: 44957392 Basic stats: COMPLETE Column stats: NONE
+                        |                 |<-Map 1 [SIMPLE_EDGE]
+                        |                 |  Reduce Output Operator [RS_3]
+                        |                 |     key 
expressions:ss_sold_date_sk (type: int)
+                        |                 |     Map-reduce partition 
columns:ss_sold_date_sk (type: int)
+                        |                 |     sort order:+
+                        |                 |     Statistics:Num rows: 1 Data 
size: 0 Basic stats: PARTIAL Column stats: NONE
+                        |                 |     value expressions:ss_item_sk 
(type: int), ss_customer_sk (type: int)
+                        |                 |     Filter Operator [FIL_40]
+                        |                 |        predicate:ss_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:store_sales
+                        |                 |           Statistics:Num rows: 1 
Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                        |                 |<-Map 6 [SIMPLE_EDGE]
+                        |                    Reduce Output Operator [RS_5]
+                        |                       key expressions:d_date_sk 
(type: int)
+                        |                       Map-reduce partition 
columns:d_date_sk (type: int)
+                        |                       sort order:+
+                        |                       Statistics:Num rows: 36524 
Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                        |                       Filter Operator [FIL_41]
+                        |                          predicate:(d_date_sk is not 
null and d_month_seq BETWEEN 1193 AND 1204) (type: boolean)
+                        |                          Statistics:Num rows: 36524 
Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                        |                          TableScan [TS_1]
+                        |                             alias:date_dim
+                        |                             Statistics:Num rows: 
73049 Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
+                        |<-Reducer 9 [SIMPLE_EDGE]
+                           Reduce Output Operator [RS_27]
+                              key expressions:_col0 (type: int), _col1 (type: 
int)
+                              Map-reduce partition columns:_col0 (type: int), 
_col1 (type: int)
+                              sort order:++
+                              Statistics:Num rows: 20088 Data size: 22478696 
Basic stats: COMPLETE Column stats: NONE
+                              Group By Operator [GBY_24]
+                              |  keys:KEY._col0 (type: int), KEY._col1 (type: 
int)
+                              |  outputColumnNames:["_col0","_col1"]
+                              |  Statistics:Num rows: 20088 Data size: 
22478696 Basic stats: COMPLETE Column stats: NONE
+                              |<-Reducer 8 [SIMPLE_EDGE]
+                                 Reduce Output Operator [RS_23]
+                                    key expressions:_col0 (type: int), _col1 
(type: int)
+                                    Map-reduce partition columns:_col0 (type: 
int), _col1 (type: int)
+                                    sort order:++
+                                    Statistics:Num rows: 40176 Data size: 
44957392 Basic stats: COMPLETE Column stats: NONE
+                                    Group By Operator [GBY_22]
+                                       keys:_col3 (type: int), _col15 (type: 
int)
+                                       outputColumnNames:["_col0","_col1"]
                                        Statistics:Num rows: 40176 Data size: 
44957392 Basic stats: COMPLETE Column stats: NONE
-                                       Group By Operator [GBY_24]
-                                          keys:_col1 (type: int), _col2 (type: 
int)
-                                          outputColumnNames:["_col0","_col1"]
-                                          Statistics:Num rows: 40176 Data 
size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                          Merge Join Operator [MERGEJOIN_48]
-                                          |  condition map:[{"":"Inner Join 0 
to 1"}]
-                                          |  keys:{"0":"_col0 (type: 
int)","1":"_col0 (type: int)"}
-                                          |  
outputColumnNames:["_col1","_col2"]
-                                          |  Statistics:Num rows: 40176 Data 
size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                          |<-Map 10 [SIMPLE_EDGE]
-                                          |  Reduce Output Operator [RS_21]
-                                          |     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_19]
-                                          |        outputColumnNames:["_col0"]
-                                          |        Statistics:Num rows: 36524 
Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                          |        Filter Operator [FIL_46]
-                                          |           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_17]
-                                          |              alias:date_dim
-                                          |              Statistics:Num rows: 
73049 Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
-                                          |<-Map 7 [SIMPLE_EDGE]
-                                             Reduce Output Operator [RS_20]
-                                                key expressions:_col0 (type: 
int)
-                                                Map-reduce partition 
columns:_col0 (type: int)
-                                                sort order:+
+                                       Merge Join Operator [MERGEJOIN_45]
+                                       |  condition map:[{"":"Inner Join 0 to 
1"}]
+                                       |  keys:{"0":"cs_sold_date_sk (type: 
int)","1":"d_date_sk (type: int)"}
+                                       |  outputColumnNames:["_col3","_col15"]
+                                       |  Statistics:Num rows: 40176 Data 
size: 44957392 Basic stats: COMPLETE Column stats: NONE
+                                       |<-Map 10 [SIMPLE_EDGE]
+                                       |  Reduce Output Operator [RS_18]
+                                       |     key expressions:d_date_sk (type: 
int)
+                                       |     Map-reduce partition 
columns:d_date_sk (type: int)
+                                       |     sort order:+
+                                       |     Statistics:Num rows: 36524 Data 
size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                                       |     Filter Operator [FIL_43]
+                                       |        predicate:(d_date_sk is not 
null and d_month_seq BETWEEN 1193 AND 1204) (type: boolean)
+                                       |        Statistics:Num rows: 36524 
Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                                       |        TableScan [TS_14]
+                                       |           alias:date_dim
+                                       |           Statistics:Num rows: 73049 
Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
+                                       |<-Map 7 [SIMPLE_EDGE]
+                                          Reduce Output Operator [RS_16]
+                                             key expressions:cs_sold_date_sk 
(type: int)
+                                             Map-reduce partition 
columns:cs_sold_date_sk (type: int)
+                                             sort order:+
+                                             Statistics:Num rows: 1 Data size: 
0 Basic stats: PARTIAL Column stats: NONE
+                                             value 
expressions:cs_bill_customer_sk (type: int), cs_item_sk (type: int)
+                                             Filter Operator [FIL_42]
+                                                predicate:cs_sold_date_sk is 
not null (type: boolean)
                                                 Statistics:Num rows: 1 Data 
size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                value expressions:_col1 (type: 
int), _col2 (type: int)
-                                                Select Operator [SEL_16]
-                                                   
outputColumnNames:["_col0","_col1","_col2"]
+                                                TableScan [TS_13]
+                                                   alias:catalog_sales
                                                    Statistics:Num rows: 1 Data 
size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                   Filter Operator [FIL_45]
-                                                      
predicate:cs_sold_date_sk is not null (type: boolean)
-                                                      Statistics:Num rows: 1 
Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                      TableScan [TS_14]
-                                                         alias:catalog_sales
-                                                         Statistics:Num rows: 
1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
 

http://git-wip-us.apache.org/repos/asf/hive/blob/48b201ee/ql/src/test/results/clientpositive/ppd_gby_join.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/ppd_gby_join.q.out 
b/ql/src/test/results/clientpositive/ppd_gby_join.q.out
index 205e0b5..7f13b3f 100644
--- a/ql/src/test/results/clientpositive/ppd_gby_join.q.out
+++ b/ql/src/test/results/clientpositive/ppd_gby_join.q.out
@@ -35,7 +35,7 @@ STAGE PLANS:
             alias: src
             Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
             Filter Operator
-              predicate: ((((((key > '1') and (key > '20')) and ((value < 
'val_50') or (key > '2'))) and (key < '400')) and (key > '2')) and (key <> 
'4')) (type: boolean)
+              predicate: ((((((key > '1') and (key < '400')) and (key > '2')) 
and (key > '20')) and ((value < 'val_50') or (key > '2'))) and (key <> '4')) 
(type: boolean)
               Statistics: Num rows: 4 Data size: 42 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
                 expressions: key (type: string)
@@ -50,7 +50,7 @@ STAGE PLANS:
             alias: src
             Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
             Filter Operator
-              predicate: (((((key > '2') and (key <> '4')) and (key > '1')) 
and (key > '20')) and (key < '400')) (type: boolean)
+              predicate: (((((key > '2') and (key > '1')) and (key < '400')) 
and (key <> '4')) and (key > '20')) (type: boolean)
               Statistics: Num rows: 6 Data size: 63 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
                 expressions: key (type: string)
@@ -305,7 +305,7 @@ STAGE PLANS:
             alias: src
             Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
             Filter Operator
-              predicate: ((((((key > '1') and (key > '20')) and ((value < 
'val_50') or (key > '2'))) and (key < '400')) and (key > '2')) and (key <> 
'4')) (type: boolean)
+              predicate: ((((((key > '1') and (key < '400')) and (key > '2')) 
and (key > '20')) and ((value < 'val_50') or (key > '2'))) and (key <> '4')) 
(type: boolean)
               Statistics: Num rows: 4 Data size: 42 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
                 expressions: key (type: string)
@@ -320,7 +320,7 @@ STAGE PLANS:
             alias: src
             Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
             Filter Operator
-              predicate: (((((key > '2') and (key <> '4')) and (key > '1')) 
and (key > '20')) and (key < '400')) (type: boolean)
+              predicate: (((((key > '2') and (key > '1')) and (key < '400')) 
and (key <> '4')) and (key > '20')) (type: boolean)
               Statistics: Num rows: 6 Data size: 63 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
                 expressions: key (type: string)

http://git-wip-us.apache.org/repos/asf/hive/blob/48b201ee/ql/src/test/results/clientpositive/ppd_join.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/ppd_join.q.out 
b/ql/src/test/results/clientpositive/ppd_join.q.out
index c3123d2..d218b3e 100644
--- a/ql/src/test/results/clientpositive/ppd_join.q.out
+++ b/ql/src/test/results/clientpositive/ppd_join.q.out
@@ -32,7 +32,7 @@ STAGE PLANS:
             alias: src
             Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
             Filter Operator
-              predicate: ((((((key > '1') and (key > '20')) and ((value < 
'val_50') or (key > '2'))) and (key < '400')) and (key > '2')) and (key <> 
'4')) (type: boolean)
+              predicate: ((((((key > '1') and (key < '400')) and (key > '2')) 
and (key > '20')) and ((value < 'val_50') or (key > '2'))) and (key <> '4')) 
(type: boolean)
               Statistics: Num rows: 4 Data size: 42 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
                 expressions: key (type: string)
@@ -47,7 +47,7 @@ STAGE PLANS:
             alias: src
             Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
             Filter Operator
-              predicate: (((((key > '2') and (key <> '4')) and (key > '1')) 
and (key > '20')) and (key < '400')) (type: boolean)
+              predicate: (((((key > '2') and (key > '1')) and (key < '400')) 
and (key <> '4')) and (key > '20')) (type: boolean)
               Statistics: Num rows: 6 Data size: 63 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
                 expressions: key (type: string), value (type: string)
@@ -557,7 +557,7 @@ STAGE PLANS:
             alias: src
             Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
             Filter Operator
-              predicate: ((((((key > '1') and (key > '20')) and ((value < 
'val_50') or (key > '2'))) and (key < '400')) and (key > '2')) and (key <> 
'4')) (type: boolean)
+              predicate: ((((((key > '1') and (key < '400')) and (key > '2')) 
and (key > '20')) and ((value < 'val_50') or (key > '2'))) and (key <> '4')) 
(type: boolean)
               Statistics: Num rows: 4 Data size: 42 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
                 expressions: key (type: string)
@@ -572,7 +572,7 @@ STAGE PLANS:
             alias: src
             Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
             Filter Operator
-              predicate: (((((key > '2') and (key <> '4')) and (key > '1')) 
and (key > '20')) and (key < '400')) (type: boolean)
+              predicate: (((((key > '2') and (key > '1')) and (key < '400')) 
and (key <> '4')) and (key > '20')) (type: boolean)
               Statistics: Num rows: 6 Data size: 63 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
                 expressions: key (type: string), value (type: string)

http://git-wip-us.apache.org/repos/asf/hive/blob/48b201ee/ql/src/test/results/clientpositive/ppd_join2.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/ppd_join2.q.out 
b/ql/src/test/results/clientpositive/ppd_join2.q.out
index c503652..955f4ad 100644
--- a/ql/src/test/results/clientpositive/ppd_join2.q.out
+++ b/ql/src/test/results/clientpositive/ppd_join2.q.out
@@ -39,7 +39,7 @@ STAGE PLANS:
             alias: src
             Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
             Filter Operator
-              predicate: (((((((key <> '302') and (key <> '311')) and ((value 
<> 'val_50') or (key > '1'))) and (key < '400')) and (key <> '305')) and (key 
<> '14')) and value is not null) (type: boolean)
+              predicate: (((((((key <> '302') and (key < '400')) and (key <> 
'305')) and value is not null) and (key <> '311')) and ((value <> 'val_50') or 
(key > '1'))) and (key <> '14')) (type: boolean)
               Statistics: Num rows: 166 Data size: 1763 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
                 expressions: key (type: string), value (type: string)
@@ -55,7 +55,7 @@ STAGE PLANS:
             alias: src
             Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
             Filter Operator
-              predicate: (((((key <> '305') and (key <> '14')) and (key <> 
'302')) and (key <> '311')) and (key < '400')) (type: boolean)
+              predicate: (((((key <> '305') and (key <> '302')) and (key < 
'400')) and (key <> '14')) and (key <> '311')) (type: boolean)
               Statistics: Num rows: 166 Data size: 1763 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
                 expressions: key (type: string), value (type: string)
@@ -97,7 +97,7 @@ STAGE PLANS:
             alias: src
             Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
             Filter Operator
-              predicate: (((key <> '306') and (sqrt(key) <> 13.0)) and value 
is not null) (type: boolean)
+              predicate: (((key <> '306') and value is not null) and 
(sqrt(key) <> 13.0)) (type: boolean)
               Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
                 expressions: value (type: string)
@@ -1723,7 +1723,7 @@ STAGE PLANS:
             alias: src
             Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
             Filter Operator
-              predicate: (((((((key <> '302') and (key <> '311')) and ((value 
<> 'val_50') or (key > '1'))) and (key < '400')) and (key <> '305')) and (key 
<> '14')) and value is not null) (type: boolean)
+              predicate: (((((((key <> '302') and (key < '400')) and (key <> 
'305')) and value is not null) and (key <> '311')) and ((value <> 'val_50') or 
(key > '1'))) and (key <> '14')) (type: boolean)
               Statistics: Num rows: 166 Data size: 1763 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
                 expressions: key (type: string), value (type: string)
@@ -1739,7 +1739,7 @@ STAGE PLANS:
             alias: src
             Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
             Filter Operator
-              predicate: (((((key <> '305') and (key <> '14')) and (key <> 
'302')) and (key <> '311')) and (key < '400')) (type: boolean)
+              predicate: (((((key <> '305') and (key <> '302')) and (key < 
'400')) and (key <> '14')) and (key <> '311')) (type: boolean)
               Statistics: Num rows: 166 Data size: 1763 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
                 expressions: key (type: string), value (type: string)
@@ -1781,7 +1781,7 @@ STAGE PLANS:
             alias: src
             Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
             Filter Operator
-              predicate: (((key <> '306') and (sqrt(key) <> 13.0)) and value 
is not null) (type: boolean)
+              predicate: (((key <> '306') and value is not null) and 
(sqrt(key) <> 13.0)) (type: boolean)
               Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
                 expressions: value (type: string)

Reply via email to