You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by we...@apache.org on 2017/05/17 02:52:48 UTC

[10/50] [abbrv] hive git commit: HIVE-16602: Implement shared scans with Tez (Jesus Camacho Rodriguez, reviewed by Ashutosh Chauhan)

http://git-wip-us.apache.org/repos/asf/hive/blob/59f65772/ql/src/test/results/clientpositive/perf/query75.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query75.q.out b/ql/src/test/results/clientpositive/perf/query75.q.out
index b1e236d..0ecc985 100644
--- a/ql/src/test/results/clientpositive/perf/query75.q.out
+++ b/ql/src/test/results/clientpositive/perf/query75.q.out
@@ -5,28 +5,28 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Reducer 13 <- Map 12 (SIMPLE_EDGE), Map 16 (SIMPLE_EDGE)
-Reducer 14 <- Map 17 (SIMPLE_EDGE), Reducer 13 (SIMPLE_EDGE)
-Reducer 15 <- Map 18 (SIMPLE_EDGE), Reducer 14 (SIMPLE_EDGE), Union 5 (CONTAINS)
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 9 (SIMPLE_EDGE)
-Reducer 20 <- Map 19 (SIMPLE_EDGE), Map 23 (SIMPLE_EDGE)
-Reducer 21 <- Map 24 (SIMPLE_EDGE), Reducer 20 (SIMPLE_EDGE)
-Reducer 22 <- Map 25 (SIMPLE_EDGE), Reducer 21 (SIMPLE_EDGE), Union 5 (CONTAINS)
-Reducer 27 <- Map 26 (SIMPLE_EDGE), Map 32 (SIMPLE_EDGE)
-Reducer 28 <- Map 33 (SIMPLE_EDGE), Reducer 27 (SIMPLE_EDGE)
-Reducer 29 <- Map 34 (SIMPLE_EDGE), Reducer 28 (SIMPLE_EDGE), Union 30 (CONTAINS)
-Reducer 3 <- Map 10 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 31 <- Union 30 (SIMPLE_EDGE)
-Reducer 36 <- Map 35 (SIMPLE_EDGE), Map 39 (SIMPLE_EDGE)
-Reducer 37 <- Map 40 (SIMPLE_EDGE), Reducer 36 (SIMPLE_EDGE)
-Reducer 38 <- Map 41 (SIMPLE_EDGE), Reducer 37 (SIMPLE_EDGE), Union 30 (CONTAINS)
-Reducer 4 <- Map 11 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE), Union 5 (CONTAINS)
-Reducer 43 <- Map 42 (SIMPLE_EDGE), Map 46 (SIMPLE_EDGE)
-Reducer 44 <- Map 47 (SIMPLE_EDGE), Reducer 43 (SIMPLE_EDGE)
-Reducer 45 <- Map 48 (SIMPLE_EDGE), Reducer 44 (SIMPLE_EDGE), Union 30 (CONTAINS)
+Reducer 10 <- Map 27 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
+Reducer 11 <- Map 28 (SIMPLE_EDGE), Reducer 10 (SIMPLE_EDGE), Union 12 (CONTAINS)
+Reducer 13 <- Union 12 (SIMPLE_EDGE)
+Reducer 15 <- Map 14 (SIMPLE_EDGE), Map 29 (SIMPLE_EDGE)
+Reducer 16 <- Map 27 (SIMPLE_EDGE), Reducer 15 (SIMPLE_EDGE)
+Reducer 17 <- Map 30 (SIMPLE_EDGE), Reducer 16 (SIMPLE_EDGE), Union 5 (CONTAINS)
+Reducer 18 <- Map 14 (SIMPLE_EDGE), Map 31 (SIMPLE_EDGE)
+Reducer 19 <- Map 27 (SIMPLE_EDGE), Reducer 18 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 14 (SIMPLE_EDGE)
+Reducer 20 <- Map 32 (SIMPLE_EDGE), Reducer 19 (SIMPLE_EDGE), Union 5 (CONTAINS)
+Reducer 21 <- Map 14 (SIMPLE_EDGE), Map 29 (SIMPLE_EDGE)
+Reducer 22 <- Map 27 (SIMPLE_EDGE), Reducer 21 (SIMPLE_EDGE)
+Reducer 23 <- Map 30 (SIMPLE_EDGE), Reducer 22 (SIMPLE_EDGE), Union 12 (CONTAINS)
+Reducer 24 <- Map 14 (SIMPLE_EDGE), Map 31 (SIMPLE_EDGE)
+Reducer 25 <- Map 27 (SIMPLE_EDGE), Reducer 24 (SIMPLE_EDGE)
+Reducer 26 <- Map 32 (SIMPLE_EDGE), Reducer 25 (SIMPLE_EDGE), Union 12 (CONTAINS)
+Reducer 3 <- Map 27 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
+Reducer 4 <- Map 28 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE), Union 5 (CONTAINS)
 Reducer 6 <- Union 5 (SIMPLE_EDGE)
-Reducer 7 <- Reducer 31 (SIMPLE_EDGE), Reducer 6 (SIMPLE_EDGE)
+Reducer 7 <- Reducer 13 (SIMPLE_EDGE), Reducer 6 (SIMPLE_EDGE)
 Reducer 8 <- Reducer 7 (SIMPLE_EDGE)
+Reducer 9 <- Map 1 (SIMPLE_EDGE), Map 14 (SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
@@ -46,13 +46,13 @@ Stage-0
                   predicate:((CAST( _col10 AS decimal(17,2)) / CAST( _col4 AS decimal(17,2))) < 0.9)
                   Merge Join Operator [MERGEJOIN_259] (rows=737897778 width=108)
                     Conds:RS_148._col0, _col1, _col2, _col3=RS_149._col0, _col1, _col2, _col3(Inner),Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col10","_col11"]
-                  <-Reducer 31 [SIMPLE_EDGE]
+                  <-Reducer 13 [SIMPLE_EDGE]
                     SHUFFLE [RS_149]
                       PartitionCols:_col0, _col1, _col2, _col3
                       Group By Operator [GBY_146] (rows=670816148 width=108)
                         Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3
-                      <-Union 30 [SIMPLE_EDGE]
-                        <-Reducer 29 [CONTAINS]
+                      <-Union 12 [SIMPLE_EDGE]
+                        <-Reducer 11 [CONTAINS]
                           Reduce Output Operator [RS_145]
                             PartitionCols:_col0, _col1, _col2, _col3
                             Group By Operator [GBY_144] (rows=1341632296 width=108)
@@ -61,53 +61,53 @@ Stage-0
                                 Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
                                 Merge Join Operator [MERGEJOIN_252] (rows=383314495 width=135)
                                   Conds:RS_92._col1, _col2=RS_93._col0, _col1(Left Outer),Output:["_col3","_col4","_col8","_col9","_col10","_col12","_col15","_col16"]
-                                <-Map 34 [SIMPLE_EDGE]
+                                <-Map 28 [SIMPLE_EDGE]
                                   SHUFFLE [RS_93]
                                     PartitionCols:_col0, _col1
                                     Select Operator [SEL_85] (rows=28798881 width=106)
                                       Output:["_col0","_col1","_col2","_col3"]
                                       Filter Operator [FIL_232] (rows=28798881 width=106)
                                         predicate:cr_item_sk is not null
-                                        TableScan [TS_83] (rows=28798881 width=106)
+                                        TableScan [TS_9] (rows=28798881 width=106)
                                           default@catalog_returns,catalog_returns,Tbl:COMPLETE,Col:NONE,Output:["cr_item_sk","cr_order_number","cr_return_quantity","cr_return_amount"]
-                                <-Reducer 28 [SIMPLE_EDGE]
+                                <-Reducer 10 [SIMPLE_EDGE]
                                   SHUFFLE [RS_92]
                                     PartitionCols:_col1, _col2
                                     Merge Join Operator [MERGEJOIN_251] (rows=348467716 width=135)
                                       Conds:RS_89._col1=RS_90._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col8","_col9","_col10","_col12"]
-                                    <-Map 33 [SIMPLE_EDGE]
+                                    <-Map 27 [SIMPLE_EDGE]
                                       SHUFFLE [RS_90]
                                         PartitionCols:_col0
                                         Select Operator [SEL_82] (rows=231000 width=1436)
                                           Output:["_col0","_col1","_col2","_col3","_col5"]
                                           Filter Operator [FIL_231] (rows=231000 width=1436)
                                             predicate:((i_category = 'Sports') and i_item_sk is not null and i_brand_id is not null and i_class_id is not null and i_category_id is not null and i_manufact_id is not null)
-                                            TableScan [TS_80] (rows=462000 width=1436)
+                                            TableScan [TS_6] (rows=462000 width=1436)
                                               default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_brand_id","i_class_id","i_category_id","i_category","i_manufact_id"]
-                                    <-Reducer 27 [SIMPLE_EDGE]
+                                    <-Reducer 9 [SIMPLE_EDGE]
                                       SHUFFLE [RS_89]
                                         PartitionCols:_col1
                                         Merge Join Operator [MERGEJOIN_250] (rows=316788826 width=135)
                                           Conds:RS_86._col0=RS_87._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
-                                        <-Map 26 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_86]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_76] (rows=287989836 width=135)
-                                              Output:["_col0","_col1","_col2","_col3","_col4"]
-                                              Filter Operator [FIL_229] (rows=287989836 width=135)
-                                                predicate:(cs_item_sk is not null and cs_sold_date_sk is not null)
-                                                TableScan [TS_74] (rows=287989836 width=135)
-                                                  default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_item_sk","cs_order_number","cs_quantity","cs_ext_sales_price"]
-                                        <-Map 32 [SIMPLE_EDGE]
+                                        <-Map 14 [SIMPLE_EDGE]
                                           SHUFFLE [RS_87]
                                             PartitionCols:_col0
                                             Select Operator [SEL_79] (rows=36524 width=1119)
                                               Output:["_col0"]
                                               Filter Operator [FIL_230] (rows=36524 width=1119)
                                                 predicate:((d_year = 2002) and d_date_sk is not null)
-                                                TableScan [TS_77] (rows=73049 width=1119)
+                                                TableScan [TS_3] (rows=73049 width=1119)
                                                   default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
-                        <-Reducer 38 [CONTAINS]
+                                        <-Map 1 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_86]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_76] (rows=287989836 width=135)
+                                              Output:["_col0","_col1","_col2","_col3","_col4"]
+                                              Filter Operator [FIL_229] (rows=287989836 width=135)
+                                                predicate:(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_item_sk","cs_order_number","cs_quantity","cs_ext_sales_price"]
+                        <-Reducer 23 [CONTAINS]
                           Reduce Output Operator [RS_145]
                             PartitionCols:_col0, _col1, _col2, _col3
                             Group By Operator [GBY_144] (rows=1341632296 width=108)
@@ -116,53 +116,51 @@ Stage-0
                                 Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
                                 Merge Join Operator [MERGEJOIN_255] (rows=766650239 width=88)
                                   Conds:RS_114._col1, _col2=RS_115._col0, _col1(Left Outer),Output:["_col3","_col4","_col8","_col9","_col10","_col12","_col15","_col16"]
-                                <-Map 41 [SIMPLE_EDGE]
+                                <-Map 30 [SIMPLE_EDGE]
                                   SHUFFLE [RS_115]
                                     PartitionCols:_col0, _col1
                                     Select Operator [SEL_107] (rows=57591150 width=77)
                                       Output:["_col0","_col1","_col2","_col3"]
                                       Filter Operator [FIL_236] (rows=57591150 width=77)
                                         predicate:sr_item_sk is not null
-                                        TableScan [TS_105] (rows=57591150 width=77)
+                                        TableScan [TS_31] (rows=57591150 width=77)
                                           default@store_returns,store_returns,Tbl:COMPLETE,Col:NONE,Output:["sr_item_sk","sr_ticket_number","sr_return_quantity","sr_return_amt"]
-                                <-Reducer 37 [SIMPLE_EDGE]
+                                <-Reducer 22 [SIMPLE_EDGE]
                                   SHUFFLE [RS_114]
                                     PartitionCols:_col1, _col2
                                     Merge Join Operator [MERGEJOIN_254] (rows=696954748 width=88)
                                       Conds:RS_111._col1=RS_112._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col8","_col9","_col10","_col12"]
-                                    <-Map 40 [SIMPLE_EDGE]
+                                    <-Map 27 [SIMPLE_EDGE]
                                       SHUFFLE [RS_112]
                                         PartitionCols:_col0
                                         Select Operator [SEL_104] (rows=231000 width=1436)
                                           Output:["_col0","_col1","_col2","_col3","_col5"]
                                           Filter Operator [FIL_235] (rows=231000 width=1436)
                                             predicate:((i_category = 'Sports') and i_item_sk is not null and i_brand_id is not null and i_class_id is not null and i_category_id is not null and i_manufact_id is not null)
-                                            TableScan [TS_102] (rows=462000 width=1436)
-                                              default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_brand_id","i_class_id","i_category_id","i_category","i_manufact_id"]
-                                    <-Reducer 36 [SIMPLE_EDGE]
+                                             Please refer to the previous TableScan [TS_6]
+                                    <-Reducer 21 [SIMPLE_EDGE]
                                       SHUFFLE [RS_111]
                                         PartitionCols:_col1
                                         Merge Join Operator [MERGEJOIN_253] (rows=633595212 width=88)
                                           Conds:RS_108._col0=RS_109._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
-                                        <-Map 35 [SIMPLE_EDGE]
+                                        <-Map 14 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_109]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_101] (rows=36524 width=1119)
+                                              Output:["_col0"]
+                                              Filter Operator [FIL_234] (rows=36524 width=1119)
+                                                predicate:((d_year = 2002) and d_date_sk is not null)
+                                                 Please refer to the previous TableScan [TS_3]
+                                        <-Map 29 [SIMPLE_EDGE]
                                           SHUFFLE [RS_108]
                                             PartitionCols:_col0
                                             Select Operator [SEL_98] (rows=575995635 width=88)
                                               Output:["_col0","_col1","_col2","_col3","_col4"]
                                               Filter Operator [FIL_233] (rows=575995635 width=88)
                                                 predicate:(ss_item_sk is not null and ss_sold_date_sk is not null)
-                                                TableScan [TS_96] (rows=575995635 width=88)
+                                                TableScan [TS_22] (rows=575995635 width=88)
                                                   default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_ticket_number","ss_quantity","ss_ext_sales_price"]
-                                        <-Map 39 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_109]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_101] (rows=36524 width=1119)
-                                              Output:["_col0"]
-                                              Filter Operator [FIL_234] (rows=36524 width=1119)
-                                                predicate:((d_year = 2002) and d_date_sk is not null)
-                                                TableScan [TS_99] (rows=73049 width=1119)
-                                                  default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
-                        <-Reducer 45 [CONTAINS]
+                        <-Reducer 26 [CONTAINS]
                           Reduce Output Operator [RS_145]
                             PartitionCols:_col0, _col1, _col2, _col3
                             Group By Operator [GBY_144] (rows=1341632296 width=108)
@@ -171,59 +169,57 @@ Stage-0
                                 Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
                                 Merge Join Operator [MERGEJOIN_258] (rows=191667562 width=135)
                                   Conds:RS_138._col1, _col2=RS_139._col0, _col1(Left Outer),Output:["_col3","_col4","_col8","_col9","_col10","_col12","_col15","_col16"]
-                                <-Map 48 [SIMPLE_EDGE]
+                                <-Map 32 [SIMPLE_EDGE]
                                   SHUFFLE [RS_139]
                                     PartitionCols:_col0, _col1
                                     Select Operator [SEL_131] (rows=14398467 width=92)
                                       Output:["_col0","_col1","_col2","_col3"]
                                       Filter Operator [FIL_240] (rows=14398467 width=92)
                                         predicate:wr_item_sk is not null
-                                        TableScan [TS_129] (rows=14398467 width=92)
+                                        TableScan [TS_55] (rows=14398467 width=92)
                                           default@web_returns,web_returns,Tbl:COMPLETE,Col:NONE,Output:["wr_item_sk","wr_order_number","wr_return_quantity","wr_return_amt"]
-                                <-Reducer 44 [SIMPLE_EDGE]
+                                <-Reducer 25 [SIMPLE_EDGE]
                                   SHUFFLE [RS_138]
                                     PartitionCols:_col1, _col2
                                     Merge Join Operator [MERGEJOIN_257] (rows=174243235 width=135)
                                       Conds:RS_135._col1=RS_136._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col8","_col9","_col10","_col12"]
-                                    <-Map 47 [SIMPLE_EDGE]
+                                    <-Map 27 [SIMPLE_EDGE]
                                       SHUFFLE [RS_136]
                                         PartitionCols:_col0
                                         Select Operator [SEL_128] (rows=231000 width=1436)
                                           Output:["_col0","_col1","_col2","_col3","_col5"]
                                           Filter Operator [FIL_239] (rows=231000 width=1436)
                                             predicate:((i_category = 'Sports') and i_item_sk is not null and i_brand_id is not null and i_class_id is not null and i_category_id is not null and i_manufact_id is not null)
-                                            TableScan [TS_126] (rows=462000 width=1436)
-                                              default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_brand_id","i_class_id","i_category_id","i_category","i_manufact_id"]
-                                    <-Reducer 43 [SIMPLE_EDGE]
+                                             Please refer to the previous TableScan [TS_6]
+                                    <-Reducer 24 [SIMPLE_EDGE]
                                       SHUFFLE [RS_135]
                                         PartitionCols:_col1
                                         Merge Join Operator [MERGEJOIN_256] (rows=158402938 width=135)
                                           Conds:RS_132._col0=RS_133._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
-                                        <-Map 42 [SIMPLE_EDGE]
+                                        <-Map 14 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_133]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_125] (rows=36524 width=1119)
+                                              Output:["_col0"]
+                                              Filter Operator [FIL_238] (rows=36524 width=1119)
+                                                predicate:((d_year = 2002) and d_date_sk is not null)
+                                                 Please refer to the previous TableScan [TS_3]
+                                        <-Map 31 [SIMPLE_EDGE]
                                           SHUFFLE [RS_132]
                                             PartitionCols:_col0
                                             Select Operator [SEL_122] (rows=144002668 width=135)
                                               Output:["_col0","_col1","_col2","_col3","_col4"]
                                               Filter Operator [FIL_237] (rows=144002668 width=135)
                                                 predicate:(ws_item_sk is not null and ws_sold_date_sk is not null)
-                                                TableScan [TS_120] (rows=144002668 width=135)
+                                                TableScan [TS_46] (rows=144002668 width=135)
                                                   default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_item_sk","ws_order_number","ws_quantity","ws_ext_sales_price"]
-                                        <-Map 46 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_133]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_125] (rows=36524 width=1119)
-                                              Output:["_col0"]
-                                              Filter Operator [FIL_238] (rows=36524 width=1119)
-                                                predicate:((d_year = 2002) and d_date_sk is not null)
-                                                TableScan [TS_123] (rows=73049 width=1119)
-                                                  default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
                   <-Reducer 6 [SIMPLE_EDGE]
                     SHUFFLE [RS_148]
                       PartitionCols:_col0, _col1, _col2, _col3
                       Group By Operator [GBY_72] (rows=670816148 width=108)
                         Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3
                       <-Union 5 [SIMPLE_EDGE]
-                        <-Reducer 15 [CONTAINS]
+                        <-Reducer 17 [CONTAINS]
                           Reduce Output Operator [RS_71]
                             PartitionCols:_col0, _col1, _col2, _col3
                             Group By Operator [GBY_70] (rows=1341632296 width=108)
@@ -232,53 +228,49 @@ Stage-0
                                 Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
                                 Merge Join Operator [MERGEJOIN_246] (rows=766650239 width=88)
                                   Conds:RS_40._col1, _col2=RS_41._col0, _col1(Left Outer),Output:["_col3","_col4","_col8","_col9","_col10","_col12","_col15","_col16"]
-                                <-Map 18 [SIMPLE_EDGE]
+                                <-Map 30 [SIMPLE_EDGE]
                                   SHUFFLE [RS_41]
                                     PartitionCols:_col0, _col1
                                     Select Operator [SEL_33] (rows=57591150 width=77)
                                       Output:["_col0","_col1","_col2","_col3"]
                                       Filter Operator [FIL_224] (rows=57591150 width=77)
                                         predicate:sr_item_sk is not null
-                                        TableScan [TS_31] (rows=57591150 width=77)
-                                          default@store_returns,store_returns,Tbl:COMPLETE,Col:NONE,Output:["sr_item_sk","sr_ticket_number","sr_return_quantity","sr_return_amt"]
-                                <-Reducer 14 [SIMPLE_EDGE]
+                                         Please refer to the previous TableScan [TS_31]
+                                <-Reducer 16 [SIMPLE_EDGE]
                                   SHUFFLE [RS_40]
                                     PartitionCols:_col1, _col2
                                     Merge Join Operator [MERGEJOIN_245] (rows=696954748 width=88)
                                       Conds:RS_37._col1=RS_38._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col8","_col9","_col10","_col12"]
-                                    <-Map 17 [SIMPLE_EDGE]
+                                    <-Map 27 [SIMPLE_EDGE]
                                       SHUFFLE [RS_38]
                                         PartitionCols:_col0
                                         Select Operator [SEL_30] (rows=231000 width=1436)
                                           Output:["_col0","_col1","_col2","_col3","_col5"]
                                           Filter Operator [FIL_223] (rows=231000 width=1436)
                                             predicate:((i_category = 'Sports') and i_item_sk is not null and i_brand_id is not null and i_class_id is not null and i_category_id is not null and i_manufact_id is not null)
-                                            TableScan [TS_28] (rows=462000 width=1436)
-                                              default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_brand_id","i_class_id","i_category_id","i_category","i_manufact_id"]
-                                    <-Reducer 13 [SIMPLE_EDGE]
+                                             Please refer to the previous TableScan [TS_6]
+                                    <-Reducer 15 [SIMPLE_EDGE]
                                       SHUFFLE [RS_37]
                                         PartitionCols:_col1
                                         Merge Join Operator [MERGEJOIN_244] (rows=633595212 width=88)
                                           Conds:RS_34._col0=RS_35._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
-                                        <-Map 12 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_34]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_24] (rows=575995635 width=88)
-                                              Output:["_col0","_col1","_col2","_col3","_col4"]
-                                              Filter Operator [FIL_221] (rows=575995635 width=88)
-                                                predicate:(ss_item_sk is not null and ss_sold_date_sk is not null)
-                                                TableScan [TS_22] (rows=575995635 width=88)
-                                                  default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_ticket_number","ss_quantity","ss_ext_sales_price"]
-                                        <-Map 16 [SIMPLE_EDGE]
+                                        <-Map 14 [SIMPLE_EDGE]
                                           SHUFFLE [RS_35]
                                             PartitionCols:_col0
                                             Select Operator [SEL_27] (rows=36524 width=1119)
                                               Output:["_col0"]
                                               Filter Operator [FIL_222] (rows=36524 width=1119)
                                                 predicate:((d_year = 2001) and d_date_sk is not null)
-                                                TableScan [TS_25] (rows=73049 width=1119)
-                                                  default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
-                        <-Reducer 22 [CONTAINS]
+                                                 Please refer to the previous TableScan [TS_3]
+                                        <-Map 29 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_34]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_24] (rows=575995635 width=88)
+                                              Output:["_col0","_col1","_col2","_col3","_col4"]
+                                              Filter Operator [FIL_221] (rows=575995635 width=88)
+                                                predicate:(ss_item_sk is not null and ss_sold_date_sk is not null)
+                                                 Please refer to the previous TableScan [TS_22]
+                        <-Reducer 20 [CONTAINS]
                           Reduce Output Operator [RS_71]
                             PartitionCols:_col0, _col1, _col2, _col3
                             Group By Operator [GBY_70] (rows=1341632296 width=108)
@@ -287,52 +279,48 @@ Stage-0
                                 Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
                                 Merge Join Operator [MERGEJOIN_249] (rows=191667562 width=135)
                                   Conds:RS_64._col1, _col2=RS_65._col0, _col1(Left Outer),Output:["_col3","_col4","_col8","_col9","_col10","_col12","_col15","_col16"]
-                                <-Map 25 [SIMPLE_EDGE]
+                                <-Map 32 [SIMPLE_EDGE]
                                   SHUFFLE [RS_65]
                                     PartitionCols:_col0, _col1
                                     Select Operator [SEL_57] (rows=14398467 width=92)
                                       Output:["_col0","_col1","_col2","_col3"]
                                       Filter Operator [FIL_228] (rows=14398467 width=92)
                                         predicate:wr_item_sk is not null
-                                        TableScan [TS_55] (rows=14398467 width=92)
-                                          default@web_returns,web_returns,Tbl:COMPLETE,Col:NONE,Output:["wr_item_sk","wr_order_number","wr_return_quantity","wr_return_amt"]
-                                <-Reducer 21 [SIMPLE_EDGE]
+                                         Please refer to the previous TableScan [TS_55]
+                                <-Reducer 19 [SIMPLE_EDGE]
                                   SHUFFLE [RS_64]
                                     PartitionCols:_col1, _col2
                                     Merge Join Operator [MERGEJOIN_248] (rows=174243235 width=135)
                                       Conds:RS_61._col1=RS_62._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col8","_col9","_col10","_col12"]
-                                    <-Map 24 [SIMPLE_EDGE]
+                                    <-Map 27 [SIMPLE_EDGE]
                                       SHUFFLE [RS_62]
                                         PartitionCols:_col0
                                         Select Operator [SEL_54] (rows=231000 width=1436)
                                           Output:["_col0","_col1","_col2","_col3","_col5"]
                                           Filter Operator [FIL_227] (rows=231000 width=1436)
                                             predicate:((i_category = 'Sports') and i_item_sk is not null and i_brand_id is not null and i_class_id is not null and i_category_id is not null and i_manufact_id is not null)
-                                            TableScan [TS_52] (rows=462000 width=1436)
-                                              default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_brand_id","i_class_id","i_category_id","i_category","i_manufact_id"]
-                                    <-Reducer 20 [SIMPLE_EDGE]
+                                             Please refer to the previous TableScan [TS_6]
+                                    <-Reducer 18 [SIMPLE_EDGE]
                                       SHUFFLE [RS_61]
                                         PartitionCols:_col1
                                         Merge Join Operator [MERGEJOIN_247] (rows=158402938 width=135)
                                           Conds:RS_58._col0=RS_59._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
-                                        <-Map 19 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_58]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_48] (rows=144002668 width=135)
-                                              Output:["_col0","_col1","_col2","_col3","_col4"]
-                                              Filter Operator [FIL_225] (rows=144002668 width=135)
-                                                predicate:(ws_item_sk is not null and ws_sold_date_sk is not null)
-                                                TableScan [TS_46] (rows=144002668 width=135)
-                                                  default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_item_sk","ws_order_number","ws_quantity","ws_ext_sales_price"]
-                                        <-Map 23 [SIMPLE_EDGE]
+                                        <-Map 14 [SIMPLE_EDGE]
                                           SHUFFLE [RS_59]
                                             PartitionCols:_col0
                                             Select Operator [SEL_51] (rows=36524 width=1119)
                                               Output:["_col0"]
                                               Filter Operator [FIL_226] (rows=36524 width=1119)
                                                 predicate:((d_year = 2001) and d_date_sk is not null)
-                                                TableScan [TS_49] (rows=73049 width=1119)
-                                                  default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
+                                                 Please refer to the previous TableScan [TS_3]
+                                        <-Map 31 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_58]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_48] (rows=144002668 width=135)
+                                              Output:["_col0","_col1","_col2","_col3","_col4"]
+                                              Filter Operator [FIL_225] (rows=144002668 width=135)
+                                                predicate:(ws_item_sk is not null and ws_sold_date_sk is not null)
+                                                 Please refer to the previous TableScan [TS_46]
                         <-Reducer 4 [CONTAINS]
                           Reduce Output Operator [RS_71]
                             PartitionCols:_col0, _col1, _col2, _col3
@@ -342,34 +330,40 @@ Stage-0
                                 Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
                                 Merge Join Operator [MERGEJOIN_243] (rows=383314495 width=135)
                                   Conds:RS_18._col1, _col2=RS_19._col0, _col1(Left Outer),Output:["_col3","_col4","_col8","_col9","_col10","_col12","_col15","_col16"]
-                                <-Map 11 [SIMPLE_EDGE]
+                                <-Map 28 [SIMPLE_EDGE]
                                   SHUFFLE [RS_19]
                                     PartitionCols:_col0, _col1
                                     Select Operator [SEL_11] (rows=28798881 width=106)
                                       Output:["_col0","_col1","_col2","_col3"]
                                       Filter Operator [FIL_220] (rows=28798881 width=106)
                                         predicate:cr_item_sk is not null
-                                        TableScan [TS_9] (rows=28798881 width=106)
-                                          default@catalog_returns,catalog_returns,Tbl:COMPLETE,Col:NONE,Output:["cr_item_sk","cr_order_number","cr_return_quantity","cr_return_amount"]
+                                         Please refer to the previous TableScan [TS_9]
                                 <-Reducer 3 [SIMPLE_EDGE]
                                   SHUFFLE [RS_18]
                                     PartitionCols:_col1, _col2
                                     Merge Join Operator [MERGEJOIN_242] (rows=348467716 width=135)
                                       Conds:RS_15._col1=RS_16._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col8","_col9","_col10","_col12"]
-                                    <-Map 10 [SIMPLE_EDGE]
+                                    <-Map 27 [SIMPLE_EDGE]
                                       SHUFFLE [RS_16]
                                         PartitionCols:_col0
                                         Select Operator [SEL_8] (rows=231000 width=1436)
                                           Output:["_col0","_col1","_col2","_col3","_col5"]
                                           Filter Operator [FIL_219] (rows=231000 width=1436)
                                             predicate:((i_category = 'Sports') and i_item_sk is not null and i_brand_id is not null and i_class_id is not null and i_category_id is not null and i_manufact_id is not null)
-                                            TableScan [TS_6] (rows=462000 width=1436)
-                                              default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_brand_id","i_class_id","i_category_id","i_category","i_manufact_id"]
+                                             Please refer to the previous TableScan [TS_6]
                                     <-Reducer 2 [SIMPLE_EDGE]
                                       SHUFFLE [RS_15]
                                         PartitionCols:_col1
                                         Merge Join Operator [MERGEJOIN_241] (rows=316788826 width=135)
                                           Conds:RS_12._col0=RS_13._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
+                                        <-Map 14 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_13]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_5] (rows=36524 width=1119)
+                                              Output:["_col0"]
+                                              Filter Operator [FIL_218] (rows=36524 width=1119)
+                                                predicate:((d_year = 2001) and d_date_sk is not null)
+                                                 Please refer to the previous TableScan [TS_3]
                                         <-Map 1 [SIMPLE_EDGE]
                                           SHUFFLE [RS_12]
                                             PartitionCols:_col0
@@ -377,15 +371,5 @@ Stage-0
                                               Output:["_col0","_col1","_col2","_col3","_col4"]
                                               Filter Operator [FIL_217] (rows=287989836 width=135)
                                                 predicate:(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_item_sk","cs_order_number","cs_quantity","cs_ext_sales_price"]
-                                        <-Map 9 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_13]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_5] (rows=36524 width=1119)
-                                              Output:["_col0"]
-                                              Filter Operator [FIL_218] (rows=36524 width=1119)
-                                                predicate:((d_year = 2001) and d_date_sk is not null)
-                                                TableScan [TS_3] (rows=73049 width=1119)
-                                                  default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
+                                                 Please refer to the previous TableScan [TS_0]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/59f65772/ql/src/test/results/clientpositive/perf/query76.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query76.q.out b/ql/src/test/results/clientpositive/perf/query76.q.out
index c7dbb37..19243db 100644
--- a/ql/src/test/results/clientpositive/perf/query76.q.out
+++ b/ql/src/test/results/clientpositive/perf/query76.q.out
@@ -5,14 +5,14 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Reducer 10 <- Map 12 (SIMPLE_EDGE), Map 9 (SIMPLE_EDGE)
-Reducer 11 <- Map 13 (SIMPLE_EDGE), Reducer 10 (SIMPLE_EDGE), Union 4 (CONTAINS)
-Reducer 15 <- Map 14 (SIMPLE_EDGE), Map 17 (SIMPLE_EDGE)
-Reducer 16 <- Map 18 (SIMPLE_EDGE), Reducer 15 (SIMPLE_EDGE), Union 4 (CONTAINS)
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 7 (SIMPLE_EDGE)
-Reducer 3 <- Map 8 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE), Union 4 (CONTAINS)
+Reducer 10 <- Map 16 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE), Union 4 (CONTAINS)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 11 (SIMPLE_EDGE)
+Reducer 3 <- Map 12 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE), Union 4 (CONTAINS)
 Reducer 5 <- Union 4 (SIMPLE_EDGE)
 Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
+Reducer 7 <- Map 1 (SIMPLE_EDGE), Map 13 (SIMPLE_EDGE)
+Reducer 8 <- Map 14 (SIMPLE_EDGE), Reducer 7 (SIMPLE_EDGE), Union 4 (CONTAINS)
+Reducer 9 <- Map 1 (SIMPLE_EDGE), Map 15 (SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
@@ -29,48 +29,7 @@ Stage-0
               Group By Operator [GBY_54] (rows=304916424 width=108)
                 Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"],aggregations:["count(VALUE._col0)","sum(VALUE._col1)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4
               <-Union 4 [SIMPLE_EDGE]
-                <-Reducer 11 [CONTAINS]
-                  Reduce Output Operator [RS_53]
-                    PartitionCols:_col0, _col1, _col2, _col3, _col4
-                    Group By Operator [GBY_52] (rows=609832848 width=108)
-                      Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"],aggregations:["count()","sum(_col5)"],keys:_col0, _col1, _col2, _col3, _col4
-                      Select Operator [SEL_31] (rows=87121617 width=135)
-                        Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                        Merge Join Operator [MERGEJOIN_87] (rows=87121617 width=135)
-                          Conds:RS_28._col0=RS_29._col0(Inner),Output:["_col3","_col5","_col7","_col8"]
-                        <-Map 13 [SIMPLE_EDGE]
-                          SHUFFLE [RS_29]
-                            PartitionCols:_col0
-                            Select Operator [SEL_24] (rows=73049 width=1119)
-                              Output:["_col0","_col1","_col2"]
-                              Filter Operator [FIL_80] (rows=73049 width=1119)
-                                predicate:d_date_sk is not null
-                                TableScan [TS_22] (rows=73049 width=1119)
-                                  default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_qoy"]
-                        <-Reducer 10 [SIMPLE_EDGE]
-                          SHUFFLE [RS_28]
-                            PartitionCols:_col0
-                            Merge Join Operator [MERGEJOIN_86] (rows=79201469 width=135)
-                              Conds:RS_25._col1=RS_26._col0(Inner),Output:["_col0","_col3","_col5"]
-                            <-Map 12 [SIMPLE_EDGE]
-                              SHUFFLE [RS_26]
-                                PartitionCols:_col0
-                                Select Operator [SEL_21] (rows=462000 width=1436)
-                                  Output:["_col0","_col1"]
-                                  Filter Operator [FIL_79] (rows=462000 width=1436)
-                                    predicate:i_item_sk is not null
-                                    TableScan [TS_19] (rows=462000 width=1436)
-                                      default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_category"]
-                            <-Map 9 [SIMPLE_EDGE]
-                              SHUFFLE [RS_25]
-                                PartitionCols:_col1
-                                Select Operator [SEL_18] (rows=72001334 width=135)
-                                  Output:["_col0","_col1","_col3"]
-                                  Filter Operator [FIL_78] (rows=72001334 width=135)
-                                    predicate:(ws_web_page_sk is null and ws_item_sk is not null and ws_sold_date_sk is not null)
-                                    TableScan [TS_16] (rows=144002668 width=135)
-                                      default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_item_sk","ws_web_page_sk","ws_ext_sales_price"]
-                <-Reducer 16 [CONTAINS]
+                <-Reducer 10 [CONTAINS]
                   Reduce Output Operator [RS_53]
                     PartitionCols:_col0, _col1, _col2, _col3, _col4
                     Group By Operator [GBY_52] (rows=609832848 width=108)
@@ -79,7 +38,7 @@ Stage-0
                         Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
                         Merge Join Operator [MERGEJOIN_89] (rows=174233858 width=135)
                           Conds:RS_46._col0=RS_47._col0(Inner),Output:["_col3","_col5","_col7","_col8"]
-                        <-Map 18 [SIMPLE_EDGE]
+                        <-Map 16 [SIMPLE_EDGE]
                           SHUFFLE [RS_47]
                             PartitionCols:_col0
                             Select Operator [SEL_42] (rows=73049 width=1119)
@@ -88,12 +47,21 @@ Stage-0
                                 predicate:d_date_sk is not null
                                 TableScan [TS_40] (rows=73049 width=1119)
                                   default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_qoy"]
-                        <-Reducer 15 [SIMPLE_EDGE]
+                        <-Reducer 9 [SIMPLE_EDGE]
                           SHUFFLE [RS_46]
                             PartitionCols:_col0
                             Merge Join Operator [MERGEJOIN_88] (rows=158394413 width=135)
                               Conds:RS_43._col2=RS_44._col0(Inner),Output:["_col0","_col3","_col5"]
-                            <-Map 14 [SIMPLE_EDGE]
+                            <-Map 1 [SIMPLE_EDGE]
+                              SHUFFLE [RS_44]
+                                PartitionCols:_col0
+                                Select Operator [SEL_39] (rows=462000 width=1436)
+                                  Output:["_col0","_col1"]
+                                  Filter Operator [FIL_82] (rows=462000 width=1436)
+                                    predicate:i_item_sk is not null
+                                    TableScan [TS_0] (rows=462000 width=1436)
+                                      default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_category"]
+                            <-Map 15 [SIMPLE_EDGE]
                               SHUFFLE [RS_43]
                                 PartitionCols:_col2
                                 Select Operator [SEL_36] (rows=143994918 width=135)
@@ -102,15 +70,6 @@ Stage-0
                                     predicate:(cs_warehouse_sk is null and cs_item_sk is not null and cs_sold_date_sk is not null)
                                     TableScan [TS_34] (rows=287989836 width=135)
                                       default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_warehouse_sk","cs_item_sk","cs_ext_sales_price"]
-                            <-Map 17 [SIMPLE_EDGE]
-                              SHUFFLE [RS_44]
-                                PartitionCols:_col0
-                                Select Operator [SEL_39] (rows=462000 width=1436)
-                                  Output:["_col0","_col1"]
-                                  Filter Operator [FIL_82] (rows=462000 width=1436)
-                                    predicate:i_item_sk is not null
-                                    TableScan [TS_37] (rows=462000 width=1436)
-                                      default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_category"]
                 <-Reducer 3 [CONTAINS]
                   Reduce Output Operator [RS_53]
                     PartitionCols:_col0, _col1, _col2, _col3, _col4
@@ -120,7 +79,7 @@ Stage-0
                         Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
                         Merge Join Operator [MERGEJOIN_85] (rows=348477373 width=88)
                           Conds:RS_12._col2=RS_13._col0(Inner),Output:["_col1","_col5","_col7","_col8"]
-                        <-Map 8 [SIMPLE_EDGE]
+                        <-Map 12 [SIMPLE_EDGE]
                           SHUFFLE [RS_13]
                             PartitionCols:_col0
                             Select Operator [SEL_8] (rows=73049 width=1119)
@@ -141,9 +100,8 @@ Stage-0
                                   Output:["_col0","_col1"]
                                   Filter Operator [FIL_75] (rows=462000 width=1436)
                                     predicate:i_item_sk is not null
-                                    TableScan [TS_0] (rows=462000 width=1436)
-                                      default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_category"]
-                            <-Map 7 [SIMPLE_EDGE]
+                                     Please refer to the previous TableScan [TS_0]
+                            <-Map 11 [SIMPLE_EDGE]
                               SHUFFLE [RS_10]
                                 PartitionCols:_col1
                                 Select Operator [SEL_5] (rows=287997817 width=88)
@@ -152,4 +110,44 @@ Stage-0
                                     predicate:(ss_addr_sk is null and ss_item_sk is not null and ss_sold_date_sk is not null)
                                     TableScan [TS_3] (rows=575995635 width=88)
                                       default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_addr_sk","ss_ext_sales_price"]
+                <-Reducer 8 [CONTAINS]
+                  Reduce Output Operator [RS_53]
+                    PartitionCols:_col0, _col1, _col2, _col3, _col4
+                    Group By Operator [GBY_52] (rows=609832848 width=108)
+                      Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"],aggregations:["count()","sum(_col5)"],keys:_col0, _col1, _col2, _col3, _col4
+                      Select Operator [SEL_31] (rows=87121617 width=135)
+                        Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                        Merge Join Operator [MERGEJOIN_87] (rows=87121617 width=135)
+                          Conds:RS_28._col0=RS_29._col0(Inner),Output:["_col3","_col5","_col7","_col8"]
+                        <-Map 14 [SIMPLE_EDGE]
+                          SHUFFLE [RS_29]
+                            PartitionCols:_col0
+                            Select Operator [SEL_24] (rows=73049 width=1119)
+                              Output:["_col0","_col1","_col2"]
+                              Filter Operator [FIL_80] (rows=73049 width=1119)
+                                predicate:d_date_sk is not null
+                                TableScan [TS_22] (rows=73049 width=1119)
+                                  default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_qoy"]
+                        <-Reducer 7 [SIMPLE_EDGE]
+                          SHUFFLE [RS_28]
+                            PartitionCols:_col0
+                            Merge Join Operator [MERGEJOIN_86] (rows=79201469 width=135)
+                              Conds:RS_25._col1=RS_26._col0(Inner),Output:["_col0","_col3","_col5"]
+                            <-Map 1 [SIMPLE_EDGE]
+                              SHUFFLE [RS_26]
+                                PartitionCols:_col0
+                                Select Operator [SEL_21] (rows=462000 width=1436)
+                                  Output:["_col0","_col1"]
+                                  Filter Operator [FIL_79] (rows=462000 width=1436)
+                                    predicate:i_item_sk is not null
+                                     Please refer to the previous TableScan [TS_0]
+                            <-Map 13 [SIMPLE_EDGE]
+                              SHUFFLE [RS_25]
+                                PartitionCols:_col1
+                                Select Operator [SEL_18] (rows=72001334 width=135)
+                                  Output:["_col0","_col1","_col3"]
+                                  Filter Operator [FIL_78] (rows=72001334 width=135)
+                                    predicate:(ws_web_page_sk is null and ws_item_sk is not null and ws_sold_date_sk is not null)
+                                    TableScan [TS_16] (rows=144002668 width=135)
+                                      default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_item_sk","ws_web_page_sk","ws_ext_sales_price"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/59f65772/ql/src/test/results/clientpositive/perf/query80.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query80.q.out b/ql/src/test/results/clientpositive/perf/query80.q.out
index be7ecda..3cf41f3 100644
--- a/ql/src/test/results/clientpositive/perf/query80.q.out
+++ b/ql/src/test/results/clientpositive/perf/query80.q.out
@@ -192,23 +192,23 @@ Plan optimized by CBO.
 
 Vertex dependency in root stage
 Reducer 10 <- Reducer 9 (SIMPLE_EDGE)
-Reducer 17 <- Map 16 (SIMPLE_EDGE), Map 23 (SIMPLE_EDGE)
-Reducer 18 <- Map 24 (SIMPLE_EDGE), Reducer 17 (SIMPLE_EDGE)
-Reducer 19 <- Map 25 (SIMPLE_EDGE), Reducer 18 (SIMPLE_EDGE)
+Reducer 13 <- Map 12 (SIMPLE_EDGE), Reducer 27 (SIMPLE_EDGE)
+Reducer 14 <- Map 23 (SIMPLE_EDGE), Reducer 13 (SIMPLE_EDGE)
+Reducer 15 <- Map 24 (SIMPLE_EDGE), Reducer 14 (SIMPLE_EDGE)
+Reducer 16 <- Map 29 (SIMPLE_EDGE), Reducer 15 (SIMPLE_EDGE)
+Reducer 17 <- Reducer 16 (SIMPLE_EDGE), Union 8 (CONTAINS)
+Reducer 18 <- Map 12 (SIMPLE_EDGE), Reducer 31 (SIMPLE_EDGE)
+Reducer 19 <- Map 23 (SIMPLE_EDGE), Reducer 18 (SIMPLE_EDGE)
 Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 11 (SIMPLE_EDGE)
-Reducer 20 <- Map 26 (SIMPLE_EDGE), Reducer 19 (SIMPLE_EDGE)
-Reducer 21 <- Map 27 (SIMPLE_EDGE), Reducer 20 (SIMPLE_EDGE)
+Reducer 20 <- Map 24 (SIMPLE_EDGE), Reducer 19 (SIMPLE_EDGE)
+Reducer 21 <- Map 33 (SIMPLE_EDGE), Reducer 20 (SIMPLE_EDGE)
 Reducer 22 <- Reducer 21 (SIMPLE_EDGE), Union 8 (CONTAINS)
-Reducer 29 <- Map 28 (SIMPLE_EDGE), Map 35 (SIMPLE_EDGE)
+Reducer 27 <- Map 26 (SIMPLE_EDGE), Map 28 (SIMPLE_EDGE)
 Reducer 3 <- Map 12 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 30 <- Map 36 (SIMPLE_EDGE), Reducer 29 (SIMPLE_EDGE)
-Reducer 31 <- Map 37 (SIMPLE_EDGE), Reducer 30 (SIMPLE_EDGE)
-Reducer 32 <- Map 38 (SIMPLE_EDGE), Reducer 31 (SIMPLE_EDGE)
-Reducer 33 <- Map 39 (SIMPLE_EDGE), Reducer 32 (SIMPLE_EDGE)
-Reducer 34 <- Reducer 33 (SIMPLE_EDGE), Union 8 (CONTAINS)
-Reducer 4 <- Map 13 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
-Reducer 5 <- Map 14 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
-Reducer 6 <- Map 15 (SIMPLE_EDGE), Reducer 5 (SIMPLE_EDGE)
+Reducer 31 <- Map 30 (SIMPLE_EDGE), Map 32 (SIMPLE_EDGE)
+Reducer 4 <- Map 23 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Map 24 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 6 <- Map 25 (SIMPLE_EDGE), Reducer 5 (SIMPLE_EDGE)
 Reducer 7 <- Reducer 6 (SIMPLE_EDGE), Union 8 (CONTAINS)
 Reducer 9 <- Union 8 (SIMPLE_EDGE)
 
@@ -229,7 +229,7 @@ Stage-0
                 Group By Operator [GBY_123] (rows=1217531358 width=108)
                   Output:["_col0","_col1","_col3","_col4","_col5"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)"],keys:KEY._col0, KEY._col1, KEY._col2
                 <-Union 8 [SIMPLE_EDGE]
-                  <-Reducer 22 [CONTAINS]
+                  <-Reducer 17 [CONTAINS]
                     Reduce Output Operator [RS_122]
                       PartitionCols:_col0, _col1, _col2
                       Group By Operator [GBY_121] (rows=2435062716 width=108)
@@ -238,7 +238,7 @@ Stage-0
                           Output:["_col0","_col1","_col2","_col3","_col4"]
                           Group By Operator [GBY_76] (rows=231905279 width=135)
                             Output:["_col0","_col1","_col2","_col3"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)"],keys:KEY._col0
-                          <-Reducer 21 [SIMPLE_EDGE]
+                          <-Reducer 16 [SIMPLE_EDGE]
                             SHUFFLE [RS_75]
                               PartitionCols:_col0
                               Group By Operator [GBY_74] (rows=463810558 width=135)
@@ -247,7 +247,7 @@ Stage-0
                                   Output:["_col0","_col1","_col2","_col3"]
                                   Merge Join Operator [MERGEJOIN_213] (rows=463810558 width=135)
                                     Conds:RS_69._col1=RS_70._col0(Inner),Output:["_col5","_col6","_col9","_col10","_col18"]
-                                  <-Map 27 [SIMPLE_EDGE]
+                                  <-Map 29 [SIMPLE_EDGE]
                                     SHUFFLE [RS_70]
                                       PartitionCols:_col0
                                       Select Operator [SEL_56] (rows=46000 width=460)
@@ -256,54 +256,54 @@ Stage-0
                                           predicate:cp_catalog_page_sk is not null
                                           TableScan [TS_54] (rows=46000 width=460)
                                             default@catalog_page,catalog_page,Tbl:COMPLETE,Col:NONE,Output:["cp_catalog_page_sk","cp_catalog_page_id"]
-                                  <-Reducer 20 [SIMPLE_EDGE]
+                                  <-Reducer 15 [SIMPLE_EDGE]
                                     SHUFFLE [RS_69]
                                       PartitionCols:_col1
                                       Merge Join Operator [MERGEJOIN_212] (rows=421645953 width=135)
                                         Conds:RS_66._col3=RS_67._col0(Inner),Output:["_col1","_col5","_col6","_col9","_col10"]
-                                      <-Map 26 [SIMPLE_EDGE]
+                                      <-Map 24 [SIMPLE_EDGE]
                                         SHUFFLE [RS_67]
                                           PartitionCols:_col0
                                           Select Operator [SEL_53] (rows=1150 width=1179)
                                             Output:["_col0"]
                                             Filter Operator [FIL_196] (rows=1150 width=1179)
                                               predicate:((p_channel_tv = 'N') and p_promo_sk is not null)
-                                              TableScan [TS_51] (rows=2300 width=1179)
+                                              TableScan [TS_12] (rows=2300 width=1179)
                                                 default@promotion,promotion,Tbl:COMPLETE,Col:NONE,Output:["p_promo_sk","p_channel_tv"]
-                                      <-Reducer 19 [SIMPLE_EDGE]
+                                      <-Reducer 14 [SIMPLE_EDGE]
                                         SHUFFLE [RS_66]
                                           PartitionCols:_col3
                                           Merge Join Operator [MERGEJOIN_211] (rows=383314495 width=135)
                                             Conds:RS_63._col2=RS_64._col0(Inner),Output:["_col1","_col3","_col5","_col6","_col9","_col10"]
-                                          <-Map 25 [SIMPLE_EDGE]
+                                          <-Map 23 [SIMPLE_EDGE]
                                             SHUFFLE [RS_64]
                                               PartitionCols:_col0
                                               Select Operator [SEL_50] (rows=154000 width=1436)
                                                 Output:["_col0"]
                                                 Filter Operator [FIL_195] (rows=154000 width=1436)
                                                   predicate:((i_current_price > 50) and i_item_sk is not null)
-                                                  TableScan [TS_48] (rows=462000 width=1436)
+                                                  TableScan [TS_9] (rows=462000 width=1436)
                                                     default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_current_price"]
-                                          <-Reducer 18 [SIMPLE_EDGE]
+                                          <-Reducer 13 [SIMPLE_EDGE]
                                             SHUFFLE [RS_63]
                                               PartitionCols:_col2
                                               Merge Join Operator [MERGEJOIN_210] (rows=348467716 width=135)
                                                 Conds:RS_60._col0=RS_61._col0(Inner),Output:["_col1","_col2","_col3","_col5","_col6","_col9","_col10"]
-                                              <-Map 24 [SIMPLE_EDGE]
+                                              <-Map 12 [SIMPLE_EDGE]
                                                 SHUFFLE [RS_61]
                                                   PartitionCols:_col0
                                                   Select Operator [SEL_47] (rows=8116 width=1119)
                                                     Output:["_col0"]
                                                     Filter Operator [FIL_194] (rows=8116 width=1119)
                                                       predicate:(CAST( d_date AS TIMESTAMP) BETWEEN 1998-08-04 00:00:00.0 AND 1998-09-03 00:00:00.0 and d_date_sk is not null)
-                                                      TableScan [TS_45] (rows=73049 width=1119)
+                                                      TableScan [TS_6] (rows=73049 width=1119)
                                                         default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_date"]
-                                              <-Reducer 17 [SIMPLE_EDGE]
+                                              <-Reducer 27 [SIMPLE_EDGE]
                                                 SHUFFLE [RS_60]
                                                   PartitionCols:_col0
                                                   Merge Join Operator [MERGEJOIN_209] (rows=316788826 width=135)
                                                     Conds:RS_57._col2, _col4=RS_58._col0, _col1(Left Outer),Output:["_col0","_col1","_col2","_col3","_col5","_col6","_col9","_col10"]
-                                                  <-Map 16 [SIMPLE_EDGE]
+                                                  <-Map 26 [SIMPLE_EDGE]
                                                     SHUFFLE [RS_57]
                                                       PartitionCols:_col2, _col4
                                                       Select Operator [SEL_41] (rows=287989836 width=135)
@@ -312,7 +312,7 @@ Stage-0
                                                           predicate:(cs_sold_date_sk is not null and cs_catalog_page_sk is not null and cs_item_sk is not null and cs_promo_sk is not null)
                                                           TableScan [TS_39] (rows=287989836 width=135)
                                                             default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_catalog_page_sk","cs_item_sk","cs_promo_sk","cs_order_number","cs_ext_sales_price","cs_net_profit"]
-                                                  <-Map 23 [SIMPLE_EDGE]
+                                                  <-Map 28 [SIMPLE_EDGE]
                                                     SHUFFLE [RS_58]
                                                       PartitionCols:_col0, _col1
                                                       Select Operator [SEL_44] (rows=28798881 width=106)
@@ -321,7 +321,7 @@ Stage-0
                                                           predicate:cr_item_sk is not null
                                                           TableScan [TS_42] (rows=28798881 width=106)
                                                             default@catalog_returns,catalog_returns,Tbl:COMPLETE,Col:NONE,Output:["cr_item_sk","cr_order_number","cr_return_amount","cr_net_loss"]
-                  <-Reducer 34 [CONTAINS]
+                  <-Reducer 22 [CONTAINS]
                     Reduce Output Operator [RS_122]
                       PartitionCols:_col0, _col1, _col2
                       Group By Operator [GBY_121] (rows=2435062716 width=108)
@@ -330,7 +330,7 @@ Stage-0
                           Output:["_col0","_col1","_col2","_col3","_col4"]
                           Group By Operator [GBY_117] (rows=115958879 width=135)
                             Output:["_col0","_col1","_col2","_col3"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)"],keys:KEY._col0
-                          <-Reducer 33 [SIMPLE_EDGE]
+                          <-Reducer 21 [SIMPLE_EDGE]
                             SHUFFLE [RS_116]
                               PartitionCols:_col0
                               Group By Operator [GBY_115] (rows=231917759 width=135)
@@ -339,7 +339,7 @@ Stage-0
                                   Output:["_col0","_col1","_col2","_col3"]
                                   Merge Join Operator [MERGEJOIN_218] (rows=231917759 width=135)
                                     Conds:RS_110._col2=RS_111._col0(Inner),Output:["_col5","_col6","_col9","_col10","_col18"]
-                                  <-Map 39 [SIMPLE_EDGE]
+                                  <-Map 33 [SIMPLE_EDGE]
                                     SHUFFLE [RS_111]
                                       PartitionCols:_col0
                                       Select Operator [SEL_97] (rows=84 width=1850)
@@ -348,54 +348,51 @@ Stage-0
                                           predicate:web_site_sk is not null
                                           TableScan [TS_95] (rows=84 width=1850)
                                             default@web_site,web_site,Tbl:COMPLETE,Col:NONE,Output:["web_site_sk","web_site_id"]
-                                  <-Reducer 32 [SIMPLE_EDGE]
+                                  <-Reducer 20 [SIMPLE_EDGE]
                                     SHUFFLE [RS_110]
                                       PartitionCols:_col2
                                       Merge Join Operator [MERGEJOIN_217] (rows=210834322 width=135)
                                         Conds:RS_107._col3=RS_108._col0(Inner),Output:["_col2","_col5","_col6","_col9","_col10"]
-                                      <-Map 38 [SIMPLE_EDGE]
+                                      <-Map 24 [SIMPLE_EDGE]
                                         SHUFFLE [RS_108]
                                           PartitionCols:_col0
                                           Select Operator [SEL_94] (rows=1150 width=1179)
                                             Output:["_col0"]
                                             Filter Operator [FIL_202] (rows=1150 width=1179)
                                               predicate:((p_channel_tv = 'N') and p_promo_sk is not null)
-                                              TableScan [TS_92] (rows=2300 width=1179)
-                                                default@promotion,promotion,Tbl:COMPLETE,Col:NONE,Output:["p_promo_sk","p_channel_tv"]
-                                      <-Reducer 31 [SIMPLE_EDGE]
+                                               Please refer to the previous TableScan [TS_12]
+                                      <-Reducer 19 [SIMPLE_EDGE]
                                         SHUFFLE [RS_107]
                                           PartitionCols:_col3
                                           Merge Join Operator [MERGEJOIN_216] (rows=191667562 width=135)
                                             Conds:RS_104._col1=RS_105._col0(Inner),Output:["_col2","_col3","_col5","_col6","_col9","_col10"]
-                                          <-Map 37 [SIMPLE_EDGE]
+                                          <-Map 23 [SIMPLE_EDGE]
                                             SHUFFLE [RS_105]
                                               PartitionCols:_col0
                                               Select Operator [SEL_91] (rows=154000 width=1436)
                                                 Output:["_col0"]
                                                 Filter Operator [FIL_201] (rows=154000 width=1436)
                                                   predicate:((i_current_price > 50) and i_item_sk is not null)
-                                                  TableScan [TS_89] (rows=462000 width=1436)
-                                                    default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_current_price"]
-                                          <-Reducer 30 [SIMPLE_EDGE]
+                                                   Please refer to the previous TableScan [TS_9]
+                                          <-Reducer 18 [SIMPLE_EDGE]
                                             SHUFFLE [RS_104]
                                               PartitionCols:_col1
                                               Merge Join Operator [MERGEJOIN_215] (rows=174243235 width=135)
                                                 Conds:RS_101._col0=RS_102._col0(Inner),Output:["_col1","_col2","_col3","_col5","_col6","_col9","_col10"]
-                                              <-Map 36 [SIMPLE_EDGE]
+                                              <-Map 12 [SIMPLE_EDGE]
                                                 SHUFFLE [RS_102]
                                                   PartitionCols:_col0
                                                   Select Operator [SEL_88] (rows=8116 width=1119)
                                                     Output:["_col0"]
                                                     Filter Operator [FIL_200] (rows=8116 width=1119)
                                                       predicate:(CAST( d_date AS TIMESTAMP) BETWEEN 1998-08-04 00:00:00.0 AND 1998-09-03 00:00:00.0 and d_date_sk is not null)
-                                                      TableScan [TS_86] (rows=73049 width=1119)
-                                                        default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_date"]
-                                              <-Reducer 29 [SIMPLE_EDGE]
+                                                       Please refer to the previous TableScan [TS_6]
+                                              <-Reducer 31 [SIMPLE_EDGE]
                                                 SHUFFLE [RS_101]
                                                   PartitionCols:_col0
                                                   Merge Join Operator [MERGEJOIN_214] (rows=158402938 width=135)
                                                     Conds:RS_98._col1, _col4=RS_99._col0, _col1(Left Outer),Output:["_col0","_col1","_col2","_col3","_col5","_col6","_col9","_col10"]
-                                                  <-Map 28 [SIMPLE_EDGE]
+                                                  <-Map 30 [SIMPLE_EDGE]
                                                     SHUFFLE [RS_98]
                                                       PartitionCols:_col1, _col4
                                                       Select Operator [SEL_82] (rows=144002668 width=135)
@@ -404,7 +401,7 @@ Stage-0
                                                           predicate:(ws_sold_date_sk is not null and ws_web_site_sk is not null and ws_item_sk is not null and ws_promo_sk is not null)
                                                           TableScan [TS_80] (rows=144002668 width=135)
                                                             default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_item_sk","ws_web_site_sk","ws_promo_sk","ws_order_number","ws_ext_sales_price","ws_net_profit"]
-                                                  <-Map 35 [SIMPLE_EDGE]
+                                                  <-Map 32 [SIMPLE_EDGE]
                                                     SHUFFLE [RS_99]
                                                       PartitionCols:_col0, _col1
                                                       Select Operator [SEL_85] (rows=14398467 width=92)
@@ -431,7 +428,7 @@ Stage-0
                                   Output:["_col0","_col1","_col2","_col3"]
                                   Merge Join Operator [MERGEJOIN_208] (rows=927646829 width=88)
                                     Conds:RS_30._col2=RS_31._col0(Inner),Output:["_col5","_col6","_col9","_col10","_col18"]
-                                  <-Map 15 [SIMPLE_EDGE]
+                                  <-Map 25 [SIMPLE_EDGE]
                                     SHUFFLE [RS_31]
                                       PartitionCols:_col0
                                       Select Operator [SEL_17] (rows=1704 width=1910)
@@ -445,29 +442,27 @@ Stage-0
                                       PartitionCols:_col2
                                       Merge Join Operator [MERGEJOIN_207] (rows=843315281 width=88)
                                         Conds:RS_27._col3=RS_28._col0(Inner),Output:["_col2","_col5","_col6","_col9","_col10"]
-                                      <-Map 14 [SIMPLE_EDGE]
+                                      <-Map 24 [SIMPLE_EDGE]
                                         SHUFFLE [RS_28]
                                           PartitionCols:_col0
                                           Select Operator [SEL_14] (rows=1150 width=1179)
                                             Output:["_col0"]
                                             Filter Operator [FIL_190] (rows=1150 width=1179)
                                               predicate:((p_channel_tv = 'N') and p_promo_sk is not null)
-                                              TableScan [TS_12] (rows=2300 width=1179)
-                                                default@promotion,promotion,Tbl:COMPLETE,Col:NONE,Output:["p_promo_sk","p_channel_tv"]
+                                               Please refer to the previous TableScan [TS_12]
                                       <-Reducer 4 [SIMPLE_EDGE]
                                         SHUFFLE [RS_27]
                                           PartitionCols:_col3
                                           Merge Join Operator [MERGEJOIN_206] (rows=766650239 width=88)
                                             Conds:RS_24._col1=RS_25._col0(Inner),Output:["_col2","_col3","_col5","_col6","_col9","_col10"]
-                                          <-Map 13 [SIMPLE_EDGE]
+                                          <-Map 23 [SIMPLE_EDGE]
                                             SHUFFLE [RS_25]
                                               PartitionCols:_col0
                                               Select Operator [SEL_11] (rows=154000 width=1436)
                                                 Output:["_col0"]
                                                 Filter Operator [FIL_189] (rows=154000 width=1436)
                                                   predicate:((i_current_price > 50) and i_item_sk is not null)
-                                                  TableScan [TS_9] (rows=462000 width=1436)
-                                                    default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_current_price"]
+                                                   Please refer to the previous TableScan [TS_9]
                                           <-Reducer 3 [SIMPLE_EDGE]
                                             SHUFFLE [RS_24]
                                               PartitionCols:_col1
@@ -480,8 +475,7 @@ Stage-0
                                                     Output:["_col0"]
                                                     Filter Operator [FIL_188] (rows=8116 width=1119)
                                                       predicate:(CAST( d_date AS TIMESTAMP) BETWEEN 1998-08-04 00:00:00.0 AND 1998-09-03 00:00:00.0 and d_date_sk is not null)
-                                                      TableScan [TS_6] (rows=73049 width=1119)
-                                                        default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_date"]
+                                                       Please refer to the previous TableScan [TS_6]
                                               <-Reducer 2 [SIMPLE_EDGE]
                                                 SHUFFLE [RS_21]
                                                   PartitionCols:_col0

http://git-wip-us.apache.org/repos/asf/hive/blob/59f65772/ql/src/test/results/clientpositive/perf/query81.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query81.q.out b/ql/src/test/results/clientpositive/perf/query81.q.out
index 769a3d1..dfd4639 100644
--- a/ql/src/test/results/clientpositive/perf/query81.q.out
+++ b/ql/src/test/results/clientpositive/perf/query81.q.out
@@ -59,15 +59,15 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Reducer 10 <- Reducer 16 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
-Reducer 14 <- Map 13 (SIMPLE_EDGE), Map 17 (SIMPLE_EDGE)
-Reducer 15 <- Map 18 (SIMPLE_EDGE), Reducer 14 (SIMPLE_EDGE)
-Reducer 16 <- Reducer 15 (SIMPLE_EDGE)
+Reducer 10 <- Reducer 13 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
+Reducer 11 <- Map 14 (SIMPLE_EDGE), Map 6 (SIMPLE_EDGE)
+Reducer 12 <- Map 15 (SIMPLE_EDGE), Reducer 11 (SIMPLE_EDGE)
+Reducer 13 <- Reducer 12 (SIMPLE_EDGE)
 Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 5 (SIMPLE_EDGE)
 Reducer 3 <- Reducer 10 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
 Reducer 4 <- Reducer 3 (SIMPLE_EDGE)
-Reducer 7 <- Map 11 (SIMPLE_EDGE), Map 6 (SIMPLE_EDGE)
-Reducer 8 <- Map 12 (SIMPLE_EDGE), Reducer 7 (SIMPLE_EDGE)
+Reducer 7 <- Map 14 (SIMPLE_EDGE), Map 6 (SIMPLE_EDGE)
+Reducer 8 <- Map 15 (SIMPLE_EDGE), Reducer 7 (SIMPLE_EDGE)
 Reducer 9 <- Reducer 8 (SIMPLE_EDGE)
 
 Stage-0
@@ -95,7 +95,7 @@ Stage-0
                         PartitionCols:_col0
                         Merge Join Operator [MERGEJOIN_104] (rows=24200000 width=1014)
                           Conds:RS_51._col1=RS_52._col2(Left Outer),Output:["_col0","_col2","_col3","_col4"]
-                        <-Reducer 16 [SIMPLE_EDGE]
+                        <-Reducer 13 [SIMPLE_EDGE]
                           SHUFFLE [RS_52]
                             PartitionCols:_col2
                             Select Operator [SEL_50] (rows=11000000 width=1014)
@@ -106,45 +106,45 @@ Stage-0
                                   Output:["_col0","_col2"]
                                   Group By Operator [GBY_44] (rows=22000000 width=1014)
                                     Output:["_col0","_col1","_col2"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1
-                                  <-Reducer 15 [SIMPLE_EDGE]
+                                  <-Reducer 12 [SIMPLE_EDGE]
                                     SHUFFLE [RS_43]
                                       PartitionCols:_col0
                                       Group By Operator [GBY_42] (rows=44000000 width=1014)
                                         Output:["_col0","_col1","_col2"],aggregations:["sum(_col3)"],keys:_col7, _col1
                                         Merge Join Operator [MERGEJOIN_103] (rows=44000000 width=1014)
                                           Conds:RS_38._col2=RS_39._col0(Inner),Output:["_col1","_col3","_col7"]
-                                        <-Map 18 [SIMPLE_EDGE]
+                                        <-Map 15 [SIMPLE_EDGE]
                                           SHUFFLE [RS_39]
                                             PartitionCols:_col0
                                             Select Operator [SEL_34] (rows=40000000 width=1014)
                                               Output:["_col0","_col1"]
                                               Filter Operator [FIL_98] (rows=40000000 width=1014)
                                                 predicate:(ca_address_sk is not null and ca_state is not null)
-                                                TableScan [TS_32] (rows=40000000 width=1014)
+                                                TableScan [TS_12] (rows=40000000 width=1014)
                                                   default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state"]
-                                        <-Reducer 14 [SIMPLE_EDGE]
+                                        <-Reducer 11 [SIMPLE_EDGE]
                                           SHUFFLE [RS_38]
                                             PartitionCols:_col2
                                             Merge Join Operator [MERGEJOIN_102] (rows=31678769 width=106)
                                               Conds:RS_35._col0=RS_36._col0(Inner),Output:["_col1","_col2","_col3"]
-                                            <-Map 13 [SIMPLE_EDGE]
-                                              SHUFFLE [RS_35]
-                                                PartitionCols:_col0
-                                                Select Operator [SEL_28] (rows=28798881 width=106)
-                                                  Output:["_col0","_col1","_col2","_col3"]
-                                                  Filter Operator [FIL_96] (rows=28798881 width=106)
-                                                    predicate:(cr_returned_date_sk is not null and cr_returning_addr_sk is not null)
-                                                    TableScan [TS_26] (rows=28798881 width=106)
-                                                      default@catalog_returns,catalog_returns,Tbl:COMPLETE,Col:NONE,Output:["cr_returned_date_sk","cr_returning_customer_sk","cr_returning_addr_sk","cr_return_amt_inc_tax"]
-                                            <-Map 17 [SIMPLE_EDGE]
+                                            <-Map 14 [SIMPLE_EDGE]
                                               SHUFFLE [RS_36]
                                                 PartitionCols:_col0
                                                 Select Operator [SEL_31] (rows=36524 width=1119)
                                                   Output:["_col0"]
                                                   Filter Operator [FIL_97] (rows=36524 width=1119)
                                                     predicate:((d_year = 1998) and d_date_sk is not null)
-                                                    TableScan [TS_29] (rows=73049 width=1119)
+                                                    TableScan [TS_9] (rows=73049 width=1119)
                                                       default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
+                                            <-Map 6 [SIMPLE_EDGE]
+                                              SHUFFLE [RS_35]
+                                                PartitionCols:_col0
+                                                Select Operator [SEL_28] (rows=28798881 width=106)
+                                                  Output:["_col0","_col1","_col2","_col3"]
+                                                  Filter Operator [FIL_96] (rows=28798881 width=106)
+                                                    predicate:(cr_returned_date_sk is not null and cr_returning_addr_sk is not null)
+                                                    TableScan [TS_6] (rows=28798881 width=106)
+                                                      default@catalog_returns,catalog_returns,Tbl:COMPLETE,Col:NONE,Output:["cr_returned_date_sk","cr_returning_customer_sk","cr_returning_addr_sk","cr_return_amt_inc_tax"]
                         <-Reducer 9 [SIMPLE_EDGE]
                           SHUFFLE [RS_51]
                             PartitionCols:_col1
@@ -159,29 +159,27 @@ Stage-0
                                     Output:["_col0","_col1","_col2"],aggregations:["sum(_col3)"],keys:_col7, _col1
                                     Merge Join Operator [MERGEJOIN_101] (rows=44000000 width=1014)
                                       Conds:RS_18._col2=RS_19._col0(Inner),Output:["_col1","_col3","_col7"]
-                                    <-Map 12 [SIMPLE_EDGE]
+                                    <-Map 15 [SIMPLE_EDGE]
                                       SHUFFLE [RS_19]
                                         PartitionCols:_col0
                                         Select Operator [SEL_14] (rows=40000000 width=1014)
                                           Output:["_col0","_col1"]
                                           Filter Operator [FIL_95] (rows=40000000 width=1014)
                                             predicate:ca_address_sk is not null
-                                            TableScan [TS_12] (rows=40000000 width=1014)
-                                              default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state"]
+                                             Please refer to the previous TableScan [TS_12]
                                     <-Reducer 7 [SIMPLE_EDGE]
                                       SHUFFLE [RS_18]
                                         PartitionCols:_col2
                                         Merge Join Operator [MERGEJOIN_100] (rows=31678769 width=106)
                                           Conds:RS_15._col0=RS_16._col0(Inner),Output:["_col1","_col2","_col3"]
-                                        <-Map 11 [SIMPLE_EDGE]
+                                        <-Map 14 [SIMPLE_EDGE]
                                           SHUFFLE [RS_16]
                                             PartitionCols:_col0
                                             Select Operator [SEL_11] (rows=36524 width=1119)
                                               Output:["_col0"]
                                               Filter Operator [FIL_94] (rows=36524 width=1119)
                                                 predicate:((d_year = 1998) and d_date_sk is not null)
-                                                TableScan [TS_9] (rows=73049 width=1119)
-                                                  default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
+                                                 Please refer to the previous TableScan [TS_9]
                                         <-Map 6 [SIMPLE_EDGE]
                                           SHUFFLE [RS_15]
                                             PartitionCols:_col0
@@ -189,8 +187,7 @@ Stage-0
                                               Output:["_col0","_col1","_col2","_col3"]
                                               Filter Operator [FIL_93] (rows=28798881 width=106)
                                                 predicate:(cr_returned_date_sk is not null and cr_returning_addr_sk is not null and cr_returning_customer_sk is not null)
-                                                TableScan [TS_6] (rows=28798881 width=106)
-                                                  default@catalog_returns,catalog_returns,Tbl:COMPLETE,Col:NONE,Output:["cr_returned_date_sk","cr_returning_customer_sk","cr_returning_addr_sk","cr_return_amt_inc_tax"]
+                                                 Please refer to the previous TableScan [TS_6]
                     <-Reducer 2 [SIMPLE_EDGE]
                       SHUFFLE [RS_58]
                         PartitionCols:_col0