You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2017/04/13 20:50:14 UTC

[09/26] hive git commit: HIVE-15708 : Upgrade calcite version to 1.12 (Remus Rusanu via Ashutosh Chauhan)

http://git-wip-us.apache.org/repos/asf/hive/blob/be59e024/ql/src/test/results/clientpositive/perf/query58.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query58.q.out b/ql/src/test/results/clientpositive/perf/query58.q.out
index df95c70..d03a736 100644
--- a/ql/src/test/results/clientpositive/perf/query58.q.out
+++ b/ql/src/test/results/clientpositive/perf/query58.q.out
@@ -95,264 +95,256 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Reducer 10 <- Map 11 (SIMPLE_EDGE), Map 9 (SIMPLE_EDGE)
-Reducer 15 <- Map 14 (SIMPLE_EDGE), Reducer 20 (SIMPLE_EDGE)
+Reducer 14 <- Map 13 (SIMPLE_EDGE), Reducer 19 (SIMPLE_EDGE)
+Reducer 15 <- Map 21 (SIMPLE_EDGE), Reducer 14 (SIMPLE_EDGE)
 Reducer 16 <- Map 22 (SIMPLE_EDGE), Reducer 15 (SIMPLE_EDGE)
-Reducer 17 <- Map 23 (SIMPLE_EDGE), Reducer 16 (SIMPLE_EDGE)
-Reducer 18 <- Reducer 17 (SIMPLE_EDGE)
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Reducer 10 (SIMPLE_EDGE)
-Reducer 20 <- Map 19 (SIMPLE_EDGE), Map 21 (SIMPLE_EDGE)
-Reducer 25 <- Map 24 (SIMPLE_EDGE), Reducer 30 (SIMPLE_EDGE)
+Reducer 17 <- Reducer 16 (SIMPLE_EDGE)
+Reducer 19 <- Map 18 (SIMPLE_EDGE), Map 20 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
+Reducer 24 <- Map 23 (SIMPLE_EDGE), Reducer 29 (SIMPLE_EDGE)
+Reducer 25 <- Map 31 (SIMPLE_EDGE), Reducer 24 (SIMPLE_EDGE)
 Reducer 26 <- Map 32 (SIMPLE_EDGE), Reducer 25 (SIMPLE_EDGE)
-Reducer 27 <- Map 33 (SIMPLE_EDGE), Reducer 26 (SIMPLE_EDGE)
-Reducer 28 <- Reducer 27 (SIMPLE_EDGE)
-Reducer 3 <- Map 12 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 30 <- Map 29 (SIMPLE_EDGE), Map 31 (SIMPLE_EDGE)
-Reducer 4 <- Map 13 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 27 <- Reducer 26 (SIMPLE_EDGE)
+Reducer 29 <- Map 28 (SIMPLE_EDGE), Map 30 (SIMPLE_EDGE)
+Reducer 3 <- Map 11 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
+Reducer 4 <- Map 12 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
 Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
-Reducer 6 <- Reducer 18 (SIMPLE_EDGE), Reducer 5 (SIMPLE_EDGE)
-Reducer 7 <- Reducer 28 (SIMPLE_EDGE), Reducer 6 (SIMPLE_EDGE)
-Reducer 8 <- Reducer 7 (SIMPLE_EDGE)
+Reducer 6 <- Reducer 17 (SIMPLE_EDGE), Reducer 27 (SIMPLE_EDGE), Reducer 5 (SIMPLE_EDGE)
+Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
+Reducer 9 <- Map 10 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
     limit:100
     Stage-1
-      Reducer 8
+      Reducer 7
       File Output Operator [FS_113]
-        Limit [LIM_112] (rows=100 width=135)
+        Limit [LIM_112] (rows=100 width=88)
           Number of rows:100
-          Select Operator [SEL_111] (rows=14606 width=135)
+          Select Operator [SEL_111] (rows=1442 width=88)
             Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-          <-Reducer 7 [SIMPLE_EDGE]
+          <-Reducer 6 [SIMPLE_EDGE]
             SHUFFLE [RS_110]
-              Select Operator [SEL_109] (rows=14606 width=135)
+              Select Operator [SEL_109] (rows=1442 width=88)
                 Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                Filter Operator [FIL_108] (rows=14606 width=135)
-                  predicate:(_col1 BETWEEN (0.9 * _col5) AND (1.1 * _col5) and _col3 BETWEEN (0.9 * _col5) AND (1.1 * _col5) and _col5 BETWEEN (0.9 * _col1) AND (1.1 * _col1) and _col5 BETWEEN (0.9 * _col3) AND (1.1 * _col3))
-                  Merge Join Operator [MERGEJOIN_209] (rows=95833780 width=135)
-                    Conds:RS_104._col0=RS_105._col0(Inner),Output:["_col0","_col1","_col3","_col5"]
-                  <-Reducer 28 [SIMPLE_EDGE]
-                    SHUFFLE [RS_105]
+                Filter Operator [FIL_103] (rows=1442 width=88)
+                  predicate:(_col5 BETWEEN (0.9 * _col1) AND (1.1 * _col1) and _col5 BETWEEN (0.9 * _col3) AND (1.1 * _col3) and _col1 BETWEEN (0.9 * _col5) AND (1.1 * _col5) and _col3 BETWEEN (0.9 * _col5) AND (1.1 * _col5) and _col1 BETWEEN (0.9 * _col3) AND (1.1 * _col3) and _col3 BETWEEN (0.9 * _col1) AND (1.1 * _col1))
+                  Merge Join Operator [MERGEJOIN_213] (rows=766650239 width=88)
+                    Conds:RS_99._col0=RS_100._col0(Inner),RS_99._col0=RS_101._col0(Inner),Output:["_col0","_col1","_col3","_col5"]
+                  <-Reducer 17 [SIMPLE_EDGE]
+                    SHUFFLE [RS_100]
                       PartitionCols:_col0
-                      Group By Operator [GBY_102] (rows=87121617 width=135)
+                      Group By Operator [GBY_64] (rows=348477374 width=88)
                         Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
-                      <-Reducer 27 [SIMPLE_EDGE]
-                        SHUFFLE [RS_101]
+                      <-Reducer 16 [SIMPLE_EDGE]
+                        SHUFFLE [RS_63]
                           PartitionCols:_col0
-                          Group By Operator [GBY_100] (rows=174243235 width=135)
+                          Group By Operator [GBY_62] (rows=696954748 width=88)
                             Output:["_col0","_col1"],aggregations:["sum(_col5)"],keys:_col7
-                            Merge Join Operator [MERGEJOIN_207] (rows=174243235 width=135)
-                              Conds:RS_96._col4=RS_97._col0(Inner),Output:["_col5","_col7"]
-                            <-Map 33 [SIMPLE_EDGE]
-                              SHUFFLE [RS_97]
+                            Merge Join Operator [MERGEJOIN_208] (rows=696954748 width=88)
+                              Conds:RS_58._col4=RS_59._col0(Inner),Output:["_col5","_col7"]
+                            <-Map 22 [SIMPLE_EDGE]
+                              SHUFFLE [RS_59]
                                 PartitionCols:_col0
-                                Select Operator [SEL_89] (rows=462000 width=1436)
+                                Select Operator [SEL_51] (rows=462000 width=1436)
                                   Output:["_col0","_col1"]
                                   Filter Operator [FIL_195] (rows=462000 width=1436)
                                     predicate:(i_item_sk is not null and i_item_id is not null)
-                                    TableScan [TS_87] (rows=462000 width=1436)
+                                    TableScan [TS_49] (rows=462000 width=1436)
                                       default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id"]
-                            <-Reducer 26 [SIMPLE_EDGE]
-                              SHUFFLE [RS_96]
+                            <-Reducer 15 [SIMPLE_EDGE]
+                              SHUFFLE [RS_58]
                                 PartitionCols:_col4
-                                Merge Join Operator [MERGEJOIN_206] (rows=158402938 width=135)
-                                  Conds:RS_93._col0=RS_94._col0(Inner),Output:["_col4","_col5"]
-                                <-Map 32 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_94]
+                                Merge Join Operator [MERGEJOIN_207] (rows=633595212 width=88)
+                                  Conds:RS_55._col0=RS_56._col0(Inner),Output:["_col4","_col5"]
+                                <-Map 21 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_56]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_86] (rows=144002668 width=135)
+                                    Select Operator [SEL_48] (rows=575995635 width=88)
                                       Output:["_col0","_col1","_col2"]
-                                      Filter Operator [FIL_194] (rows=144002668 width=135)
-                                        predicate:(ws_item_sk is not null and ws_sold_date_sk is not null)
-                                        TableScan [TS_84] (rows=144002668 width=135)
-                                          default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_item_sk","ws_ext_sales_price"]
-                                <-Reducer 25 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_93]
+                                      Filter Operator [FIL_194] (rows=575995635 width=88)
+                                        predicate:(ss_item_sk is not null and ss_sold_date_sk is not null)
+                                        TableScan [TS_46] (rows=575995635 width=88)
+                                          default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_ext_sales_price"]
+                                <-Reducer 14 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_55]
                                     PartitionCols:_col0
-                                    Merge Join Operator [MERGEJOIN_205] (rows=88388 width=1119)
-                                      Conds:RS_90._col1=RS_91._col0(Inner),Output:["_col0"]
-                                    <-Map 24 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_90]
+                                    Merge Join Operator [MERGEJOIN_206] (rows=88388 width=1119)
+                                      Conds:RS_52._col1=RS_53._col0(Inner),Output:["_col0"]
+                                    <-Map 13 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_52]
                                         PartitionCols:_col1
-                                        Select Operator [SEL_73] (rows=73049 width=1119)
+                                        Select Operator [SEL_35] (rows=73049 width=1119)
                                           Output:["_col0","_col1"]
                                           Filter Operator [FIL_191] (rows=73049 width=1119)
                                             predicate:(d_date_sk is not null and d_date is not null)
-                                            TableScan [TS_71] (rows=73049 width=1119)
+                                            TableScan [TS_33] (rows=73049 width=1119)
                                               default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_date"]
-                                    <-Reducer 30 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_91]
+                                    <-Reducer 19 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_53]
                                         PartitionCols:_col0
-                                        Merge Join Operator [MERGEJOIN_204] (rows=80353 width=1119)
-                                          Conds:RS_80._col1=RS_81._col1(Inner),Output:["_col0"]
-                                        <-Map 29 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_80]
+                                        Merge Join Operator [MERGEJOIN_205] (rows=80353 width=1119)
+                                          Conds:RS_42._col1=RS_43._col1(Inner),Output:["_col0"]
+                                        <-Map 18 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_42]
                                             PartitionCols:_col1
-                                            Select Operator [SEL_76] (rows=73049 width=1119)
+                                            Select Operator [SEL_38] (rows=73049 width=1119)
                                               Output:["_col0","_col1"]
                                               Filter Operator [FIL_192] (rows=73049 width=1119)
                                                 predicate:(d_week_seq is not null and d_date is not null)
-                                                TableScan [TS_74] (rows=73049 width=1119)
+                                                TableScan [TS_36] (rows=73049 width=1119)
                                                   default@date_dim,d1,Tbl:COMPLETE,Col:NONE,Output:["d_date","d_week_seq"]
-                                        <-Map 31 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_81]
+                                        <-Map 20 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_43]
                                             PartitionCols:_col1
-                                            Select Operator [SEL_79] (rows=36524 width=1119)
+                                            Select Operator [SEL_41] (rows=36524 width=1119)
                                               Output:["_col1"]
                                               Filter Operator [FIL_193] (rows=36524 width=1119)
                                                 predicate:((d_date = '1998-08-04') and d_week_seq is not null)
-                                                TableScan [TS_77] (rows=73049 width=1119)
+                                                TableScan [TS_39] (rows=73049 width=1119)
                                                   default@date_dim,d2,Tbl:COMPLETE,Col:NONE,Output:["d_date","d_week_seq"]
-                  <-Reducer 6 [SIMPLE_EDGE]
-                    SHUFFLE [RS_104]
+                  <-Reducer 27 [SIMPLE_EDGE]
+                    SHUFFLE [RS_101]
                       PartitionCols:_col0
-                      Filter Operator [FIL_69] (rows=4732408 width=88)
-                        predicate:(_col1 BETWEEN (0.9 * _col3) AND (1.1 * _col3) and _col3 BETWEEN (0.9 * _col1) AND (1.1 * _col1))
-                        Merge Join Operator [MERGEJOIN_208] (rows=383325119 width=88)
-                          Conds:RS_66._col0=RS_67._col0(Inner),Output:["_col0","_col1","_col3"]
-                        <-Reducer 18 [SIMPLE_EDGE]
-                          SHUFFLE [RS_67]
-                            PartitionCols:_col0
-                            Group By Operator [GBY_64] (rows=174233858 width=135)
-                              Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
-                            <-Reducer 17 [SIMPLE_EDGE]
-                              SHUFFLE [RS_63]
+                      Group By Operator [GBY_97] (rows=87121617 width=135)
+                        Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
+                      <-Reducer 26 [SIMPLE_EDGE]
+                        SHUFFLE [RS_96]
+                          PartitionCols:_col0
+                          Group By Operator [GBY_95] (rows=174243235 width=135)
+                            Output:["_col0","_col1"],aggregations:["sum(_col5)"],keys:_col7
+                            Merge Join Operator [MERGEJOIN_212] (rows=174243235 width=135)
+                              Conds:RS_91._col4=RS_92._col0(Inner),Output:["_col5","_col7"]
+                            <-Map 32 [SIMPLE_EDGE]
+                              SHUFFLE [RS_92]
                                 PartitionCols:_col0
-                                Group By Operator [GBY_62] (rows=348467716 width=135)
-                                  Output:["_col0","_col1"],aggregations:["sum(_col5)"],keys:_col7
-                                  Merge Join Operator [MERGEJOIN_203] (rows=348467716 width=135)
-                                    Conds:RS_58._col4=RS_59._col0(Inner),Output:["_col5","_col7"]
-                                  <-Map 23 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_59]
-                                      PartitionCols:_col0
-                                      Select Operator [SEL_51] (rows=462000 width=1436)
-                                        Output:["_col0","_col1"]
-                                        Filter Operator [FIL_190] (rows=462000 width=1436)
-                                          predicate:(i_item_sk is not null and i_item_id is not null)
-                                          TableScan [TS_49] (rows=462000 width=1436)
-                                            default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id"]
-                                  <-Reducer 16 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_58]
-                                      PartitionCols:_col4
-                                      Merge Join Operator [MERGEJOIN_202] (rows=316788826 width=135)
-                                        Conds:RS_55._col0=RS_56._col0(Inner),Output:["_col4","_col5"]
-                                      <-Map 22 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_56]
-                                          PartitionCols:_col0
-                                          Select Operator [SEL_48] (rows=287989836 width=135)
-                                            Output:["_col0","_col1","_col2"]
-                                            Filter Operator [FIL_189] (rows=287989836 width=135)
-                                              predicate:(cs_item_sk is not null and cs_sold_date_sk is not null)
-                                              TableScan [TS_46] (rows=287989836 width=135)
-                                                default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_item_sk","cs_ext_sales_price"]
-                                      <-Reducer 15 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_55]
-                                          PartitionCols:_col0
-                                          Merge Join Operator [MERGEJOIN_201] (rows=88388 width=1119)
-                                            Conds:RS_52._col1=RS_53._col0(Inner),Output:["_col0"]
-                                          <-Map 14 [SIMPLE_EDGE]
-                                            SHUFFLE [RS_52]
-                                              PartitionCols:_col1
-                                              Select Operator [SEL_35] (rows=73049 width=1119)
-                                                Output:["_col0","_col1"]
-                                                Filter Operator [FIL_186] (rows=73049 width=1119)
-                                                  predicate:(d_date_sk is not null and d_date is not null)
-                                                  TableScan [TS_33] (rows=73049 width=1119)
-                                                    default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_date"]
-                                          <-Reducer 20 [SIMPLE_EDGE]
-                                            SHUFFLE [RS_53]
-                                              PartitionCols:_col0
-                                              Merge Join Operator [MERGEJOIN_200] (rows=80353 width=1119)
-                                                Conds:RS_42._col1=RS_43._col1(Inner),Output:["_col0"]
-                                              <-Map 19 [SIMPLE_EDGE]
-                                                SHUFFLE [RS_42]
-                                                  PartitionCols:_col1
-                                                  Select Operator [SEL_38] (rows=73049 width=1119)
-                                                    Output:["_col0","_col1"]
-                                                    Filter Operator [FIL_187] (rows=73049 width=1119)
-                                                      predicate:(d_week_seq is not null and d_date is not null)
-                                                      TableScan [TS_36] (rows=73049 width=1119)
-                                                        default@date_dim,d1,Tbl:COMPLETE,Col:NONE,Output:["d_date","d_week_seq"]
-                                              <-Map 21 [SIMPLE_EDGE]
-                                                SHUFFLE [RS_43]
-                                                  PartitionCols:_col1
-                                                  Select Operator [SEL_41] (rows=36524 width=1119)
-                                                    Output:["_col1"]
-                                                    Filter Operator [FIL_188] (rows=36524 width=1119)
-                                                      predicate:((d_date = '1998-08-04') and d_week_seq is not null)
-                                                      TableScan [TS_39] (rows=73049 width=1119)
-                                                        default@date_dim,d2,Tbl:COMPLETE,Col:NONE,Output:["d_date","d_week_seq"]
-                        <-Reducer 5 [SIMPLE_EDGE]
-                          SHUFFLE [RS_66]
-                            PartitionCols:_col0
-                            Group By Operator [GBY_31] (rows=348477374 width=88)
-                              Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
-                            <-Reducer 4 [SIMPLE_EDGE]
-                              SHUFFLE [RS_30]
+                                Select Operator [SEL_84] (rows=462000 width=1436)
+                                  Output:["_col0","_col1"]
+                                  Filter Operator [FIL_200] (rows=462000 width=1436)
+                                    predicate:(i_item_sk is not null and i_item_id is not null)
+                                    TableScan [TS_82] (rows=462000 width=1436)
+                                      default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id"]
+                            <-Reducer 25 [SIMPLE_EDGE]
+                              SHUFFLE [RS_91]
+                                PartitionCols:_col4
+                                Merge Join Operator [MERGEJOIN_211] (rows=158402938 width=135)
+                                  Conds:RS_88._col0=RS_89._col0(Inner),Output:["_col4","_col5"]
+                                <-Map 31 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_89]
+                                    PartitionCols:_col0
+                                    Select Operator [SEL_81] (rows=144002668 width=135)
+                                      Output:["_col0","_col1","_col2"]
+                                      Filter Operator [FIL_199] (rows=144002668 width=135)
+                                        predicate:(ws_item_sk is not null and ws_sold_date_sk is not null)
+                                        TableScan [TS_79] (rows=144002668 width=135)
+                                          default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_item_sk","ws_ext_sales_price"]
+                                <-Reducer 24 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_88]
+                                    PartitionCols:_col0
+                                    Merge Join Operator [MERGEJOIN_210] (rows=88388 width=1119)
+                                      Conds:RS_85._col1=RS_86._col0(Inner),Output:["_col0"]
+                                    <-Map 23 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_85]
+                                        PartitionCols:_col1
+                                        Select Operator [SEL_68] (rows=73049 width=1119)
+                                          Output:["_col0","_col1"]
+                                          Filter Operator [FIL_196] (rows=73049 width=1119)
+                                            predicate:(d_date_sk is not null and d_date is not null)
+                                            TableScan [TS_66] (rows=73049 width=1119)
+                                              default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_date"]
+                                    <-Reducer 29 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_86]
+                                        PartitionCols:_col0
+                                        Merge Join Operator [MERGEJOIN_209] (rows=80353 width=1119)
+                                          Conds:RS_75._col1=RS_76._col1(Inner),Output:["_col0"]
+                                        <-Map 28 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_75]
+                                            PartitionCols:_col1
+                                            Select Operator [SEL_71] (rows=73049 width=1119)
+                                              Output:["_col0","_col1"]
+                                              Filter Operator [FIL_197] (rows=73049 width=1119)
+                                                predicate:(d_week_seq is not null and d_date is not null)
+                                                TableScan [TS_69] (rows=73049 width=1119)
+                                                  default@date_dim,d1,Tbl:COMPLETE,Col:NONE,Output:["d_date","d_week_seq"]
+                                        <-Map 30 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_76]
+                                            PartitionCols:_col1
+                                            Select Operator [SEL_74] (rows=36524 width=1119)
+                                              Output:["_col1"]
+                                              Filter Operator [FIL_198] (rows=36524 width=1119)
+                                                predicate:((d_date = '1998-08-04') and d_week_seq is not null)
+                                                TableScan [TS_72] (rows=73049 width=1119)
+                                                  default@date_dim,d2,Tbl:COMPLETE,Col:NONE,Output:["d_date","d_week_seq"]
+                  <-Reducer 5 [SIMPLE_EDGE]
+                    SHUFFLE [RS_99]
+                      PartitionCols:_col0
+                      Group By Operator [GBY_31] (rows=174233858 width=135)
+                        Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
+                      <-Reducer 4 [SIMPLE_EDGE]
+                        SHUFFLE [RS_30]
+                          PartitionCols:_col0
+                          Group By Operator [GBY_29] (rows=348467716 width=135)
+                            Output:["_col0","_col1"],aggregations:["sum(_col5)"],keys:_col7
+                            Merge Join Operator [MERGEJOIN_204] (rows=348467716 width=135)
+                              Conds:RS_25._col4=RS_26._col0(Inner),Output:["_col5","_col7"]
+                            <-Map 12 [SIMPLE_EDGE]
+                              SHUFFLE [RS_26]
                                 PartitionCols:_col0
-                                Group By Operator [GBY_29] (rows=696954748 width=88)
-                                  Output:["_col0","_col1"],aggregations:["sum(_col5)"],keys:_col7
-                                  Merge Join Operator [MERGEJOIN_199] (rows=696954748 width=88)
-                                    Conds:RS_25._col4=RS_26._col0(Inner),Output:["_col5","_col7"]
-                                  <-Map 13 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_26]
-                                      PartitionCols:_col0
-                                      Select Operator [SEL_18] (rows=462000 width=1436)
-                                        Output:["_col0","_col1"]
-                                        Filter Operator [FIL_185] (rows=462000 width=1436)
-                                          predicate:(i_item_sk is not null and i_item_id is not null)
-                                          TableScan [TS_16] (rows=462000 width=1436)
-                                            default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id"]
-                                  <-Reducer 3 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_25]
-                                      PartitionCols:_col4
-                                      Merge Join Operator [MERGEJOIN_198] (rows=633595212 width=88)
-                                        Conds:RS_22._col0=RS_23._col0(Inner),Output:["_col4","_col5"]
-                                      <-Map 12 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_23]
-                                          PartitionCols:_col0
-                                          Select Operator [SEL_15] (rows=575995635 width=88)
-                                            Output:["_col0","_col1","_col2"]
-                                            Filter Operator [FIL_184] (rows=575995635 width=88)
-                                              predicate:(ss_item_sk is not null and ss_sold_date_sk is not null)
-                                              TableScan [TS_13] (rows=575995635 width=88)
-                                                default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_ext_sales_price"]
-                                      <-Reducer 2 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_22]
-                                          PartitionCols:_col0
-                                          Merge Join Operator [MERGEJOIN_197] (rows=88388 width=1119)
-                                            Conds:RS_19._col1=RS_20._col0(Inner),Output:["_col0"]
-                                          <-Map 1 [SIMPLE_EDGE]
-                                            SHUFFLE [RS_19]
-                                              PartitionCols:_col1
-                                              Select Operator [SEL_2] (rows=73049 width=1119)
-                                                Output:["_col0","_col1"]
-                                                Filter Operator [FIL_181] (rows=73049 width=1119)
-                                                  predicate:(d_date_sk is not null and d_date is not null)
-                                                  TableScan [TS_0] (rows=73049 width=1119)
-                                                    default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_date"]
-                                          <-Reducer 10 [SIMPLE_EDGE]
-                                            SHUFFLE [RS_20]
-                                              PartitionCols:_col0
-                                              Merge Join Operator [MERGEJOIN_196] (rows=80353 width=1119)
-                                                Conds:RS_9._col1=RS_10._col1(Inner),Output:["_col0"]
-                                              <-Map 11 [SIMPLE_EDGE]
-                                                SHUFFLE [RS_10]
-                                                  PartitionCols:_col1
-                                                  Select Operator [SEL_8] (rows=36524 width=1119)
-                                                    Output:["_col1"]
-                                                    Filter Operator [FIL_183] (rows=36524 width=1119)
-                                                      predicate:((d_date = '1998-08-04') and d_week_seq is not null)
-                                                      TableScan [TS_6] (rows=73049 width=1119)
-                                                        default@date_dim,d2,Tbl:COMPLETE,Col:NONE,Output:["d_date","d_week_seq"]
-                                              <-Map 9 [SIMPLE_EDGE]
-                                                SHUFFLE [RS_9]
-                                                  PartitionCols:_col1
-                                                  Select Operator [SEL_5] (rows=73049 width=1119)
-                                                    Output:["_col0","_col1"]
-                                                    Filter Operator [FIL_182] (rows=73049 width=1119)
-                                                      predicate:(d_week_seq is not null and d_date is not null)
-                                                      TableScan [TS_3] (rows=73049 width=1119)
-                                                        default@date_dim,d1,Tbl:COMPLETE,Col:NONE,Output:["d_date","d_week_seq"]
+                                Select Operator [SEL_18] (rows=462000 width=1436)
+                                  Output:["_col0","_col1"]
+                                  Filter Operator [FIL_190] (rows=462000 width=1436)
+                                    predicate:(i_item_sk is not null and i_item_id is not null)
+                                    TableScan [TS_16] (rows=462000 width=1436)
+                                      default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id"]
+                            <-Reducer 3 [SIMPLE_EDGE]
+                              SHUFFLE [RS_25]
+                                PartitionCols:_col4
+                                Merge Join Operator [MERGEJOIN_203] (rows=316788826 width=135)
+                                  Conds:RS_22._col0=RS_23._col0(Inner),Output:["_col4","_col5"]
+                                <-Map 11 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_23]
+                                    PartitionCols:_col0
+                                    Select Operator [SEL_15] (rows=287989836 width=135)
+                                      Output:["_col0","_col1","_col2"]
+                                      Filter Operator [FIL_189] (rows=287989836 width=135)
+                                        predicate:(cs_item_sk is not null and cs_sold_date_sk is not null)
+                                        TableScan [TS_13] (rows=287989836 width=135)
+                                          default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_item_sk","cs_ext_sales_price"]
+                                <-Reducer 2 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_22]
+                                    PartitionCols:_col0
+                                    Merge Join Operator [MERGEJOIN_202] (rows=88388 width=1119)
+                                      Conds:RS_19._col1=RS_20._col0(Inner),Output:["_col0"]
+                                    <-Map 1 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_19]
+                                        PartitionCols:_col1
+                                        Select Operator [SEL_2] (rows=73049 width=1119)
+                                          Output:["_col0","_col1"]
+                                          Filter Operator [FIL_186] (rows=73049 width=1119)
+                                            predicate:(d_date_sk is not null and d_date is not null)
+                                            TableScan [TS_0] (rows=73049 width=1119)
+                                              default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_date"]
+                                    <-Reducer 9 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_20]
+                                        PartitionCols:_col0
+                                        Merge Join Operator [MERGEJOIN_201] (rows=80353 width=1119)
+                                          Conds:RS_9._col1=RS_10._col1(Inner),Output:["_col0"]
+                                        <-Map 10 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_10]
+                                            PartitionCols:_col1
+                                            Select Operator [SEL_8] (rows=36524 width=1119)
+                                              Output:["_col1"]
+                                              Filter Operator [FIL_188] (rows=36524 width=1119)
+                                                predicate:((d_date = '1998-08-04') and d_week_seq is not null)
+                                                TableScan [TS_6] (rows=73049 width=1119)
+                                                  default@date_dim,d2,Tbl:COMPLETE,Col:NONE,Output:["d_date","d_week_seq"]
+                                        <-Map 8 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_9]
+                                            PartitionCols:_col1
+                                            Select Operator [SEL_5] (rows=73049 width=1119)
+                                              Output:["_col0","_col1"]
+                                              Filter Operator [FIL_187] (rows=73049 width=1119)
+                                                predicate:(d_week_seq is not null and d_date is not null)
+                                                TableScan [TS_3] (rows=73049 width=1119)
+                                                  default@date_dim,d1,Tbl:COMPLETE,Col:NONE,Output:["d_date","d_week_seq"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/be59e024/ql/src/test/results/clientpositive/perf/query6.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query6.q.out b/ql/src/test/results/clientpositive/perf/query6.q.out
index 11b618d..aede0d7 100644
--- a/ql/src/test/results/clientpositive/perf/query6.q.out
+++ b/ql/src/test/results/clientpositive/perf/query6.q.out
@@ -96,17 +96,17 @@ Stage-0
                           <-Reducer 24 [SIMPLE_EDGE]
                             SHUFFLE [RS_81]
                               PartitionCols:_col2
-                              Select Operator [SEL_79] (rows=115500 width=1436)
+                              Select Operator [SEL_79] (rows=231000 width=1436)
                                 Output:["_col0","_col1","_col2"]
-                                Group By Operator [GBY_78] (rows=115500 width=1436)
+                                Group By Operator [GBY_78] (rows=231000 width=1436)
                                   Output:["_col0","_col1"],aggregations:["avg(VALUE._col0)"],keys:KEY._col0
                                 <-Map 23 [SIMPLE_EDGE]
                                   SHUFFLE [RS_77]
                                     PartitionCols:_col0
-                                    Group By Operator [GBY_76] (rows=231000 width=1436)
+                                    Group By Operator [GBY_76] (rows=462000 width=1436)
                                       Output:["_col0","_col1"],aggregations:["avg(i_current_price)"],keys:i_category
-                                      Filter Operator [FIL_125] (rows=231000 width=1436)
-                                        predicate:(i_category = i_category)
+                                      Filter Operator [FIL_125] (rows=462000 width=1436)
+                                        predicate:i_category is not null
                                         TableScan [TS_73] (rows=462000 width=1436)
                                           default@item,j,Tbl:COMPLETE,Col:NONE,Output:["i_current_price","i_category"]
                           <-Reducer 5 [SIMPLE_EDGE]
@@ -236,21 +236,21 @@ Stage-0
                                             <-Reducer 10 [SIMPLE_EDGE]
                                               SHUFFLE [RS_61]
                                                 PartitionCols:_col0
-                                                Select Operator [SEL_15] (rows=19250 width=1436)
+                                                Select Operator [SEL_15] (rows=38500 width=1436)
                                                   Output:["_col0"]
-                                                  Filter Operator [FIL_14] (rows=19250 width=1436)
+                                                  Filter Operator [FIL_14] (rows=38500 width=1436)
                                                     predicate:(sq_count_check(_col1) <= 1)
-                                                    Group By Operator [GBY_13] (rows=57750 width=1436)
+                                                    Group By Operator [GBY_13] (rows=115500 width=1436)
                                                       Output:["_col0","_col1"],aggregations:["count()"],keys:_col0
-                                                      Group By Operator [GBY_8] (rows=115500 width=1436)
+                                                      Group By Operator [GBY_8] (rows=231000 width=1436)
                                                         Output:["_col0"],keys:KEY._col0
                                                       <-Map 9 [SIMPLE_EDGE]
                                                         SHUFFLE [RS_7]
                                                           PartitionCols:_col0
-                                                          Group By Operator [GBY_6] (rows=231000 width=1436)
+                                                          Group By Operator [GBY_6] (rows=462000 width=1436)
                                                             Output:["_col0"],keys:i_category
-                                                            Filter Operator [FIL_118] (rows=231000 width=1436)
-                                                              predicate:(i_category = i_category)
+                                                            Filter Operator [FIL_118] (rows=462000 width=1436)
+                                                              predicate:i_category is not null
                                                               TableScan [TS_3] (rows=462000 width=1436)
                                                                 default@item,j,Tbl:COMPLETE,Col:NONE,Output:["i_category"]