You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by jc...@apache.org on 2017/12/12 23:58:49 UTC

[2/5] hive git commit: HIVE-18068: Upgrade to Calcite 1.15 (Jesus Camacho Rodriguez, reviewed by Ashutosh Chauhan)

http://git-wip-us.apache.org/repos/asf/hive/blob/095e6bf8/ql/src/test/results/clientpositive/perf/tez/query4.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query4.q.out b/ql/src/test/results/clientpositive/perf/tez/query4.q.out
index 81867b9..c56fae0 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query4.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query4.q.out
@@ -246,255 +246,255 @@ Stage-0
       File Output Operator [FS_142]
         Limit [LIM_141] (rows=100 width=88)
           Number of rows:100
-          Select Operator [SEL_140] (rows=479156399 width=88)
+          Select Operator [SEL_140] (rows=212958399 width=88)
             Output:["_col0"]
           <-Reducer 5 [SIMPLE_EDGE]
             SHUFFLE [RS_139]
-              Select Operator [SEL_138] (rows=479156399 width=88)
+              Select Operator [SEL_138] (rows=212958399 width=88)
                 Output:["_col0"]
-                Filter Operator [FIL_136] (rows=479156399 width=88)
-                  predicate:(CASE WHEN ((_col15 > 0)) THEN (CASE WHEN ((_col23 > 0)) THEN (((_col39 / _col23) > (_col47 / _col15))) ELSE ((null > (_col47 / _col15))) END) ELSE (CASE WHEN ((_col23 > 0)) THEN (((_col39 / _col23) > null)) ELSE (null) END) END and CASE WHEN ((_col31 > 0)) THEN (CASE WHEN ((_col23 > 0)) THEN (((_col39 / _col23) > (_col7 / _col31))) ELSE ((null > (_col7 / _col31))) END) ELSE (CASE WHEN ((_col23 > 0)) THEN (((_col39 / _col23) > null)) ELSE (null) END) END)
+                Filter Operator [FIL_136] (rows=212958399 width=88)
+                  predicate:(((_col7 / _col31) > (_col23 / _col15)) and ((_col7 / _col31) > (_col39 / _col47)))
                   Merge Join Operator [MERGEJOIN_296] (rows=1916625598 width=88)
-                    Conds:RS_129._col0=RS_130._col0(Inner),RS_130._col0=RS_131._col0(Inner),RS_130._col0=RS_132._col0(Inner),RS_130._col0=RS_133._col0(Inner),RS_130._col0=RS_134._col0(Inner),Output:["_col7","_col15","_col23","_col31","_col39","_col43","_col47"]
+                    Conds:RS_129._col0=RS_130._col0(Inner),RS_130._col0=RS_131._col0(Inner),RS_130._col0=RS_132._col0(Inner),RS_130._col0=RS_133._col0(Inner),RS_130._col0=RS_134._col0(Inner),Output:["_col7","_col15","_col19","_col23","_col31","_col39","_col47"]
                   <-Reducer 13 [SIMPLE_EDGE]
-                    SHUFFLE [RS_133]
+                    SHUFFLE [RS_131]
                       PartitionCols:_col0
-                      Select Operator [SEL_107] (rows=174233858 width=135)
-                        Output:["_col0","_col7"]
-                        Group By Operator [GBY_106] (rows=174233858 width=135)
+                      Select Operator [SEL_63] (rows=348477374 width=88)
+                        Output:["_col0","_col3","_col7"]
+                        Group By Operator [GBY_62] (rows=348477374 width=88)
                           Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6
                         <-Reducer 12 [SIMPLE_EDGE]
-                          SHUFFLE [RS_105]
+                          SHUFFLE [RS_61]
                             PartitionCols:_col0, _col1, _col2, _col3, _col4, _col5, _col6
-                            Group By Operator [GBY_104] (rows=348467716 width=135)
+                            Group By Operator [GBY_60] (rows=696954748 width=88)
                               Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(_col7)"],keys:_col0, _col1, _col2, _col3, _col4, _col5, _col6
-                              Select Operator [SEL_102] (rows=348467716 width=135)
+                              Select Operator [SEL_58] (rows=696954748 width=88)
                                 Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                                Merge Join Operator [MERGEJOIN_293] (rows=348467716 width=135)
-                                  Conds:RS_99._col1=RS_100._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col9","_col10","_col11","_col12","_col13","_col14","_col15"]
+                                Merge Join Operator [MERGEJOIN_289] (rows=696954748 width=88)
+                                  Conds:RS_55._col1=RS_56._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col9","_col10","_col11","_col12","_col13","_col14","_col15"]
                                 <-Map 25 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_100]
+                                  SHUFFLE [RS_56]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_116] (rows=80000000 width=860)
+                                    Select Operator [SEL_94] (rows=80000000 width=860)
                                       Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                                      Filter Operator [FIL_280] (rows=80000000 width=860)
+                                      Filter Operator [FIL_277] (rows=80000000 width=860)
                                         predicate:(c_customer_id is not null and c_customer_sk is not null)
-                                        TableScan [TS_114] (rows=80000000 width=860)
+                                        TableScan [TS_92] (rows=80000000 width=860)
                                           default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_customer_id","c_first_name","c_last_name","c_preferred_cust_flag","c_birth_country","c_login","c_email_address"]
                                 <-Reducer 11 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_99]
+                                  SHUFFLE [RS_55]
                                     PartitionCols:_col1
-                                    Merge Join Operator [MERGEJOIN_292] (rows=316788826 width=135)
-                                      Conds:RS_96._col0=RS_97._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
+                                    Merge Join Operator [MERGEJOIN_288] (rows=633595212 width=88)
+                                      Conds:RS_52._col0=RS_53._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
                                     <-Map 24 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_97]
+                                      SHUFFLE [RS_53]
                                         PartitionCols:_col0
-                                        Select Operator [SEL_113] (rows=36524 width=1119)
+                                        Select Operator [SEL_91] (rows=36524 width=1119)
                                           Output:["_col0"]
-                                          Filter Operator [FIL_279] (rows=36524 width=1119)
+                                          Filter Operator [FIL_276] (rows=36524 width=1119)
                                             predicate:((d_year = 2002) and d_date_sk is not null)
-                                            TableScan [TS_111] (rows=73049 width=1119)
+                                            TableScan [TS_89] (rows=73049 width=1119)
                                               default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
                                     <-Map 10 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_96]
+                                      SHUFFLE [RS_52]
                                         PartitionCols:_col0
-                                        Select Operator [SEL_89] (rows=287989836 width=135)
+                                        Select Operator [SEL_45] (rows=575995635 width=88)
                                           Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                          Filter Operator [FIL_275] (rows=287989836 width=135)
-                                            predicate:(cs_bill_customer_sk is not null and cs_sold_date_sk is not null)
-                                            TableScan [TS_87] (rows=287989836 width=135)
-                                              default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_ext_discount_amt","cs_ext_sales_price","cs_ext_wholesale_cost","cs_ext_list_price"]
+                                          Filter Operator [FIL_269] (rows=575995635 width=88)
+                                            predicate:(ss_customer_sk is not null and ss_sold_date_sk is not null)
+                                            TableScan [TS_43] (rows=575995635 width=88)
+                                              default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_customer_sk","ss_ext_discount_amt","ss_ext_sales_price","ss_ext_wholesale_cost","ss_ext_list_price"]
                   <-Reducer 16 [SIMPLE_EDGE]
-                    SHUFFLE [RS_131]
+                    SHUFFLE [RS_130]
                       PartitionCols:_col0
-                      Filter Operator [FIL_63] (rows=58077952 width=135)
+                      Filter Operator [FIL_41] (rows=116159124 width=88)
                         predicate:(_col7 > 0)
-                        Select Operator [SEL_281] (rows=174233858 width=135)
+                        Select Operator [SEL_283] (rows=348477374 width=88)
                           Output:["_col0","_col7"]
-                          Group By Operator [GBY_62] (rows=174233858 width=135)
+                          Group By Operator [GBY_40] (rows=348477374 width=88)
                             Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6
                           <-Reducer 15 [SIMPLE_EDGE]
-                            SHUFFLE [RS_61]
+                            SHUFFLE [RS_39]
                               PartitionCols:_col0, _col1, _col2, _col3, _col4, _col5, _col6
-                              Group By Operator [GBY_60] (rows=348467716 width=135)
+                              Group By Operator [GBY_38] (rows=696954748 width=88)
                                 Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(_col7)"],keys:_col0, _col1, _col2, _col3, _col4, _col5, _col6
-                                Select Operator [SEL_58] (rows=348467716 width=135)
+                                Select Operator [SEL_36] (rows=696954748 width=88)
                                   Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                                  Merge Join Operator [MERGEJOIN_289] (rows=348467716 width=135)
-                                    Conds:RS_55._col1=RS_56._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col9","_col10","_col11","_col12","_col13","_col14","_col15"]
+                                  Merge Join Operator [MERGEJOIN_287] (rows=696954748 width=88)
+                                    Conds:RS_33._col1=RS_34._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col9","_col10","_col11","_col12","_col13","_col14","_col15"]
                                   <-Map 25 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_56]
+                                    SHUFFLE [RS_34]
                                       PartitionCols:_col0
-                                       Please refer to the previous Select Operator [SEL_116]
+                                       Please refer to the previous Select Operator [SEL_94]
                                   <-Reducer 14 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_55]
+                                    SHUFFLE [RS_33]
                                       PartitionCols:_col1
-                                      Merge Join Operator [MERGEJOIN_288] (rows=316788826 width=135)
-                                        Conds:RS_52._col0=RS_53._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
+                                      Merge Join Operator [MERGEJOIN_286] (rows=633595212 width=88)
+                                        Conds:RS_30._col0=RS_31._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
                                       <-Map 24 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_53]
+                                        SHUFFLE [RS_31]
                                           PartitionCols:_col0
-                                          Select Operator [SEL_48] (rows=36524 width=1119)
+                                          Select Operator [SEL_26] (rows=36524 width=1119)
                                             Output:["_col0"]
-                                            Filter Operator [FIL_270] (rows=36524 width=1119)
+                                            Filter Operator [FIL_267] (rows=36524 width=1119)
                                               predicate:((d_year = 2001) and d_date_sk is not null)
-                                               Please refer to the previous TableScan [TS_111]
+                                               Please refer to the previous TableScan [TS_89]
                                       <-Map 10 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_52]
+                                        SHUFFLE [RS_30]
                                           PartitionCols:_col0
-                                           Please refer to the previous Select Operator [SEL_89]
+                                           Please refer to the previous Select Operator [SEL_45]
                   <-Reducer 20 [SIMPLE_EDGE]
-                    SHUFFLE [RS_134]
+                    SHUFFLE [RS_133]
                       PartitionCols:_col0
-                      Select Operator [SEL_128] (rows=348477374 width=88)
-                        Output:["_col0","_col3","_col7"]
-                        Group By Operator [GBY_127] (rows=348477374 width=88)
+                      Select Operator [SEL_106] (rows=87121617 width=135)
+                        Output:["_col0","_col7"]
+                        Group By Operator [GBY_105] (rows=87121617 width=135)
                           Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6
                         <-Reducer 19 [SIMPLE_EDGE]
-                          SHUFFLE [RS_126]
+                          SHUFFLE [RS_104]
                             PartitionCols:_col0, _col1, _col2, _col3, _col4, _col5, _col6
-                            Group By Operator [GBY_125] (rows=696954748 width=88)
+                            Group By Operator [GBY_103] (rows=174243235 width=135)
                               Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(_col7)"],keys:_col0, _col1, _col2, _col3, _col4, _col5, _col6
-                              Select Operator [SEL_123] (rows=696954748 width=88)
+                              Select Operator [SEL_101] (rows=174243235 width=135)
                                 Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                                Merge Join Operator [MERGEJOIN_295] (rows=696954748 width=88)
-                                  Conds:RS_120._col1=RS_121._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col9","_col10","_col11","_col12","_col13","_col14","_col15"]
+                                Merge Join Operator [MERGEJOIN_293] (rows=174243235 width=135)
+                                  Conds:RS_98._col1=RS_99._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col9","_col10","_col11","_col12","_col13","_col14","_col15"]
                                 <-Map 25 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_121]
+                                  SHUFFLE [RS_99]
                                     PartitionCols:_col0
-                                     Please refer to the previous Select Operator [SEL_116]
+                                     Please refer to the previous Select Operator [SEL_94]
                                 <-Reducer 18 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_120]
+                                  SHUFFLE [RS_98]
                                     PartitionCols:_col1
-                                    Merge Join Operator [MERGEJOIN_294] (rows=633595212 width=88)
-                                      Conds:RS_117._col0=RS_118._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
+                                    Merge Join Operator [MERGEJOIN_292] (rows=158402938 width=135)
+                                      Conds:RS_95._col0=RS_96._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
                                     <-Map 24 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_118]
+                                      SHUFFLE [RS_96]
                                         PartitionCols:_col0
-                                         Please refer to the previous Select Operator [SEL_113]
+                                         Please refer to the previous Select Operator [SEL_91]
                                     <-Map 17 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_117]
+                                      SHUFFLE [RS_95]
                                         PartitionCols:_col0
-                                        Select Operator [SEL_110] (rows=575995635 width=88)
+                                        Select Operator [SEL_88] (rows=144002668 width=135)
                                           Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                          Filter Operator [FIL_278] (rows=575995635 width=88)
-                                            predicate:(ss_customer_sk is not null and ss_sold_date_sk is not null)
-                                            TableScan [TS_108] (rows=575995635 width=88)
-                                              default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_customer_sk","ss_ext_discount_amt","ss_ext_sales_price","ss_ext_wholesale_cost","ss_ext_list_price"]
+                                          Filter Operator [FIL_275] (rows=144002668 width=135)
+                                            predicate:(ws_bill_customer_sk is not null and ws_sold_date_sk is not null)
+                                            TableScan [TS_86] (rows=144002668 width=135)
+                                              default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_bill_customer_sk","ws_ext_discount_amt","ws_ext_sales_price","ws_ext_wholesale_cost","ws_ext_list_price"]
                   <-Reducer 23 [SIMPLE_EDGE]
-                    SHUFFLE [RS_130]
+                    SHUFFLE [RS_134]
                       PartitionCols:_col0
-                      Filter Operator [FIL_41] (rows=116159124 width=88)
+                      Filter Operator [FIL_127] (rows=29040539 width=135)
                         predicate:(_col7 > 0)
-                        Select Operator [SEL_283] (rows=348477374 width=88)
+                        Select Operator [SEL_282] (rows=87121617 width=135)
                           Output:["_col0","_col7"]
-                          Group By Operator [GBY_40] (rows=348477374 width=88)
+                          Group By Operator [GBY_126] (rows=87121617 width=135)
                             Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6
                           <-Reducer 22 [SIMPLE_EDGE]
-                            SHUFFLE [RS_39]
+                            SHUFFLE [RS_125]
                               PartitionCols:_col0, _col1, _col2, _col3, _col4, _col5, _col6
-                              Group By Operator [GBY_38] (rows=696954748 width=88)
+                              Group By Operator [GBY_124] (rows=174243235 width=135)
                                 Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(_col7)"],keys:_col0, _col1, _col2, _col3, _col4, _col5, _col6
-                                Select Operator [SEL_36] (rows=696954748 width=88)
+                                Select Operator [SEL_122] (rows=174243235 width=135)
                                   Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                                  Merge Join Operator [MERGEJOIN_287] (rows=696954748 width=88)
-                                    Conds:RS_33._col1=RS_34._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col9","_col10","_col11","_col12","_col13","_col14","_col15"]
+                                  Merge Join Operator [MERGEJOIN_295] (rows=174243235 width=135)
+                                    Conds:RS_119._col1=RS_120._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col9","_col10","_col11","_col12","_col13","_col14","_col15"]
                                   <-Map 25 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_34]
+                                    SHUFFLE [RS_120]
                                       PartitionCols:_col0
-                                       Please refer to the previous Select Operator [SEL_116]
+                                       Please refer to the previous Select Operator [SEL_94]
                                   <-Reducer 21 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_33]
+                                    SHUFFLE [RS_119]
                                       PartitionCols:_col1
-                                      Merge Join Operator [MERGEJOIN_286] (rows=633595212 width=88)
-                                        Conds:RS_30._col0=RS_31._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
+                                      Merge Join Operator [MERGEJOIN_294] (rows=158402938 width=135)
+                                        Conds:RS_116._col0=RS_117._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
                                       <-Map 24 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_31]
+                                        SHUFFLE [RS_117]
                                           PartitionCols:_col0
-                                          Select Operator [SEL_26] (rows=36524 width=1119)
+                                          Select Operator [SEL_112] (rows=36524 width=1119)
                                             Output:["_col0"]
-                                            Filter Operator [FIL_267] (rows=36524 width=1119)
+                                            Filter Operator [FIL_279] (rows=36524 width=1119)
                                               predicate:((d_year = 2001) and d_date_sk is not null)
-                                               Please refer to the previous TableScan [TS_111]
+                                               Please refer to the previous TableScan [TS_89]
                                       <-Map 17 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_30]
+                                        SHUFFLE [RS_116]
                                           PartitionCols:_col0
-                                           Please refer to the previous Select Operator [SEL_110]
+                                           Please refer to the previous Select Operator [SEL_88]
                   <-Reducer 4 [SIMPLE_EDGE]
                     SHUFFLE [RS_129]
                       PartitionCols:_col0
-                      Select Operator [SEL_20] (rows=87121617 width=135)
+                      Select Operator [SEL_20] (rows=174233858 width=135)
                         Output:["_col0","_col7"]
-                        Group By Operator [GBY_19] (rows=87121617 width=135)
+                        Group By Operator [GBY_19] (rows=174233858 width=135)
                           Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6
                         <-Reducer 3 [SIMPLE_EDGE]
                           SHUFFLE [RS_18]
                             PartitionCols:_col0, _col1, _col2, _col3, _col4, _col5, _col6
-                            Group By Operator [GBY_17] (rows=174243235 width=135)
+                            Group By Operator [GBY_17] (rows=348467716 width=135)
                               Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(_col7)"],keys:_col0, _col1, _col2, _col3, _col4, _col5, _col6
-                              Select Operator [SEL_15] (rows=174243235 width=135)
+                              Select Operator [SEL_15] (rows=348467716 width=135)
                                 Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                                Merge Join Operator [MERGEJOIN_285] (rows=174243235 width=135)
+                                Merge Join Operator [MERGEJOIN_285] (rows=348467716 width=135)
                                   Conds:RS_12._col1=RS_13._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col9","_col10","_col11","_col12","_col13","_col14","_col15"]
                                 <-Map 25 [SIMPLE_EDGE]
                                   SHUFFLE [RS_13]
                                     PartitionCols:_col0
-                                     Please refer to the previous Select Operator [SEL_116]
+                                     Please refer to the previous Select Operator [SEL_94]
                                 <-Reducer 2 [SIMPLE_EDGE]
                                   SHUFFLE [RS_12]
                                     PartitionCols:_col1
-                                    Merge Join Operator [MERGEJOIN_284] (rows=158402938 width=135)
+                                    Merge Join Operator [MERGEJOIN_284] (rows=316788826 width=135)
                                       Conds:RS_9._col0=RS_10._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
                                     <-Map 24 [SIMPLE_EDGE]
                                       SHUFFLE [RS_10]
                                         PartitionCols:_col0
-                                         Please refer to the previous Select Operator [SEL_113]
+                                         Please refer to the previous Select Operator [SEL_91]
                                     <-Map 1 [SIMPLE_EDGE]
                                       SHUFFLE [RS_9]
                                         PartitionCols:_col0
-                                        Select Operator [SEL_2] (rows=144002668 width=135)
+                                        Select Operator [SEL_2] (rows=287989836 width=135)
                                           Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                          Filter Operator [FIL_263] (rows=144002668 width=135)
-                                            predicate:(ws_bill_customer_sk is not null and ws_sold_date_sk is not null)
-                                            TableScan [TS_0] (rows=144002668 width=135)
-                                              default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_bill_customer_sk","ws_ext_discount_amt","ws_ext_sales_price","ws_ext_wholesale_cost","ws_ext_list_price"]
+                                          Filter Operator [FIL_263] (rows=287989836 width=135)
+                                            predicate:(cs_bill_customer_sk is not null and cs_sold_date_sk is not null)
+                                            TableScan [TS_0] (rows=287989836 width=135)
+                                              default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_ext_discount_amt","cs_ext_sales_price","cs_ext_wholesale_cost","cs_ext_list_price"]
                   <-Reducer 9 [SIMPLE_EDGE]
                     SHUFFLE [RS_132]
                       PartitionCols:_col0
-                      Filter Operator [FIL_85] (rows=29040539 width=135)
+                      Filter Operator [FIL_84] (rows=58077952 width=135)
                         predicate:(_col7 > 0)
-                        Select Operator [SEL_282] (rows=87121617 width=135)
+                        Select Operator [SEL_281] (rows=174233858 width=135)
                           Output:["_col0","_col7"]
-                          Group By Operator [GBY_84] (rows=87121617 width=135)
+                          Group By Operator [GBY_83] (rows=174233858 width=135)
                             Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6
                           <-Reducer 8 [SIMPLE_EDGE]
-                            SHUFFLE [RS_83]
+                            SHUFFLE [RS_82]
                               PartitionCols:_col0, _col1, _col2, _col3, _col4, _col5, _col6
-                              Group By Operator [GBY_82] (rows=174243235 width=135)
+                              Group By Operator [GBY_81] (rows=348467716 width=135)
                                 Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(_col7)"],keys:_col0, _col1, _col2, _col3, _col4, _col5, _col6
-                                Select Operator [SEL_80] (rows=174243235 width=135)
+                                Select Operator [SEL_79] (rows=348467716 width=135)
                                   Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                                  Merge Join Operator [MERGEJOIN_291] (rows=174243235 width=135)
-                                    Conds:RS_77._col1=RS_78._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col9","_col10","_col11","_col12","_col13","_col14","_col15"]
+                                  Merge Join Operator [MERGEJOIN_291] (rows=348467716 width=135)
+                                    Conds:RS_76._col1=RS_77._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col9","_col10","_col11","_col12","_col13","_col14","_col15"]
                                   <-Map 25 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_78]
+                                    SHUFFLE [RS_77]
                                       PartitionCols:_col0
-                                       Please refer to the previous Select Operator [SEL_116]
+                                       Please refer to the previous Select Operator [SEL_94]
                                   <-Reducer 7 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_77]
+                                    SHUFFLE [RS_76]
                                       PartitionCols:_col1
-                                      Merge Join Operator [MERGEJOIN_290] (rows=158402938 width=135)
-                                        Conds:RS_74._col0=RS_75._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
+                                      Merge Join Operator [MERGEJOIN_290] (rows=316788826 width=135)
+                                        Conds:RS_73._col0=RS_74._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
                                       <-Map 24 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_75]
+                                        SHUFFLE [RS_74]
                                           PartitionCols:_col0
-                                          Select Operator [SEL_70] (rows=36524 width=1119)
+                                          Select Operator [SEL_69] (rows=36524 width=1119)
                                             Output:["_col0"]
                                             Filter Operator [FIL_273] (rows=36524 width=1119)
                                               predicate:((d_year = 2001) and d_date_sk is not null)
-                                               Please refer to the previous TableScan [TS_111]
+                                               Please refer to the previous TableScan [TS_89]
                                       <-Map 1 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_74]
+                                        SHUFFLE [RS_73]
                                           PartitionCols:_col0
                                            Please refer to the previous Select Operator [SEL_2]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/095e6bf8/ql/src/test/results/clientpositive/perf/tez/query74.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query74.q.out b/ql/src/test/results/clientpositive/perf/tez/query74.q.out
index a75aaa1..a0f5082 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query74.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query74.q.out
@@ -144,29 +144,29 @@ Stage-0
       File Output Operator [FS_92]
         Limit [LIM_91] (rows=100 width=88)
           Number of rows:100
-          Select Operator [SEL_90] (rows=574987679 width=88)
+          Select Operator [SEL_90] (rows=383325119 width=88)
             Output:["_col0","_col1","_col2"]
           <-Reducer 5 [SIMPLE_EDGE]
             SHUFFLE [RS_89]
-              Select Operator [SEL_88] (rows=574987679 width=88)
+              Select Operator [SEL_88] (rows=383325119 width=88)
                 Output:["_col0","_col1","_col2"]
-                Filter Operator [FIL_87] (rows=574987679 width=88)
-                  predicate:CASE WHEN ((_col9 > 0)) THEN (CASE WHEN ((_col14 > 0)) THEN (((_col4 / _col14) > (_col19 / _col9))) ELSE ((null > (_col19 / _col9))) END) ELSE (CASE WHEN ((_col14 > 0)) THEN (((_col4 / _col14) > null)) ELSE (null) END) END
+                Filter Operator [FIL_87] (rows=383325119 width=88)
+                  predicate:((_col19 / _col4) > (_col14 / _col9))
                   Merge Join Operator [MERGEJOIN_171] (rows=1149975359 width=88)
-                    Conds:RS_82._col0=RS_83._col0(Inner),RS_83._col0=RS_84._col0(Inner),RS_83._col0=RS_85._col0(Inner),Output:["_col4","_col9","_col14","_col15","_col16","_col17","_col19"]
+                    Conds:RS_82._col0=RS_83._col0(Inner),RS_83._col0=RS_84._col0(Inner),RS_83._col0=RS_85._col0(Inner),Output:["_col4","_col9","_col10","_col11","_col12","_col14","_col19"]
                   <-Reducer 13 [SIMPLE_EDGE]
                     SHUFFLE [RS_85]
                       PartitionCols:_col0
-                      Select Operator [SEL_81] (rows=348477374 width=88)
-                        Output:["_col0","_col1","_col2","_col4"]
-                        Group By Operator [GBY_80] (rows=348477374 width=88)
+                      Select Operator [SEL_81] (rows=87121617 width=135)
+                        Output:["_col0","_col4"]
+                        Group By Operator [GBY_80] (rows=87121617 width=135)
                           Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["max(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3
                         <-Reducer 12 [SIMPLE_EDGE]
                           SHUFFLE [RS_79]
                             PartitionCols:_col0, _col1, _col2, _col3
-                            Group By Operator [GBY_78] (rows=696954748 width=88)
+                            Group By Operator [GBY_78] (rows=174243235 width=135)
                               Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["max(_col2)"],keys:_col6, _col7, _col8, _col4
-                              Merge Join Operator [MERGEJOIN_170] (rows=696954748 width=88)
+                              Merge Join Operator [MERGEJOIN_170] (rows=174243235 width=135)
                                 Conds:RS_74._col1=RS_75._col0(Inner),Output:["_col2","_col4","_col6","_col7","_col8"]
                               <-Map 18 [SIMPLE_EDGE]
                                 SHUFFLE [RS_75]
@@ -180,7 +180,7 @@ Stage-0
                               <-Reducer 11 [SIMPLE_EDGE]
                                 SHUFFLE [RS_74]
                                   PartitionCols:_col1
-                                  Merge Join Operator [MERGEJOIN_169] (rows=633595212 width=88)
+                                  Merge Join Operator [MERGEJOIN_169] (rows=158402938 width=135)
                                     Conds:RS_71._col0=RS_72._col0(Inner),Output:["_col1","_col2","_col4"]
                                   <-Map 17 [SIMPLE_EDGE]
                                     SHUFFLE [RS_72]
@@ -194,120 +194,120 @@ Stage-0
                                   <-Map 10 [SIMPLE_EDGE]
                                     SHUFFLE [RS_71]
                                       PartitionCols:_col0
-                                      Select Operator [SEL_64] (rows=575995635 width=88)
+                                      Select Operator [SEL_64] (rows=144002668 width=135)
                                         Output:["_col0","_col1","_col2"]
-                                        Filter Operator [FIL_158] (rows=575995635 width=88)
-                                          predicate:(ss_customer_sk is not null and ss_sold_date_sk is not null)
-                                          TableScan [TS_62] (rows=575995635 width=88)
-                                            default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_customer_sk","ss_net_paid"]
+                                        Filter Operator [FIL_158] (rows=144002668 width=135)
+                                          predicate:(ws_bill_customer_sk is not null and ws_sold_date_sk is not null)
+                                          TableScan [TS_62] (rows=144002668 width=135)
+                                            default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_bill_customer_sk","ws_net_paid"]
                   <-Reducer 16 [SIMPLE_EDGE]
-                    SHUFFLE [RS_83]
+                    SHUFFLE [RS_82]
                       PartitionCols:_col0
-                      Filter Operator [FIL_39] (rows=116159124 width=88)
+                      Filter Operator [FIL_19] (rows=29040539 width=135)
                         predicate:(_col4 > 0)
-                        Select Operator [SEL_162] (rows=348477374 width=88)
+                        Select Operator [SEL_161] (rows=87121617 width=135)
                           Output:["_col0","_col4"]
-                          Group By Operator [GBY_38] (rows=348477374 width=88)
+                          Group By Operator [GBY_18] (rows=87121617 width=135)
                             Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["max(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3
                           <-Reducer 15 [SIMPLE_EDGE]
-                            SHUFFLE [RS_37]
+                            SHUFFLE [RS_17]
                               PartitionCols:_col0, _col1, _col2, _col3
-                              Group By Operator [GBY_36] (rows=696954748 width=88)
+                              Group By Operator [GBY_16] (rows=174243235 width=135)
                                 Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["max(_col2)"],keys:_col6, _col7, _col8, _col4
-                                Merge Join Operator [MERGEJOIN_166] (rows=696954748 width=88)
-                                  Conds:RS_32._col1=RS_33._col0(Inner),Output:["_col2","_col4","_col6","_col7","_col8"]
+                                Merge Join Operator [MERGEJOIN_164] (rows=174243235 width=135)
+                                  Conds:RS_12._col1=RS_13._col0(Inner),Output:["_col2","_col4","_col6","_col7","_col8"]
                                 <-Map 18 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_33]
+                                  SHUFFLE [RS_13]
                                     PartitionCols:_col0
                                      Please refer to the previous Select Operator [SEL_70]
                                 <-Reducer 14 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_32]
+                                  SHUFFLE [RS_12]
                                     PartitionCols:_col1
-                                    Merge Join Operator [MERGEJOIN_165] (rows=633595212 width=88)
-                                      Conds:RS_29._col0=RS_30._col0(Inner),Output:["_col1","_col2","_col4"]
+                                    Merge Join Operator [MERGEJOIN_163] (rows=158402938 width=135)
+                                      Conds:RS_9._col0=RS_10._col0(Inner),Output:["_col1","_col2","_col4"]
                                     <-Map 17 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_30]
+                                      SHUFFLE [RS_10]
                                         PartitionCols:_col0
-                                        Select Operator [SEL_25] (rows=18262 width=1119)
+                                        Select Operator [SEL_5] (rows=18262 width=1119)
                                           Output:["_col0","_col1"]
-                                          Filter Operator [FIL_153] (rows=18262 width=1119)
+                                          Filter Operator [FIL_150] (rows=18262 width=1119)
                                             predicate:((d_year = 2001) and (d_year) IN (2001, 2002) and d_date_sk is not null)
                                              Please refer to the previous TableScan [TS_65]
                                     <-Map 10 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_29]
+                                      SHUFFLE [RS_9]
                                         PartitionCols:_col0
                                          Please refer to the previous Select Operator [SEL_64]
                   <-Reducer 4 [SIMPLE_EDGE]
-                    SHUFFLE [RS_82]
+                    SHUFFLE [RS_84]
                       PartitionCols:_col0
-                      Select Operator [SEL_19] (rows=87121617 width=135)
-                        Output:["_col0","_col4"]
-                        Group By Operator [GBY_18] (rows=87121617 width=135)
+                      Select Operator [SEL_61] (rows=348477374 width=88)
+                        Output:["_col0","_col1","_col2","_col4"]
+                        Group By Operator [GBY_60] (rows=348477374 width=88)
                           Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["max(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3
                         <-Reducer 3 [SIMPLE_EDGE]
-                          SHUFFLE [RS_17]
+                          SHUFFLE [RS_59]
                             PartitionCols:_col0, _col1, _col2, _col3
-                            Group By Operator [GBY_16] (rows=174243235 width=135)
+                            Group By Operator [GBY_58] (rows=696954748 width=88)
                               Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["max(_col2)"],keys:_col6, _col7, _col8, _col4
-                              Merge Join Operator [MERGEJOIN_164] (rows=174243235 width=135)
-                                Conds:RS_12._col1=RS_13._col0(Inner),Output:["_col2","_col4","_col6","_col7","_col8"]
+                              Merge Join Operator [MERGEJOIN_168] (rows=696954748 width=88)
+                                Conds:RS_54._col1=RS_55._col0(Inner),Output:["_col2","_col4","_col6","_col7","_col8"]
                               <-Map 18 [SIMPLE_EDGE]
-                                SHUFFLE [RS_13]
+                                SHUFFLE [RS_55]
                                   PartitionCols:_col0
                                    Please refer to the previous Select Operator [SEL_70]
                               <-Reducer 2 [SIMPLE_EDGE]
-                                SHUFFLE [RS_12]
+                                SHUFFLE [RS_54]
                                   PartitionCols:_col1
-                                  Merge Join Operator [MERGEJOIN_163] (rows=158402938 width=135)
-                                    Conds:RS_9._col0=RS_10._col0(Inner),Output:["_col1","_col2","_col4"]
+                                  Merge Join Operator [MERGEJOIN_167] (rows=633595212 width=88)
+                                    Conds:RS_51._col0=RS_52._col0(Inner),Output:["_col1","_col2","_col4"]
                                   <-Map 17 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_10]
+                                    SHUFFLE [RS_52]
                                       PartitionCols:_col0
                                        Please refer to the previous Select Operator [SEL_67]
                                   <-Map 1 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_9]
+                                    SHUFFLE [RS_51]
                                       PartitionCols:_col0
-                                      Select Operator [SEL_2] (rows=144002668 width=135)
+                                      Select Operator [SEL_44] (rows=575995635 width=88)
                                         Output:["_col0","_col1","_col2"]
-                                        Filter Operator [FIL_149] (rows=144002668 width=135)
-                                          predicate:(ws_bill_customer_sk is not null and ws_sold_date_sk is not null)
-                                          TableScan [TS_0] (rows=144002668 width=135)
-                                            default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_bill_customer_sk","ws_net_paid"]
+                                        Filter Operator [FIL_155] (rows=575995635 width=88)
+                                          predicate:(ss_customer_sk is not null and ss_sold_date_sk is not null)
+                                          TableScan [TS_42] (rows=575995635 width=88)
+                                            default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_customer_sk","ss_net_paid"]
                   <-Reducer 9 [SIMPLE_EDGE]
-                    SHUFFLE [RS_84]
+                    SHUFFLE [RS_83]
                       PartitionCols:_col0
-                      Filter Operator [FIL_60] (rows=29040539 width=135)
+                      Filter Operator [FIL_40] (rows=116159124 width=88)
                         predicate:(_col4 > 0)
-                        Select Operator [SEL_161] (rows=87121617 width=135)
+                        Select Operator [SEL_162] (rows=348477374 width=88)
                           Output:["_col0","_col4"]
-                          Group By Operator [GBY_59] (rows=87121617 width=135)
+                          Group By Operator [GBY_39] (rows=348477374 width=88)
                             Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["max(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3
                           <-Reducer 8 [SIMPLE_EDGE]
-                            SHUFFLE [RS_58]
+                            SHUFFLE [RS_38]
                               PartitionCols:_col0, _col1, _col2, _col3
-                              Group By Operator [GBY_57] (rows=174243235 width=135)
+                              Group By Operator [GBY_37] (rows=696954748 width=88)
                                 Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["max(_col2)"],keys:_col6, _col7, _col8, _col4
-                                Merge Join Operator [MERGEJOIN_168] (rows=174243235 width=135)
-                                  Conds:RS_53._col1=RS_54._col0(Inner),Output:["_col2","_col4","_col6","_col7","_col8"]
+                                Merge Join Operator [MERGEJOIN_166] (rows=696954748 width=88)
+                                  Conds:RS_33._col1=RS_34._col0(Inner),Output:["_col2","_col4","_col6","_col7","_col8"]
                                 <-Map 18 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_54]
+                                  SHUFFLE [RS_34]
                                     PartitionCols:_col0
                                      Please refer to the previous Select Operator [SEL_70]
                                 <-Reducer 7 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_53]
+                                  SHUFFLE [RS_33]
                                     PartitionCols:_col1
-                                    Merge Join Operator [MERGEJOIN_167] (rows=158402938 width=135)
-                                      Conds:RS_50._col0=RS_51._col0(Inner),Output:["_col1","_col2","_col4"]
+                                    Merge Join Operator [MERGEJOIN_165] (rows=633595212 width=88)
+                                      Conds:RS_30._col0=RS_31._col0(Inner),Output:["_col1","_col2","_col4"]
                                     <-Map 17 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_51]
+                                      SHUFFLE [RS_31]
                                         PartitionCols:_col0
-                                        Select Operator [SEL_46] (rows=18262 width=1119)
+                                        Select Operator [SEL_26] (rows=18262 width=1119)
                                           Output:["_col0","_col1"]
-                                          Filter Operator [FIL_156] (rows=18262 width=1119)
+                                          Filter Operator [FIL_153] (rows=18262 width=1119)
                                             predicate:((d_year = 2001) and (d_year) IN (2001, 2002) and d_date_sk is not null)
                                              Please refer to the previous TableScan [TS_65]
                                     <-Map 1 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_50]
+                                      SHUFFLE [RS_30]
                                         PartitionCols:_col0
-                                         Please refer to the previous Select Operator [SEL_2]
+                                         Please refer to the previous Select Operator [SEL_44]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/095e6bf8/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 75d0a62..1ef29ae 100644
--- a/ql/src/test/results/clientpositive/ppd_gby_join.q.out
+++ b/ql/src/test/results/clientpositive/ppd_gby_join.q.out
@@ -64,27 +64,20 @@ STAGE PLANS:
           keys:
             0 _col0 (type: string)
             1 _col0 (type: string)
-          outputColumnNames: _col0, _col1
+          outputColumnNames: _col0
           Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
-          Filter Operator
-            predicate: ((_col0 < '50') or (_col1 > '50')) (type: boolean)
-            Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-            Select Operator
-              expressions: _col0 (type: string)
-              outputColumnNames: _col0
-              Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-              Group By Operator
-                aggregations: count()
-                keys: _col0 (type: string)
-                mode: hash
-                outputColumnNames: _col0, _col1
-                Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                File Output Operator
-                  compressed: false
-                  table:
-                      input format: org.apache.hadoop.mapred.SequenceFileInputFormat
-                      output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
-                      serde: org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe
+          Group By Operator
+            aggregations: count()
+            keys: _col0 (type: string)
+            mode: hash
+            outputColumnNames: _col0, _col1
+            Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
+            File Output Operator
+              compressed: false
+              table:
+                  input format: org.apache.hadoop.mapred.SequenceFileInputFormat
+                  output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                  serde: org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe
 
   Stage: Stage-2
     Map Reduce
@@ -94,7 +87,7 @@ STAGE PLANS:
               key expressions: _col0 (type: string)
               sort order: +
               Map-reduce partition columns: _col0 (type: string)
-              Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
+              Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
               value expressions: _col1 (type: bigint)
       Reduce Operator Tree:
         Group By Operator
@@ -102,10 +95,10 @@ STAGE PLANS:
           keys: KEY._col0 (type: string)
           mode: mergepartial
           outputColumnNames: _col0, _col1
-          Statistics: Num rows: 20 Data size: 214 Basic stats: COMPLETE Column stats: NONE
+          Statistics: Num rows: 30 Data size: 321 Basic stats: COMPLETE Column stats: NONE
           File Output Operator
             compressed: false
-            Statistics: Num rows: 20 Data size: 214 Basic stats: COMPLETE Column stats: NONE
+            Statistics: Num rows: 30 Data size: 321 Basic stats: COMPLETE Column stats: NONE
             table:
                 input format: org.apache.hadoop.mapred.SequenceFileInputFormat
                 output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
@@ -334,27 +327,20 @@ STAGE PLANS:
           keys:
             0 _col0 (type: string)
             1 _col0 (type: string)
-          outputColumnNames: _col0, _col1
+          outputColumnNames: _col0
           Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
-          Filter Operator
-            predicate: ((_col0 < '50') or (_col1 > '50')) (type: boolean)
-            Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-            Select Operator
-              expressions: _col0 (type: string)
-              outputColumnNames: _col0
-              Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-              Group By Operator
-                aggregations: count()
-                keys: _col0 (type: string)
-                mode: hash
-                outputColumnNames: _col0, _col1
-                Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                File Output Operator
-                  compressed: false
-                  table:
-                      input format: org.apache.hadoop.mapred.SequenceFileInputFormat
-                      output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
-                      serde: org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe
+          Group By Operator
+            aggregations: count()
+            keys: _col0 (type: string)
+            mode: hash
+            outputColumnNames: _col0, _col1
+            Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
+            File Output Operator
+              compressed: false
+              table:
+                  input format: org.apache.hadoop.mapred.SequenceFileInputFormat
+                  output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                  serde: org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe
 
   Stage: Stage-2
     Map Reduce
@@ -364,7 +350,7 @@ STAGE PLANS:
               key expressions: _col0 (type: string)
               sort order: +
               Map-reduce partition columns: _col0 (type: string)
-              Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
+              Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
               value expressions: _col1 (type: bigint)
       Reduce Operator Tree:
         Group By Operator
@@ -372,10 +358,10 @@ STAGE PLANS:
           keys: KEY._col0 (type: string)
           mode: mergepartial
           outputColumnNames: _col0, _col1
-          Statistics: Num rows: 20 Data size: 214 Basic stats: COMPLETE Column stats: NONE
+          Statistics: Num rows: 30 Data size: 321 Basic stats: COMPLETE Column stats: NONE
           File Output Operator
             compressed: false
-            Statistics: Num rows: 20 Data size: 214 Basic stats: COMPLETE Column stats: NONE
+            Statistics: Num rows: 30 Data size: 321 Basic stats: COMPLETE Column stats: NONE
             table:
                 input format: org.apache.hadoop.mapred.SequenceFileInputFormat
                 output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat

http://git-wip-us.apache.org/repos/asf/hive/blob/095e6bf8/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 02aa5c2..c47f866 100644
--- a/ql/src/test/results/clientpositive/ppd_join.q.out
+++ b/ql/src/test/results/clientpositive/ppd_join.q.out
@@ -62,22 +62,19 @@ STAGE PLANS:
           keys:
             0 _col0 (type: string)
             1 _col0 (type: string)
-          outputColumnNames: _col0, _col1, _col2
+          outputColumnNames: _col0, _col2
           Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
-          Filter Operator
-            predicate: ((_col0 < '50') or (_col1 > '50')) (type: boolean)
-            Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-            Select Operator
-              expressions: _col0 (type: string), _col2 (type: string)
-              outputColumnNames: _col0, _col1
-              Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-              File Output Operator
-                compressed: false
-                Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                table:
-                    input format: org.apache.hadoop.mapred.SequenceFileInputFormat
-                    output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
-                    serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
+          Select Operator
+            expressions: _col0 (type: string), _col2 (type: string)
+            outputColumnNames: _col0, _col1
+            Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
+            File Output Operator
+              compressed: false
+              Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
+              table:
+                  input format: org.apache.hadoop.mapred.SequenceFileInputFormat
+                  output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                  serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
 
   Stage: Stage-0
     Fetch Operator
@@ -587,22 +584,19 @@ STAGE PLANS:
           keys:
             0 _col0 (type: string)
             1 _col0 (type: string)
-          outputColumnNames: _col0, _col1, _col2
+          outputColumnNames: _col0, _col2
           Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
-          Filter Operator
-            predicate: ((_col0 < '50') or (_col1 > '50')) (type: boolean)
-            Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-            Select Operator
-              expressions: _col0 (type: string), _col2 (type: string)
-              outputColumnNames: _col0, _col1
-              Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-              File Output Operator
-                compressed: false
-                Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                table:
-                    input format: org.apache.hadoop.mapred.SequenceFileInputFormat
-                    output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
-                    serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
+          Select Operator
+            expressions: _col0 (type: string), _col2 (type: string)
+            outputColumnNames: _col0, _col1
+            Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
+            File Output Operator
+              compressed: false
+              Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
+              table:
+                  input format: org.apache.hadoop.mapred.SequenceFileInputFormat
+                  output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                  serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
 
   Stage: Stage-0
     Fetch Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/095e6bf8/ql/src/test/results/clientpositive/ppd_join5.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/ppd_join5.q.out b/ql/src/test/results/clientpositive/ppd_join5.q.out
index ca17699..045a170 100644
--- a/ql/src/test/results/clientpositive/ppd_join5.q.out
+++ b/ql/src/test/results/clientpositive/ppd_join5.q.out
@@ -177,7 +177,7 @@ STAGE PLANS:
             alias: a
             Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column stats: NONE
             Filter Operator
-              predicate: (id1 is not null and id2 is not null) (type: boolean)
+              predicate: false (type: boolean)
               Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column stats: NONE
               Select Operator
                 expressions: id1 (type: string), id2 (type: string)
@@ -191,7 +191,7 @@ STAGE PLANS:
             alias: c
             Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column stats: NONE
             Filter Operator
-              predicate: (d <= 1) (type: boolean)
+              predicate: false (type: boolean)
               Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column stats: NONE
               Select Operator
                 expressions: d (type: int)
@@ -231,7 +231,7 @@ STAGE PLANS:
             alias: b
             Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column stats: NONE
             Filter Operator
-              predicate: ((d <= 1) and id is not null) (type: boolean)
+              predicate: false (type: boolean)
               Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column stats: NONE
               Select Operator
                 expressions: id (type: string), d (type: int)
@@ -252,20 +252,17 @@ STAGE PLANS:
             1 _col0 (type: string), _col0 (type: string)
           outputColumnNames: _col0, _col1, _col2, _col4
           Statistics: Num rows: 1 Data size: 7 Basic stats: COMPLETE Column stats: NONE
-          Filter Operator
-            predicate: ((_col2 > 1) or (_col4 > 1)) (type: boolean)
+          Select Operator
+            expressions: _col0 (type: string), _col1 (type: string), _col4 (type: int), _col2 (type: int)
+            outputColumnNames: _col0, _col1, _col2, _col3
             Statistics: Num rows: 1 Data size: 7 Basic stats: COMPLETE Column stats: NONE
-            Select Operator
-              expressions: _col0 (type: string), _col1 (type: string), _col4 (type: int), _col2 (type: int)
-              outputColumnNames: _col0, _col1, _col2, _col3
+            File Output Operator
+              compressed: false
               Statistics: Num rows: 1 Data size: 7 Basic stats: COMPLETE Column stats: NONE
-              File Output Operator
-                compressed: false
-                Statistics: Num rows: 1 Data size: 7 Basic stats: COMPLETE Column stats: NONE
-                table:
-                    input format: org.apache.hadoop.mapred.SequenceFileInputFormat
-                    output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
-                    serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
+              table:
+                  input format: org.apache.hadoop.mapred.SequenceFileInputFormat
+                  output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                  serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
 
   Stage: Stage-0
     Fetch Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/095e6bf8/ql/src/test/results/clientpositive/spark/ppd_gby_join.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/ppd_gby_join.q.out b/ql/src/test/results/clientpositive/spark/ppd_gby_join.q.out
index 1dc1a25..8233b86 100644
--- a/ql/src/test/results/clientpositive/spark/ppd_gby_join.q.out
+++ b/ql/src/test/results/clientpositive/spark/ppd_gby_join.q.out
@@ -72,27 +72,20 @@ STAGE PLANS:
                 keys:
                   0 _col0 (type: string)
                   1 _col0 (type: string)
-                outputColumnNames: _col0, _col1
+                outputColumnNames: _col0
                 Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
-                Filter Operator
-                  predicate: ((_col0 < '50') or (_col1 > '50')) (type: boolean)
-                  Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                  Select Operator
-                    expressions: _col0 (type: string)
-                    outputColumnNames: _col0
-                    Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                    Group By Operator
-                      aggregations: count()
-                      keys: _col0 (type: string)
-                      mode: hash
-                      outputColumnNames: _col0, _col1
-                      Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                      Reduce Output Operator
-                        key expressions: _col0 (type: string)
-                        sort order: +
-                        Map-reduce partition columns: _col0 (type: string)
-                        Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                        value expressions: _col1 (type: bigint)
+                Group By Operator
+                  aggregations: count()
+                  keys: _col0 (type: string)
+                  mode: hash
+                  outputColumnNames: _col0, _col1
+                  Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
+                  Reduce Output Operator
+                    key expressions: _col0 (type: string)
+                    sort order: +
+                    Map-reduce partition columns: _col0 (type: string)
+                    Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
+                    value expressions: _col1 (type: bigint)
         Reducer 3 
             Reduce Operator Tree:
               Group By Operator
@@ -100,10 +93,10 @@ STAGE PLANS:
                 keys: KEY._col0 (type: string)
                 mode: mergepartial
                 outputColumnNames: _col0, _col1
-                Statistics: Num rows: 20 Data size: 214 Basic stats: COMPLETE Column stats: NONE
+                Statistics: Num rows: 30 Data size: 321 Basic stats: COMPLETE Column stats: NONE
                 File Output Operator
                   compressed: false
-                  Statistics: Num rows: 20 Data size: 214 Basic stats: COMPLETE Column stats: NONE
+                  Statistics: Num rows: 30 Data size: 321 Basic stats: COMPLETE Column stats: NONE
                   table:
                       input format: org.apache.hadoop.mapred.SequenceFileInputFormat
                       output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
@@ -340,27 +333,20 @@ STAGE PLANS:
                 keys:
                   0 _col0 (type: string)
                   1 _col0 (type: string)
-                outputColumnNames: _col0, _col1
+                outputColumnNames: _col0
                 Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
-                Filter Operator
-                  predicate: ((_col0 < '50') or (_col1 > '50')) (type: boolean)
-                  Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                  Select Operator
-                    expressions: _col0 (type: string)
-                    outputColumnNames: _col0
-                    Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                    Group By Operator
-                      aggregations: count()
-                      keys: _col0 (type: string)
-                      mode: hash
-                      outputColumnNames: _col0, _col1
-                      Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                      Reduce Output Operator
-                        key expressions: _col0 (type: string)
-                        sort order: +
-                        Map-reduce partition columns: _col0 (type: string)
-                        Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                        value expressions: _col1 (type: bigint)
+                Group By Operator
+                  aggregations: count()
+                  keys: _col0 (type: string)
+                  mode: hash
+                  outputColumnNames: _col0, _col1
+                  Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
+                  Reduce Output Operator
+                    key expressions: _col0 (type: string)
+                    sort order: +
+                    Map-reduce partition columns: _col0 (type: string)
+                    Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
+                    value expressions: _col1 (type: bigint)
         Reducer 3 
             Reduce Operator Tree:
               Group By Operator
@@ -368,10 +354,10 @@ STAGE PLANS:
                 keys: KEY._col0 (type: string)
                 mode: mergepartial
                 outputColumnNames: _col0, _col1
-                Statistics: Num rows: 20 Data size: 214 Basic stats: COMPLETE Column stats: NONE
+                Statistics: Num rows: 30 Data size: 321 Basic stats: COMPLETE Column stats: NONE
                 File Output Operator
                   compressed: false
-                  Statistics: Num rows: 20 Data size: 214 Basic stats: COMPLETE Column stats: NONE
+                  Statistics: Num rows: 30 Data size: 321 Basic stats: COMPLETE Column stats: NONE
                   table:
                       input format: org.apache.hadoop.mapred.SequenceFileInputFormat
                       output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat

http://git-wip-us.apache.org/repos/asf/hive/blob/095e6bf8/ql/src/test/results/clientpositive/spark/ppd_join.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/ppd_join.q.out b/ql/src/test/results/clientpositive/spark/ppd_join.q.out
index dd2c394..260aff3 100644
--- a/ql/src/test/results/clientpositive/spark/ppd_join.q.out
+++ b/ql/src/test/results/clientpositive/spark/ppd_join.q.out
@@ -70,22 +70,19 @@ STAGE PLANS:
                 keys:
                   0 _col0 (type: string)
                   1 _col0 (type: string)
-                outputColumnNames: _col0, _col1, _col2
+                outputColumnNames: _col0, _col2
                 Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
-                Filter Operator
-                  predicate: ((_col0 < '50') or (_col1 > '50')) (type: boolean)
-                  Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                  Select Operator
-                    expressions: _col0 (type: string), _col2 (type: string)
-                    outputColumnNames: _col0, _col1
-                    Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                    File Output Operator
-                      compressed: false
-                      Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                      table:
-                          input format: org.apache.hadoop.mapred.SequenceFileInputFormat
-                          output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
-                          serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
+                Select Operator
+                  expressions: _col0 (type: string), _col2 (type: string)
+                  outputColumnNames: _col0, _col1
+                  Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
+                  File Output Operator
+                    compressed: false
+                    Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
+                    table:
+                        input format: org.apache.hadoop.mapred.SequenceFileInputFormat
+                        output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                        serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
 
   Stage: Stage-0
     Fetch Operator
@@ -603,22 +600,19 @@ STAGE PLANS:
                 keys:
                   0 _col0 (type: string)
                   1 _col0 (type: string)
-                outputColumnNames: _col0, _col1, _col2
+                outputColumnNames: _col0, _col2
                 Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
-                Filter Operator
-                  predicate: ((_col0 < '50') or (_col1 > '50')) (type: boolean)
-                  Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                  Select Operator
-                    expressions: _col0 (type: string), _col2 (type: string)
-                    outputColumnNames: _col0, _col1
-                    Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                    File Output Operator
-                      compressed: false
-                      Statistics: Num rows: 40 Data size: 428 Basic stats: COMPLETE Column stats: NONE
-                      table:
-                          input format: org.apache.hadoop.mapred.SequenceFileInputFormat
-                          output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
-                          serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
+                Select Operator
+                  expressions: _col0 (type: string), _col2 (type: string)
+                  outputColumnNames: _col0, _col1
+                  Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
+                  File Output Operator
+                    compressed: false
+                    Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
+                    table:
+                        input format: org.apache.hadoop.mapred.SequenceFileInputFormat
+                        output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                        serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
 
   Stage: Stage-0
     Fetch Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/095e6bf8/ql/src/test/results/clientpositive/spark/ppd_join5.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/ppd_join5.q.out b/ql/src/test/results/clientpositive/spark/ppd_join5.q.out
index 41817d8..f3c789c 100644
--- a/ql/src/test/results/clientpositive/spark/ppd_join5.q.out
+++ b/ql/src/test/results/clientpositive/spark/ppd_join5.q.out
@@ -182,7 +182,7 @@ STAGE PLANS:
                   alias: a
                   Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column stats: NONE
                   Filter Operator
-                    predicate: (id1 is not null and id2 is not null) (type: boolean)
+                    predicate: false (type: boolean)
                     Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column stats: NONE
                     Select Operator
                       expressions: id1 (type: string), id2 (type: string)
@@ -198,7 +198,7 @@ STAGE PLANS:
                   alias: c
                   Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column stats: NONE
                   Filter Operator
-                    predicate: (d <= 1) (type: boolean)
+                    predicate: false (type: boolean)
                     Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column stats: NONE
                     Select Operator
                       expressions: d (type: int)
@@ -214,7 +214,7 @@ STAGE PLANS:
                   alias: b
                   Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column stats: NONE
                   Filter Operator
-                    predicate: ((d <= 1) and id is not null) (type: boolean)
+                    predicate: false (type: boolean)
                     Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column stats: NONE
                     Select Operator
                       expressions: id (type: string), d (type: int)
@@ -252,20 +252,17 @@ STAGE PLANS:
                   1 _col0 (type: string), _col0 (type: string)
                 outputColumnNames: _col0, _col1, _col2, _col4
                 Statistics: Num rows: 1 Data size: 7 Basic stats: COMPLETE Column stats: NONE
-                Filter Operator
-                  predicate: ((_col2 > 1) or (_col4 > 1)) (type: boolean)
+                Select Operator
+                  expressions: _col0 (type: string), _col1 (type: string), _col4 (type: int), _col2 (type: int)
+                  outputColumnNames: _col0, _col1, _col2, _col3
                   Statistics: Num rows: 1 Data size: 7 Basic stats: COMPLETE Column stats: NONE
-                  Select Operator
-                    expressions: _col0 (type: string), _col1 (type: string), _col4 (type: int), _col2 (type: int)
-                    outputColumnNames: _col0, _col1, _col2, _col3
+                  File Output Operator
+                    compressed: false
                     Statistics: Num rows: 1 Data size: 7 Basic stats: COMPLETE Column stats: NONE
-                    File Output Operator
-                      compressed: false
-                      Statistics: Num rows: 1 Data size: 7 Basic stats: COMPLETE Column stats: NONE
-                      table:
-                          input format: org.apache.hadoop.mapred.SequenceFileInputFormat
-                          output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
-                          serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
+                    table:
+                        input format: org.apache.hadoop.mapred.SequenceFileInputFormat
+                        output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                        serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
 
   Stage: Stage-0
     Fetch Operator