hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcama...@apache.org
Subject [06/10] hive git commit: HIVE-20612: Create new join multi-key correlation flag for CBO (Jesus Camacho Rodriguez, reviewed by Ashutosh Chauhan)
Date Sun, 23 Sep 2018 20:31:07 GMT
http://git-wip-us.apache.org/repos/asf/hive/blob/491c9f62/ql/src/test/results/clientpositive/perf/tez/query17.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query17.q.out b/ql/src/test/results/clientpositive/perf/tez/query17.q.out
index 7757fbd..0141c13 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query17.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query17.q.out
@@ -89,141 +89,139 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Reducer 10 <- Reducer 11 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
-Reducer 11 <- Map 14 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
-Reducer 3 <- Map 12 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 4 <- Reducer 10 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
-Reducer 5 <- Map 15 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 10 <- Map 7 (SIMPLE_EDGE), Reducer 12 (SIMPLE_EDGE)
+Reducer 12 <- Map 11 (SIMPLE_EDGE), Map 13 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 7 (SIMPLE_EDGE)
+Reducer 3 <- Reducer 2 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
+Reducer 4 <- Map 15 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
 Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
-Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
-Reducer 9 <- Map 13 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
+Reducer 8 <- Map 7 (SIMPLE_EDGE), Reducer 10 (SIMPLE_EDGE)
+Reducer 9 <- Map 14 (SIMPLE_EDGE), Reducer 8 (SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
     limit:100
     Stage-1
-      Reducer 7 vectorized
+      Reducer 6 vectorized
       File Output Operator [FS_130]
         Limit [LIM_129] (rows=100 width=88)
           Number of rows:100
-          Select Operator [SEL_128] (rows=421657640 width=88)
+          Select Operator [SEL_128] (rows=510205767 width=88)
             Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14"]
-          <-Reducer 6 [SIMPLE_EDGE] vectorized
+          <-Reducer 5 [SIMPLE_EDGE] vectorized
             SHUFFLE [RS_127]
-              Select Operator [SEL_126] (rows=421657640 width=88)
+              Select Operator [SEL_126] (rows=510205767 width=88)
                 Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13"]
-                Group By Operator [GBY_125] (rows=421657640 width=88)
+                Group By Operator [GBY_125] (rows=510205767 width=88)
                   Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14"],aggregations:["count(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)","sum(VALUE._col3)","count(VALUE._col4)","sum(VALUE._col5)","sum(VALUE._col6)","sum(VALUE._col7)","count(VALUE._col8)","sum(VALUE._col9)","sum(VALUE._col10)","sum(VALUE._col11)"],keys:KEY._col0, KEY._col1, KEY._col2
-                <-Reducer 5 [SIMPLE_EDGE]
-                  SHUFFLE [RS_50]
+                <-Reducer 4 [SIMPLE_EDGE]
+                  SHUFFLE [RS_49]
                     PartitionCols:_col0, _col1, _col2
-                    Group By Operator [GBY_49] (rows=843315281 width=88)
+                    Group By Operator [GBY_48] (rows=1020411534 width=88)
                       Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14"],aggregations:["count(_col3)","sum(_col3)","sum(_col7)","sum(_col6)","count(_col4)","sum(_col4)","sum(_col9)","sum(_col8)","count(_col5)","sum(_col5)","sum(_col11)","sum(_col10)"],keys:_col0, _col1, _col2
-                      Top N Key Operator [TNK_93] (rows=843315281 width=88)
+                      Top N Key Operator [TNK_95] (rows=1020411534 width=88)
                         keys:_col0, _col1, _col2,sort order:+++,top n:100
-                        Select Operator [SEL_47] (rows=843315281 width=88)
+                        Select Operator [SEL_46] (rows=1020411534 width=88)
                           Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11"]
-                          Merge Join Operator [MERGEJOIN_100] (rows=843315281 width=88)
-                            Conds:RS_44._col3=RS_124._col0(Inner),Output:["_col5","_col9","_col10","_col14","_col21","_col25"]
+                          Merge Join Operator [MERGEJOIN_102] (rows=1020411534 width=88)
+                            Conds:RS_43._col11=RS_124._col0(Inner),Output:["_col3","_col7","_col15","_col20","_col24","_col25"]
                           <-Map 15 [SIMPLE_EDGE] vectorized
                             SHUFFLE [RS_124]
                               PartitionCols:_col0
-                              Select Operator [SEL_123] (rows=1704 width=1910)
-                                Output:["_col0","_col1"]
-                                Filter Operator [FIL_122] (rows=1704 width=1910)
-                                  predicate:s_store_sk is not null
-                                  TableScan [TS_32] (rows=1704 width=1910)
-                                    default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_state"]
-                          <-Reducer 4 [SIMPLE_EDGE]
-                            SHUFFLE [RS_44]
-                              PartitionCols:_col3
-                              Merge Join Operator [MERGEJOIN_99] (rows=766650239 width=88)
-                                Conds:RS_41._col1, _col2, _col4=RS_42._col7, _col8, _col9(Inner),Output:["_col3","_col5","_col9","_col10","_col14","_col21"]
-                              <-Reducer 10 [SIMPLE_EDGE]
-                                SHUFFLE [RS_42]
-                                  PartitionCols:_col7, _col8, _col9
-                                  Merge Join Operator [MERGEJOIN_98] (rows=348467716 width=135)
-                                    Conds:RS_28._col2, _col1=RS_29._col1, _col2(Inner),Output:["_col3","_col7","_col8","_col9","_col10"]
-                                  <-Reducer 11 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_29]
-                                      PartitionCols:_col1, _col2
-                                      Merge Join Operator [MERGEJOIN_97] (rows=63350266 width=77)
-                                        Conds:RS_121._col0=RS_112._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
-                                      <-Map 8 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_112]
-                                          PartitionCols:_col0
-                                          Select Operator [SEL_109] (rows=36525 width=1119)
-                                            Output:["_col0"]
-                                            Filter Operator [FIL_106] (rows=36525 width=1119)
-                                              predicate:((d_quarter_name) IN ('2000Q1', '2000Q2', '2000Q3') and d_date_sk is not null)
-                                              TableScan [TS_3] (rows=73049 width=1119)
-                                                default@date_dim,d1,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_quarter_name"]
-                                      <-Map 14 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_121]
-                                          PartitionCols:_col0
-                                          Select Operator [SEL_120] (rows=57591150 width=77)
-                                            Output:["_col0","_col1","_col2","_col3","_col4"]
-                                            Filter Operator [FIL_119] (rows=57591150 width=77)
-                                              predicate:(sr_customer_sk is not null and sr_item_sk is not null and sr_returned_date_sk is not null and sr_ticket_number is not null)
-                                              TableScan [TS_15] (rows=57591150 width=77)
-                                                default@store_returns,store_returns,Tbl:COMPLETE,Col:NONE,Output:["sr_returned_date_sk","sr_item_sk","sr_customer_sk","sr_ticket_number","sr_return_quantity"]
-                                  <-Reducer 9 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_28]
-                                      PartitionCols:_col2, _col1
-                                      Merge Join Operator [MERGEJOIN_96] (rows=316788826 width=135)
-                                        Conds:RS_118._col0=RS_111._col0(Inner),Output:["_col1","_col2","_col3"]
-                                      <-Map 8 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_111]
-                                          PartitionCols:_col0
-                                          Select Operator [SEL_108] (rows=36525 width=1119)
-                                            Output:["_col0"]
-                                            Filter Operator [FIL_105] (rows=36525 width=1119)
-                                              predicate:((d_quarter_name) IN ('2000Q1', '2000Q2', '2000Q3') and d_date_sk is not null)
-                                               Please refer to the previous TableScan [TS_3]
-                                      <-Map 13 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_118]
-                                          PartitionCols:_col0
-                                          Select Operator [SEL_117] (rows=287989836 width=135)
-                                            Output:["_col0","_col1","_col2","_col3"]
-                                            Filter Operator [FIL_116] (rows=287989836 width=135)
-                                              predicate:(cs_bill_customer_sk is not null and cs_item_sk is not null and cs_sold_date_sk is not null)
-                                              TableScan [TS_9] (rows=287989836 width=135)
-                                                default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_item_sk","cs_quantity"]
-                              <-Reducer 3 [SIMPLE_EDGE]
-                                SHUFFLE [RS_41]
-                                  PartitionCols:_col1, _col2, _col4
-                                  Merge Join Operator [MERGEJOIN_95] (rows=696954748 width=88)
-                                    Conds:RS_38._col1=RS_115._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5","_col9","_col10"]
-                                  <-Map 12 [SIMPLE_EDGE] vectorized
-                                    SHUFFLE [RS_115]
+                              Select Operator [SEL_123] (rows=462000 width=1436)
+                                Output:["_col0","_col1","_col2"]
+                                Filter Operator [FIL_122] (rows=462000 width=1436)
+                                  predicate:i_item_sk is not null
+                                  TableScan [TS_34] (rows=462000 width=1436)
+                                    default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id","i_item_desc"]
+                          <-Reducer 3 [SIMPLE_EDGE]
+                            SHUFFLE [RS_43]
+                              PartitionCols:_col11
+                              Merge Join Operator [MERGEJOIN_101] (rows=927646829 width=88)
+                                Conds:RS_40._col1, _col2=RS_41._col12, _col11(Inner),Output:["_col3","_col7","_col11","_col15","_col20"]
+                              <-Reducer 2 [SIMPLE_EDGE]
+                                SHUFFLE [RS_40]
+                                  PartitionCols:_col1, _col2
+                                  Merge Join Operator [MERGEJOIN_96] (rows=316788826 width=135)
+                                    Conds:RS_105._col0=RS_110._col0(Inner),Output:["_col1","_col2","_col3"]
+                                  <-Map 7 [SIMPLE_EDGE] vectorized
+                                    SHUFFLE [RS_110]
+                                      PartitionCols:_col0
+                                      Select Operator [SEL_108] (rows=36525 width=1119)
+                                        Output:["_col0"]
+                                        Filter Operator [FIL_106] (rows=36525 width=1119)
+                                          predicate:((d_quarter_name) IN ('2000Q1', '2000Q2', '2000Q3') and d_date_sk is not null)
+                                          TableScan [TS_3] (rows=73049 width=1119)
+                                            default@date_dim,d3,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_quarter_name"]
+                                  <-Map 1 [SIMPLE_EDGE] vectorized
+                                    SHUFFLE [RS_105]
                                       PartitionCols:_col0
-                                      Select Operator [SEL_114] (rows=462000 width=1436)
-                                        Output:["_col0","_col1","_col2"]
-                                        Filter Operator [FIL_113] (rows=462000 width=1436)
-                                          predicate:i_item_sk is not null
-                                          TableScan [TS_6] (rows=462000 width=1436)
-                                            default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id","i_item_desc"]
-                                  <-Reducer 2 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_38]
-                                      PartitionCols:_col1
-                                      Merge Join Operator [MERGEJOIN_94] (rows=633595212 width=88)
-                                        Conds:RS_103._col0=RS_110._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
-                                      <-Map 8 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_110]
-                                          PartitionCols:_col0
-                                          Select Operator [SEL_107] (rows=36524 width=1119)
-                                            Output:["_col0"]
-                                            Filter Operator [FIL_104] (rows=36524 width=1119)
-                                              predicate:((d_quarter_name = '2000Q1') and d_date_sk is not null)
-                                               Please refer to the previous TableScan [TS_3]
-                                      <-Map 1 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_103]
-                                          PartitionCols:_col0
-                                          Select Operator [SEL_102] (rows=575995635 width=88)
-                                            Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                            Filter Operator [FIL_101] (rows=575995635 width=88)
-                                              predicate:(ss_customer_sk is not null and ss_item_sk is not null and ss_sold_date_sk is not null and ss_store_sk is not null and ss_ticket_number is not null)
-                                              TableScan [TS_0] (rows=575995635 width=88)
-                                                default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_customer_sk","ss_store_sk","ss_ticket_number","ss_quantity"]
+                                      Select Operator [SEL_104] (rows=287989836 width=135)
+                                        Output:["_col0","_col1","_col2","_col3"]
+                                        Filter Operator [FIL_103] (rows=287989836 width=135)
+                                          predicate:(cs_bill_customer_sk is not null and cs_item_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_item_sk","cs_quantity"]
+                              <-Reducer 9 [SIMPLE_EDGE]
+                                SHUFFLE [RS_41]
+                                  PartitionCols:_col12, _col11
+                                  Select Operator [SEL_33] (rows=843315281 width=88)
+                                    Output:["_col1","_col5","_col9","_col11","_col12","_col14"]
+                                    Merge Join Operator [MERGEJOIN_100] (rows=843315281 width=88)
+                                      Conds:RS_30._col3=RS_121._col0(Inner),Output:["_col1","_col5","_col7","_col8","_col10","_col16"]
+                                    <-Map 14 [SIMPLE_EDGE] vectorized
+                                      SHUFFLE [RS_121]
+                                        PartitionCols:_col0
+                                        Select Operator [SEL_120] (rows=1704 width=1910)
+                                          Output:["_col0","_col1"]
+                                          Filter Operator [FIL_119] (rows=1704 width=1910)
+                                            predicate:s_store_sk is not null
+                                            TableScan [TS_18] (rows=1704 width=1910)
+                                              default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_state"]
+                                    <-Reducer 8 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_30]
+                                        PartitionCols:_col3
+                                        Merge Join Operator [MERGEJOIN_99] (rows=766650239 width=88)
+                                          Conds:RS_27._col6=RS_111._col0(Inner),Output:["_col1","_col3","_col5","_col7","_col8","_col10"]
+                                        <-Map 7 [SIMPLE_EDGE] vectorized
+                                          SHUFFLE [RS_111]
+                                            PartitionCols:_col0
+                                             Please refer to the previous Select Operator [SEL_108]
+                                        <-Reducer 10 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_27]
+                                            PartitionCols:_col6
+                                            Merge Join Operator [MERGEJOIN_98] (rows=696954748 width=88)
+                                              Conds:RS_24._col0=RS_112._col0(Inner),Output:["_col1","_col3","_col5","_col6","_col7","_col8","_col10"]
+                                            <-Map 7 [SIMPLE_EDGE] vectorized
+                                              SHUFFLE [RS_112]
+                                                PartitionCols:_col0
+                                                Select Operator [SEL_109] (rows=36524 width=1119)
+                                                  Output:["_col0"]
+                                                  Filter Operator [FIL_107] (rows=36524 width=1119)
+                                                    predicate:((d_quarter_name = '2000Q1') and d_date_sk is not null)
+                                                     Please refer to the previous TableScan [TS_3]
+                                            <-Reducer 12 [SIMPLE_EDGE]
+                                              SHUFFLE [RS_24]
+                                                PartitionCols:_col0
+                                                Merge Join Operator [MERGEJOIN_97] (rows=633595212 width=88)
+                                                  Conds:RS_115._col1, _col2, _col4=RS_118._col1, _col2, _col3(Inner),Output:["_col0","_col1","_col3","_col5","_col6","_col7","_col8","_col10"]
+                                                <-Map 11 [SIMPLE_EDGE] vectorized
+                                                  SHUFFLE [RS_115]
+                                                    PartitionCols:_col1, _col2, _col4
+                                                    Select Operator [SEL_114] (rows=575995635 width=88)
+                                                      Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                                                      Filter Operator [FIL_113] (rows=575995635 width=88)
+                                                        predicate:(ss_customer_sk is not null and ss_item_sk is not null and ss_sold_date_sk is not null and ss_store_sk is not null and ss_ticket_number is not null)
+                                                        TableScan [TS_6] (rows=575995635 width=88)
+                                                          default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_customer_sk","ss_store_sk","ss_ticket_number","ss_quantity"]
+                                                <-Map 13 [SIMPLE_EDGE] vectorized
+                                                  SHUFFLE [RS_118]
+                                                    PartitionCols:_col1, _col2, _col3
+                                                    Select Operator [SEL_117] (rows=57591150 width=77)
+                                                      Output:["_col0","_col1","_col2","_col3","_col4"]
+                                                      Filter Operator [FIL_116] (rows=57591150 width=77)
+                                                        predicate:(sr_customer_sk is not null and sr_item_sk is not null and sr_returned_date_sk is not null and sr_ticket_number is not null)
+                                                        TableScan [TS_9] (rows=57591150 width=77)
+                                                          default@store_returns,store_returns,Tbl:COMPLETE,Col:NONE,Output:["sr_returned_date_sk","sr_item_sk","sr_customer_sk","sr_ticket_number","sr_return_quantity"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/491c9f62/ql/src/test/results/clientpositive/perf/tez/query24.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query24.q.out b/ql/src/test/results/clientpositive/perf/tez/query24.q.out
index 68a1504..903c648 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query24.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query24.q.out
@@ -103,17 +103,16 @@ Vertex dependency in root stage
 Reducer 10 <- Map 18 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
 Reducer 11 <- Map 16 (SIMPLE_EDGE), Reducer 10 (SIMPLE_EDGE)
 Reducer 12 <- Map 19 (SIMPLE_EDGE), Reducer 11 (SIMPLE_EDGE)
-Reducer 13 <- Map 20 (SIMPLE_EDGE), Reducer 12 (SIMPLE_EDGE)
-Reducer 14 <- Reducer 13 (SIMPLE_EDGE)
-Reducer 15 <- Reducer 14 (CUSTOM_SIMPLE_EDGE)
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 16 (SIMPLE_EDGE)
-Reducer 3 <- Map 17 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 4 <- Map 18 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
-Reducer 5 <- Map 19 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
-Reducer 6 <- Map 20 (SIMPLE_EDGE), Reducer 5 (SIMPLE_EDGE)
+Reducer 13 <- Reducer 12 (SIMPLE_EDGE)
+Reducer 14 <- Reducer 13 (CUSTOM_SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 15 (SIMPLE_EDGE)
+Reducer 3 <- Map 16 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
+Reducer 4 <- Map 17 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Map 18 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 6 <- Map 19 (SIMPLE_EDGE), Reducer 5 (SIMPLE_EDGE)
 Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
-Reducer 8 <- Reducer 15 (CUSTOM_SIMPLE_EDGE), Reducer 7 (CUSTOM_SIMPLE_EDGE)
-Reducer 9 <- Map 1 (SIMPLE_EDGE), Map 17 (SIMPLE_EDGE)
+Reducer 8 <- Reducer 14 (CUSTOM_SIMPLE_EDGE), Reducer 7 (CUSTOM_SIMPLE_EDGE)
+Reducer 9 <- Map 17 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
@@ -127,164 +126,155 @@ Stage-0
             predicate:(_col3 > _col4)
             Merge Join Operator [MERGEJOIN_154] (rows=231911707 width=321)
               Conds:(Inner),Output:["_col0","_col1","_col2","_col3","_col4"]
-            <-Reducer 15 [CUSTOM_SIMPLE_EDGE] vectorized
-              PARTITION_ONLY_SHUFFLE [RS_192]
-                Select Operator [SEL_191] (rows=1 width=232)
+            <-Reducer 14 [CUSTOM_SIMPLE_EDGE] vectorized
+              PARTITION_ONLY_SHUFFLE [RS_190]
+                Select Operator [SEL_189] (rows=1 width=232)
                   Output:["_col0"]
-                  Group By Operator [GBY_190] (rows=1 width=232)
+                  Group By Operator [GBY_188] (rows=1 width=232)
                     Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)","count(VALUE._col1)"]
-                  <-Reducer 14 [CUSTOM_SIMPLE_EDGE] vectorized
-                    PARTITION_ONLY_SHUFFLE [RS_189]
-                      Group By Operator [GBY_188] (rows=1 width=232)
+                  <-Reducer 13 [CUSTOM_SIMPLE_EDGE] vectorized
+                    PARTITION_ONLY_SHUFFLE [RS_187]
+                      Group By Operator [GBY_186] (rows=1 width=232)
                         Output:["_col0","_col1"],aggregations:["sum(_col10)","count(_col10)"]
-                        Select Operator [SEL_187] (rows=463823414 width=88)
+                        Select Operator [SEL_185] (rows=463823414 width=88)
                           Output:["_col10"]
-                          Group By Operator [GBY_186] (rows=463823414 width=88)
+                          Group By Operator [GBY_184] (rows=463823414 width=88)
                             Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6, KEY._col7, KEY._col8, KEY._col9
-                          <-Reducer 13 [SIMPLE_EDGE]
+                          <-Reducer 12 [SIMPLE_EDGE]
                             SHUFFLE [RS_78]
                               PartitionCols:_col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9
                               Group By Operator [GBY_77] (rows=927646829 width=88)
-                                Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10"],aggregations:["sum(_col4)"],keys:_col11, _col12, _col6, _col8, _col15, _col16, _col17, _col18, _col19, _col22
+                                Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10"],aggregations:["sum(_col4)"],keys:_col22, _col17, _col18, _col19, _col20, _col21, _col13, _col14, _col8, _col10
                                 Merge Join Operator [MERGEJOIN_153] (rows=927646829 width=88)
-                                  Conds:RS_73._col9, _col13=RS_180._col1, upper(_col2)(Inner),Output:["_col4","_col6","_col8","_col11","_col12","_col15","_col16","_col17","_col18","_col19","_col22"]
-                                <-Map 20 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_180]
+                                  Conds:RS_73._col11, _col15=RS_178._col1, upper(_col2)(Inner),Output:["_col4","_col8","_col10","_col13","_col14","_col17","_col18","_col19","_col20","_col21","_col22"]
+                                <-Map 19 [SIMPLE_EDGE] vectorized
+                                  SHUFFLE [RS_178]
                                     PartitionCols:_col1, upper(_col2)
-                                    Select Operator [SEL_178] (rows=40000000 width=1014)
+                                    Select Operator [SEL_176] (rows=40000000 width=1014)
                                       Output:["_col0","_col1","_col2"]
-                                      Filter Operator [FIL_177] (rows=40000000 width=1014)
+                                      Filter Operator [FIL_175] (rows=40000000 width=1014)
                                         predicate:(ca_zip is not null and upper(ca_country) is not null)
                                         TableScan [TS_15] (rows=40000000 width=1014)
                                           default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_state","ca_zip","ca_country"]
-                                <-Reducer 12 [SIMPLE_EDGE]
+                                <-Reducer 11 [SIMPLE_EDGE]
                                   SHUFFLE [RS_73]
-                                    PartitionCols:_col9, _col13
+                                    PartitionCols:_col11, _col15
                                     Merge Join Operator [MERGEJOIN_152] (rows=843315281 width=88)
-                                      Conds:RS_70._col0, _col3=RS_176._col0, _col1(Inner),Output:["_col4","_col6","_col8","_col9","_col11","_col12","_col13","_col15","_col16","_col17","_col18","_col19"]
-                                    <-Map 19 [SIMPLE_EDGE] vectorized
-                                      SHUFFLE [RS_176]
-                                        PartitionCols:_col0, _col1
-                                        Select Operator [SEL_174] (rows=57591150 width=77)
-                                          Output:["_col0","_col1"]
-                                          Filter Operator [FIL_173] (rows=57591150 width=77)
-                                            predicate:(sr_item_sk is not null and sr_ticket_number is not null)
-                                            TableScan [TS_12] (rows=57591150 width=77)
-                                              default@store_returns,store_returns,Tbl:COMPLETE,Col:NONE,Output:["sr_item_sk","sr_ticket_number"]
-                                    <-Reducer 11 [SIMPLE_EDGE]
+                                      Conds:RS_70._col0=RS_166._col0(Inner),Output:["_col4","_col8","_col10","_col11","_col13","_col14","_col15","_col17","_col18","_col19","_col20","_col21"]
+                                    <-Map 16 [SIMPLE_EDGE] vectorized
+                                      SHUFFLE [RS_166]
+                                        PartitionCols:_col0
+                                        Select Operator [SEL_164] (rows=462000 width=1436)
+                                          Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                                          Filter Operator [FIL_162] (rows=462000 width=1436)
+                                            predicate:i_item_sk is not null
+                                            TableScan [TS_6] (rows=462000 width=1436)
+                                              default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_current_price","i_size","i_color","i_units","i_manager_id"]
+                                    <-Reducer 10 [SIMPLE_EDGE]
                                       SHUFFLE [RS_70]
-                                        PartitionCols:_col0, _col3
+                                        PartitionCols:_col0
                                         Merge Join Operator [MERGEJOIN_151] (rows=766650239 width=88)
-                                          Conds:RS_67._col0=RS_164._col0(Inner),Output:["_col0","_col3","_col4","_col6","_col8","_col9","_col11","_col12","_col13","_col15","_col16","_col17","_col18","_col19"]
-                                        <-Map 16 [SIMPLE_EDGE] vectorized
-                                          SHUFFLE [RS_164]
+                                          Conds:RS_67._col1=RS_174._col0(Inner),Output:["_col0","_col4","_col8","_col10","_col11","_col13","_col14","_col15"]
+                                        <-Map 18 [SIMPLE_EDGE] vectorized
+                                          SHUFFLE [RS_174]
                                             PartitionCols:_col0
-                                            Select Operator [SEL_162] (rows=462000 width=1436)
-                                              Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                              Filter Operator [FIL_160] (rows=462000 width=1436)
-                                                predicate:i_item_sk is not null
-                                                TableScan [TS_3] (rows=462000 width=1436)
-                                                  default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_current_price","i_size","i_color","i_units","i_manager_id"]
-                                        <-Reducer 10 [SIMPLE_EDGE]
+                                            Select Operator [SEL_172] (rows=80000000 width=860)
+                                              Output:["_col0","_col1","_col2","_col3"]
+                                              Filter Operator [FIL_171] (rows=80000000 width=860)
+                                                predicate:(c_birth_country is not null and c_customer_sk is not null)
+                                                TableScan [TS_12] (rows=80000000 width=860)
+                                                  default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_first_name","c_last_name","c_birth_country"]
+                                        <-Reducer 9 [SIMPLE_EDGE]
                                           SHUFFLE [RS_67]
-                                            PartitionCols:_col0
+                                            PartitionCols:_col1
                                             Merge Join Operator [MERGEJOIN_150] (rows=696954748 width=88)
-                                              Conds:RS_64._col1=RS_172._col0(Inner),Output:["_col0","_col3","_col4","_col6","_col8","_col9","_col11","_col12","_col13"]
-                                            <-Map 18 [SIMPLE_EDGE] vectorized
-                                              SHUFFLE [RS_172]
+                                              Conds:RS_64._col2=RS_170._col0(Inner),Output:["_col0","_col1","_col4","_col8","_col10","_col11"]
+                                            <-Map 17 [SIMPLE_EDGE] vectorized
+                                              SHUFFLE [RS_170]
                                                 PartitionCols:_col0
-                                                Select Operator [SEL_170] (rows=80000000 width=860)
-                                                  Output:["_col0","_col1","_col2","_col3"]
-                                                  Filter Operator [FIL_169] (rows=80000000 width=860)
-                                                    predicate:(c_birth_country is not null and c_customer_sk is not null)
-                                                    TableScan [TS_9] (rows=80000000 width=860)
-                                                      default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_first_name","c_last_name","c_birth_country"]
-                                            <-Reducer 9 [SIMPLE_EDGE]
+                                                Select Operator [SEL_168] (rows=852 width=1910)
+                                                  Output:["_col0","_col1","_col3","_col4"]
+                                                  Filter Operator [FIL_167] (rows=852 width=1910)
+                                                    predicate:((s_market_id = 7) and s_store_sk is not null and s_zip is not null)
+                                                    TableScan [TS_9] (rows=1704 width=1910)
+                                                      default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_store_name","s_market_id","s_state","s_zip"]
+                                            <-Reducer 2 [SIMPLE_EDGE]
                                               SHUFFLE [RS_64]
-                                                PartitionCols:_col1
-                                                Merge Join Operator [MERGEJOIN_149] (rows=633595212 width=88)
-                                                  Conds:RS_158._col2=RS_168._col0(Inner),Output:["_col0","_col1","_col3","_col4","_col6","_col8","_col9"]
+                                                PartitionCols:_col2
+                                                Merge Join Operator [MERGEJOIN_144] (rows=633595212 width=88)
+                                                  Conds:RS_157._col0, _col3=RS_160._col0, _col1(Inner),Output:["_col0","_col1","_col2","_col4"]
                                                 <-Map 1 [SIMPLE_EDGE] vectorized
-                                                  SHUFFLE [RS_158]
-                                                    PartitionCols:_col2
+                                                  SHUFFLE [RS_157]
+                                                    PartitionCols:_col0, _col3
                                                     Select Operator [SEL_156] (rows=575995635 width=88)
                                                       Output:["_col0","_col1","_col2","_col3","_col4"]
                                                       Filter Operator [FIL_155] (rows=575995635 width=88)
                                                         predicate:(ss_customer_sk is not null and ss_item_sk is not null and ss_store_sk is not null and ss_ticket_number is not null)
                                                         TableScan [TS_0] (rows=575995635 width=88)
                                                           default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_item_sk","ss_customer_sk","ss_store_sk","ss_ticket_number","ss_sales_price"]
-                                                <-Map 17 [SIMPLE_EDGE] vectorized
-                                                  SHUFFLE [RS_168]
-                                                    PartitionCols:_col0
-                                                    Select Operator [SEL_166] (rows=852 width=1910)
-                                                      Output:["_col0","_col1","_col3","_col4"]
-                                                      Filter Operator [FIL_165] (rows=852 width=1910)
-                                                        predicate:((s_market_id = 7) and s_store_sk is not null and s_zip is not null)
-                                                        TableScan [TS_6] (rows=1704 width=1910)
-                                                          default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_store_name","s_market_id","s_state","s_zip"]
+                                                <-Map 15 [SIMPLE_EDGE] vectorized
+                                                  SHUFFLE [RS_160]
+                                                    PartitionCols:_col0, _col1
+                                                    Select Operator [SEL_159] (rows=57591150 width=77)
+                                                      Output:["_col0","_col1"]
+                                                      Filter Operator [FIL_158] (rows=57591150 width=77)
+                                                        predicate:(sr_item_sk is not null and sr_ticket_number is not null)
+                                                        TableScan [TS_3] (rows=57591150 width=77)
+                                                          default@store_returns,store_returns,Tbl:COMPLETE,Col:NONE,Output:["sr_item_sk","sr_ticket_number"]
             <-Reducer 7 [CUSTOM_SIMPLE_EDGE] vectorized
-              PARTITION_ONLY_SHUFFLE [RS_185]
-                Select Operator [SEL_184] (rows=231911707 width=88)
+              PARTITION_ONLY_SHUFFLE [RS_183]
+                Select Operator [SEL_182] (rows=231911707 width=88)
                   Output:["_col0","_col1","_col2","_col3"]
-                  Group By Operator [GBY_183] (rows=231911707 width=88)
+                  Group By Operator [GBY_181] (rows=231911707 width=88)
                     Output:["_col0","_col1","_col2","_col3"],aggregations:["sum(_col9)"],keys:_col1, _col2, _col7
-                    Select Operator [SEL_182] (rows=463823414 width=88)
+                    Select Operator [SEL_180] (rows=463823414 width=88)
                       Output:["_col1","_col2","_col7","_col9"]
-                      Group By Operator [GBY_181] (rows=463823414 width=88)
+                      Group By Operator [GBY_179] (rows=463823414 width=88)
                         Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6, KEY._col7, KEY._col8
                       <-Reducer 6 [SIMPLE_EDGE]
                         SHUFFLE [RS_35]
                           PartitionCols:_col0, _col1, _col2
                           Group By Operator [GBY_34] (rows=927646829 width=88)
-                            Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9"],aggregations:["sum(_col4)"],keys:_col17, _col18, _col12, _col22, _col6, _col7, _col9, _col10, _col14
+                            Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9"],aggregations:["sum(_col4)"],keys:_col19, _col20, _col14, _col22, _col8, _col9, _col11, _col12, _col16
                             Merge Join Operator [MERGEJOIN_148] (rows=927646829 width=88)
-                              Conds:RS_30._col15, _col19=RS_179._col1, upper(_col2)(Inner),Output:["_col4","_col6","_col7","_col9","_col10","_col12","_col14","_col17","_col18","_col22"]
-                            <-Map 20 [SIMPLE_EDGE] vectorized
-                              SHUFFLE [RS_179]
+                              Conds:RS_30._col17, _col21=RS_177._col1, upper(_col2)(Inner),Output:["_col4","_col8","_col9","_col11","_col12","_col14","_col16","_col19","_col20","_col22"]
+                            <-Map 19 [SIMPLE_EDGE] vectorized
+                              SHUFFLE [RS_177]
                                 PartitionCols:_col1, upper(_col2)
-                                 Please refer to the previous Select Operator [SEL_178]
+                                 Please refer to the previous Select Operator [SEL_176]
                             <-Reducer 5 [SIMPLE_EDGE]
                               SHUFFLE [RS_30]
-                                PartitionCols:_col15, _col19
+                                PartitionCols:_col17, _col21
                                 Merge Join Operator [MERGEJOIN_147] (rows=843315281 width=88)
-                                  Conds:RS_27._col0, _col3=RS_175._col0, _col1(Inner),Output:["_col4","_col6","_col7","_col9","_col10","_col12","_col14","_col15","_col17","_col18","_col19"]
-                                <-Map 19 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_175]
-                                    PartitionCols:_col0, _col1
-                                     Please refer to the previous Select Operator [SEL_174]
+                                  Conds:RS_27._col1=RS_173._col0(Inner),Output:["_col4","_col8","_col9","_col11","_col12","_col14","_col16","_col17","_col19","_col20","_col21"]
+                                <-Map 18 [SIMPLE_EDGE] vectorized
+                                  SHUFFLE [RS_173]
+                                    PartitionCols:_col0
+                                     Please refer to the previous Select Operator [SEL_172]
                                 <-Reducer 4 [SIMPLE_EDGE]
                                   SHUFFLE [RS_27]
-                                    PartitionCols:_col0, _col3
+                                    PartitionCols:_col1
                                     Merge Join Operator [MERGEJOIN_146] (rows=766650239 width=88)
-                                      Conds:RS_24._col1=RS_171._col0(Inner),Output:["_col0","_col3","_col4","_col6","_col7","_col9","_col10","_col12","_col14","_col15","_col17","_col18","_col19"]
-                                    <-Map 18 [SIMPLE_EDGE] vectorized
-                                      SHUFFLE [RS_171]
+                                      Conds:RS_24._col2=RS_169._col0(Inner),Output:["_col1","_col4","_col8","_col9","_col11","_col12","_col14","_col16","_col17"]
+                                    <-Map 17 [SIMPLE_EDGE] vectorized
+                                      SHUFFLE [RS_169]
                                         PartitionCols:_col0
-                                         Please refer to the previous Select Operator [SEL_170]
+                                         Please refer to the previous Select Operator [SEL_168]
                                     <-Reducer 3 [SIMPLE_EDGE]
                                       SHUFFLE [RS_24]
-                                        PartitionCols:_col1
+                                        PartitionCols:_col2
                                         Merge Join Operator [MERGEJOIN_145] (rows=696954748 width=88)
-                                          Conds:RS_21._col2=RS_167._col0(Inner),Output:["_col0","_col1","_col3","_col4","_col6","_col7","_col9","_col10","_col12","_col14","_col15"]
-                                        <-Map 17 [SIMPLE_EDGE] vectorized
-                                          SHUFFLE [RS_167]
+                                          Conds:RS_21._col0=RS_165._col0(Inner),Output:["_col1","_col2","_col4","_col8","_col9","_col11","_col12"]
+                                        <-Map 16 [SIMPLE_EDGE] vectorized
+                                          SHUFFLE [RS_165]
                                             PartitionCols:_col0
-                                             Please refer to the previous Select Operator [SEL_166]
+                                            Select Operator [SEL_163] (rows=231000 width=1436)
+                                              Output:["_col0","_col1","_col2","_col4","_col5"]
+                                              Filter Operator [FIL_161] (rows=231000 width=1436)
+                                                predicate:((i_color = 'orchid') and i_item_sk is not null)
+                                                 Please refer to the previous TableScan [TS_6]
                                         <-Reducer 2 [SIMPLE_EDGE]
                                           SHUFFLE [RS_21]
-                                            PartitionCols:_col2
-                                            Merge Join Operator [MERGEJOIN_144] (rows=633595212 width=88)
-                                              Conds:RS_157._col0=RS_163._col0(Inner),Output:["_col0","_col1","_col2","_col3","_col4","_col6","_col7","_col9","_col10"]
-                                            <-Map 1 [SIMPLE_EDGE] vectorized
-                                              SHUFFLE [RS_157]
-                                                PartitionCols:_col0
-                                                 Please refer to the previous Select Operator [SEL_156]
-                                            <-Map 16 [SIMPLE_EDGE] vectorized
-                                              SHUFFLE [RS_163]
-                                                PartitionCols:_col0
-                                                Select Operator [SEL_161] (rows=231000 width=1436)
-                                                  Output:["_col0","_col1","_col2","_col4","_col5"]
-                                                  Filter Operator [FIL_159] (rows=231000 width=1436)
-                                                    predicate:((i_color = 'orchid') and i_item_sk is not null)
-                                                     Please refer to the previous TableScan [TS_3]
+                                            PartitionCols:_col0
+                                             Please refer to the previous Merge Join Operator [MERGEJOIN_144]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/491c9f62/ql/src/test/results/clientpositive/perf/tez/query25.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query25.q.out b/ql/src/test/results/clientpositive/perf/tez/query25.q.out
index 7966437..0abc3ef 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query25.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query25.q.out
@@ -95,137 +95,135 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Reducer 10 <- Reducer 11 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
-Reducer 11 <- Map 13 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
-Reducer 3 <- Reducer 10 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 4 <- Map 14 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
-Reducer 5 <- Map 15 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 10 <- Map 7 (SIMPLE_EDGE), Reducer 12 (SIMPLE_EDGE)
+Reducer 12 <- Map 11 (SIMPLE_EDGE), Map 13 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 7 (SIMPLE_EDGE)
+Reducer 3 <- Reducer 2 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
+Reducer 4 <- Map 15 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
 Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
-Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
-Reducer 9 <- Map 12 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
+Reducer 8 <- Map 7 (SIMPLE_EDGE), Reducer 10 (SIMPLE_EDGE)
+Reducer 9 <- Map 14 (SIMPLE_EDGE), Reducer 8 (SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
     limit:100
     Stage-1
-      Reducer 7 vectorized
-      File Output Operator [FS_131]
-        Limit [LIM_130] (rows=100 width=88)
+      Reducer 6 vectorized
+      File Output Operator [FS_128]
+        Limit [LIM_127] (rows=100 width=88)
           Number of rows:100
-          Select Operator [SEL_129] (rows=421657640 width=88)
+          Select Operator [SEL_126] (rows=510205767 width=88)
             Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-          <-Reducer 6 [SIMPLE_EDGE] vectorized
-            SHUFFLE [RS_128]
-              Group By Operator [GBY_127] (rows=421657640 width=88)
+          <-Reducer 5 [SIMPLE_EDGE] vectorized
+            SHUFFLE [RS_125]
+              Group By Operator [GBY_124] (rows=510205767 width=88)
                 Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3
-              <-Reducer 5 [SIMPLE_EDGE]
-                SHUFFLE [RS_49]
+              <-Reducer 4 [SIMPLE_EDGE]
+                SHUFFLE [RS_48]
                   PartitionCols:_col0, _col1, _col2, _col3
-                  Group By Operator [GBY_48] (rows=843315281 width=88)
-                    Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"],aggregations:["sum(_col5)","sum(_col20)","sum(_col12)"],keys:_col25, _col26, _col28, _col29
-                    Top N Key Operator [TNK_95] (rows=843315281 width=88)
-                      keys:_col25, _col26, _col28, _col29,sort order:++++,top n:100
-                      Merge Join Operator [MERGEJOIN_102] (rows=843315281 width=88)
-                        Conds:RS_44._col3=RS_126._col0(Inner),Output:["_col5","_col12","_col20","_col25","_col26","_col28","_col29"]
+                  Group By Operator [GBY_47] (rows=1020411534 width=88)
+                    Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"],aggregations:["sum(_col18)","sum(_col23)","sum(_col3)"],keys:_col28, _col29, _col8, _col9
+                    Top N Key Operator [TNK_94] (rows=1020411534 width=88)
+                      keys:_col28, _col29, _col8, _col9,sort order:++++,top n:100
+                      Merge Join Operator [MERGEJOIN_101] (rows=1020411534 width=88)
+                        Conds:RS_43._col14=RS_123._col0(Inner),Output:["_col3","_col8","_col9","_col18","_col23","_col28","_col29"]
                       <-Map 15 [SIMPLE_EDGE] vectorized
-                        SHUFFLE [RS_126]
+                        SHUFFLE [RS_123]
                           PartitionCols:_col0
-                          Select Operator [SEL_125] (rows=1704 width=1910)
+                          Select Operator [SEL_122] (rows=462000 width=1436)
                             Output:["_col0","_col1","_col2"]
-                            Filter Operator [FIL_124] (rows=1704 width=1910)
-                              predicate:s_store_sk is not null
-                              TableScan [TS_32] (rows=1704 width=1910)
-                                default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_store_id","s_store_name"]
-                      <-Reducer 4 [SIMPLE_EDGE]
-                        SHUFFLE [RS_44]
-                          PartitionCols:_col3
-                          Merge Join Operator [MERGEJOIN_101] (rows=766650239 width=88)
-                            Conds:RS_41._col1=RS_123._col0(Inner),Output:["_col3","_col5","_col12","_col20","_col25","_col26"]
-                          <-Map 14 [SIMPLE_EDGE] vectorized
-                            SHUFFLE [RS_123]
-                              PartitionCols:_col0
-                              Select Operator [SEL_122] (rows=462000 width=1436)
-                                Output:["_col0","_col1","_col2"]
-                                Filter Operator [FIL_121] (rows=462000 width=1436)
-                                  predicate:i_item_sk is not null
-                                  TableScan [TS_29] (rows=462000 width=1436)
-                                    default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id","i_item_desc"]
-                          <-Reducer 3 [SIMPLE_EDGE]
+                            Filter Operator [FIL_121] (rows=462000 width=1436)
+                              predicate:i_item_sk is not null
+                              TableScan [TS_34] (rows=462000 width=1436)
+                                default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id","i_item_desc"]
+                      <-Reducer 3 [SIMPLE_EDGE]
+                        SHUFFLE [RS_43]
+                          PartitionCols:_col14
+                          Merge Join Operator [MERGEJOIN_100] (rows=927646829 width=88)
+                            Conds:RS_40._col1, _col2=RS_41._col14, _col13(Inner),Output:["_col3","_col8","_col9","_col14","_col18","_col23"]
+                          <-Reducer 2 [SIMPLE_EDGE]
+                            SHUFFLE [RS_40]
+                              PartitionCols:_col1, _col2
+                              Merge Join Operator [MERGEJOIN_95] (rows=316788826 width=135)
+                                Conds:RS_104._col0=RS_109._col0(Inner),Output:["_col1","_col2","_col3"]
+                              <-Map 7 [SIMPLE_EDGE] vectorized
+                                SHUFFLE [RS_109]
+                                  PartitionCols:_col0
+                                  Select Operator [SEL_107] (rows=4058 width=1119)
+                                    Output:["_col0"]
+                                    Filter Operator [FIL_105] (rows=4058 width=1119)
+                                      predicate:((d_year = 2000) and d_date_sk is not null and d_moy BETWEEN 4 AND 10)
+                                      TableScan [TS_3] (rows=73049 width=1119)
+                                        default@date_dim,d3,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
+                              <-Map 1 [SIMPLE_EDGE] vectorized
+                                SHUFFLE [RS_104]
+                                  PartitionCols:_col0
+                                  Select Operator [SEL_103] (rows=287989836 width=135)
+                                    Output:["_col0","_col1","_col2","_col3"]
+                                    Filter Operator [FIL_102] (rows=287989836 width=135)
+                                      predicate:(cs_bill_customer_sk is not null and cs_item_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_item_sk","cs_net_profit"]
+                          <-Reducer 9 [SIMPLE_EDGE]
                             SHUFFLE [RS_41]
-                              PartitionCols:_col1
-                              Merge Join Operator [MERGEJOIN_100] (rows=696954748 width=88)
-                                Conds:RS_38._col1, _col2, _col4=RS_39._col8, _col9, _col10(Inner),Output:["_col1","_col3","_col5","_col12","_col20"]
-                              <-Reducer 10 [SIMPLE_EDGE]
-                                SHUFFLE [RS_39]
-                                  PartitionCols:_col8, _col9, _col10
-                                  Merge Join Operator [MERGEJOIN_99] (rows=348467716 width=135)
-                                    Conds:RS_25._col2, _col1=RS_26._col1, _col2(Inner),Output:["_col3","_col8","_col9","_col10","_col11"]
-                                  <-Reducer 11 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_26]
-                                      PartitionCols:_col1, _col2
-                                      Merge Join Operator [MERGEJOIN_98] (rows=63350266 width=77)
-                                        Conds:RS_120._col0=RS_114._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
-                                      <-Map 8 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_114]
-                                          PartitionCols:_col0
-                                          Select Operator [SEL_111] (rows=4058 width=1119)
-                                            Output:["_col0"]
-                                            Filter Operator [FIL_108] (rows=4058 width=1119)
-                                              predicate:((d_year = 2000) and d_date_sk is not null and d_moy BETWEEN 4 AND 10)
-                                              TableScan [TS_3] (rows=73049 width=1119)
-                                                default@date_dim,d1,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
-                                      <-Map 13 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_120]
-                                          PartitionCols:_col0
-                                          Select Operator [SEL_119] (rows=57591150 width=77)
-                                            Output:["_col0","_col1","_col2","_col3","_col4"]
-                                            Filter Operator [FIL_118] (rows=57591150 width=77)
-                                              predicate:(sr_customer_sk is not null and sr_item_sk is not null and sr_returned_date_sk is not null and sr_ticket_number is not null)
-                                              TableScan [TS_12] (rows=57591150 width=77)
-                                                default@store_returns,store_returns,Tbl:COMPLETE,Col:NONE,Output:["sr_returned_date_sk","sr_item_sk","sr_customer_sk","sr_ticket_number","sr_net_loss"]
-                                  <-Reducer 9 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_25]
-                                      PartitionCols:_col2, _col1
-                                      Merge Join Operator [MERGEJOIN_97] (rows=316788826 width=135)
-                                        Conds:RS_117._col0=RS_113._col0(Inner),Output:["_col1","_col2","_col3"]
-                                      <-Map 8 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_113]
-                                          PartitionCols:_col0
-                                          Select Operator [SEL_110] (rows=4058 width=1119)
-                                            Output:["_col0"]
-                                            Filter Operator [FIL_107] (rows=4058 width=1119)
-                                              predicate:((d_year = 2000) and d_date_sk is not null and d_moy BETWEEN 4 AND 10)
-                                               Please refer to the previous TableScan [TS_3]
-                                      <-Map 12 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_117]
-                                          PartitionCols:_col0
-                                          Select Operator [SEL_116] (rows=287989836 width=135)
-                                            Output:["_col0","_col1","_col2","_col3"]
-                                            Filter Operator [FIL_115] (rows=287989836 width=135)
-                                              predicate:(cs_bill_customer_sk is not null and cs_item_sk is not null and cs_sold_date_sk is not null)
-                                              TableScan [TS_6] (rows=287989836 width=135)
-                                                default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_item_sk","cs_net_profit"]
-                              <-Reducer 2 [SIMPLE_EDGE]
-                                SHUFFLE [RS_38]
-                                  PartitionCols:_col1, _col2, _col4
-                                  Merge Join Operator [MERGEJOIN_96] (rows=633595212 width=88)
-                                    Conds:RS_105._col0=RS_112._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
-                                  <-Map 8 [SIMPLE_EDGE] vectorized
-                                    SHUFFLE [RS_112]
-                                      PartitionCols:_col0
-                                      Select Operator [SEL_109] (rows=18262 width=1119)
-                                        Output:["_col0"]
-                                        Filter Operator [FIL_106] (rows=18262 width=1119)
-                                          predicate:((d_moy = 4) and (d_year = 2000) and d_date_sk is not null)
-                                           Please refer to the previous TableScan [TS_3]
-                                  <-Map 1 [SIMPLE_EDGE] vectorized
-                                    SHUFFLE [RS_105]
-                                      PartitionCols:_col0
-                                      Select Operator [SEL_104] (rows=575995635 width=88)
-                                        Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                        Filter Operator [FIL_103] (rows=575995635 width=88)
-                                          predicate:(ss_customer_sk is not null and ss_item_sk is not null and ss_sold_date_sk is not null and ss_store_sk is not null and ss_ticket_number is not null)
-                                          TableScan [TS_0] (rows=575995635 width=88)
-                                            default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_customer_sk","ss_store_sk","ss_ticket_number","ss_net_profit"]
+                              PartitionCols:_col14, _col13
+                              Select Operator [SEL_33] (rows=843315281 width=88)
+                                Output:["_col1","_col2","_col7","_col11","_col13","_col14","_col16"]
+                                Merge Join Operator [MERGEJOIN_99] (rows=843315281 width=88)
+                                  Conds:RS_30._col3=RS_120._col0(Inner),Output:["_col1","_col5","_col7","_col8","_col10","_col18","_col19"]
+                                <-Map 14 [SIMPLE_EDGE] vectorized
+                                  SHUFFLE [RS_120]
+                                    PartitionCols:_col0
+                                    Select Operator [SEL_119] (rows=1704 width=1910)
+                                      Output:["_col0","_col1","_col2"]
+                                      Filter Operator [FIL_118] (rows=1704 width=1910)
+                                        predicate:s_store_sk is not null
+                                        TableScan [TS_18] (rows=1704 width=1910)
+                                          default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_store_id","s_store_name"]
+                                <-Reducer 8 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_30]
+                                    PartitionCols:_col3
+                                    Merge Join Operator [MERGEJOIN_98] (rows=766650239 width=88)
+                                      Conds:RS_27._col6=RS_110._col0(Inner),Output:["_col1","_col3","_col5","_col7","_col8","_col10"]
+                                    <-Map 7 [SIMPLE_EDGE] vectorized
+                                      SHUFFLE [RS_110]
+                                        PartitionCols:_col0
+                                         Please refer to the previous Select Operator [SEL_107]
+                                    <-Reducer 10 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_27]
+                                        PartitionCols:_col6
+                                        Merge Join Operator [MERGEJOIN_97] (rows=696954748 width=88)
+                                          Conds:RS_24._col0=RS_111._col0(Inner),Output:["_col1","_col3","_col5","_col6","_col7","_col8","_col10"]
+                                        <-Map 7 [SIMPLE_EDGE] vectorized
+                                          SHUFFLE [RS_111]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_108] (rows=18262 width=1119)
+                                              Output:["_col0"]
+                                              Filter Operator [FIL_106] (rows=18262 width=1119)
+                                                predicate:((d_moy = 4) and (d_year = 2000) and d_date_sk is not null)
+                                                 Please refer to the previous TableScan [TS_3]
+                                        <-Reducer 12 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_24]
+                                            PartitionCols:_col0
+                                            Merge Join Operator [MERGEJOIN_96] (rows=633595212 width=88)
+                                              Conds:RS_114._col1, _col2, _col4=RS_117._col1, _col2, _col3(Inner),Output:["_col0","_col1","_col3","_col5","_col6","_col7","_col8","_col10"]
+                                            <-Map 11 [SIMPLE_EDGE] vectorized
+                                              SHUFFLE [RS_114]
+                                                PartitionCols:_col1, _col2, _col4
+                                                Select Operator [SEL_113] (rows=575995635 width=88)
+                                                  Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                                                  Filter Operator [FIL_112] (rows=575995635 width=88)
+                                                    predicate:(ss_customer_sk is not null and ss_item_sk is not null and ss_sold_date_sk is not null and ss_store_sk is not null and ss_ticket_number is not null)
+                                                    TableScan [TS_6] (rows=575995635 width=88)
+                                                      default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_customer_sk","ss_store_sk","ss_ticket_number","ss_net_profit"]
+                                            <-Map 13 [SIMPLE_EDGE] vectorized
+                                              SHUFFLE [RS_117]
+                                                PartitionCols:_col1, _col2, _col3
+                                                Select Operator [SEL_116] (rows=57591150 width=77)
+                                                  Output:["_col0","_col1","_col2","_col3","_col4"]
+                                                  Filter Operator [FIL_115] (rows=57591150 width=77)
+                                                    predicate:(sr_customer_sk is not null and sr_item_sk is not null and sr_returned_date_sk is not null and sr_ticket_number is not null)
+                                                    TableScan [TS_9] (rows=57591150 width=77)
+                                                      default@store_returns,store_returns,Tbl:COMPLETE,Col:NONE,Output:["sr_returned_date_sk","sr_item_sk","sr_customer_sk","sr_ticket_number","sr_net_loss"]
 


Mime
View raw message