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

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

http://git-wip-us.apache.org/repos/asf/hive/blob/be59e024/ql/src/test/results/clientpositive/perf/query23.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query23.q.out b/ql/src/test/results/clientpositive/perf/query23.q.out
index 85cee23..a04e5cd 100644
--- a/ql/src/test/results/clientpositive/perf/query23.q.out
+++ b/ql/src/test/results/clientpositive/perf/query23.q.out
@@ -1,7 +1,5 @@
-Warning: Shuffle Join MERGEJOIN[379][tables = [$hdt$_1, $hdt$_2]] in Stage 'Reducer 19' is a cross product
-Warning: Shuffle Join MERGEJOIN[380][tables = [$hdt$_1, $hdt$_2, $hdt$_0]] in Stage 'Reducer 20' is a cross product
-Warning: Shuffle Join MERGEJOIN[382][tables = [$hdt$_1, $hdt$_2]] in Stage 'Reducer 51' is a cross product
-Warning: Shuffle Join MERGEJOIN[383][tables = [$hdt$_1, $hdt$_2, $hdt$_0]] in Stage 'Reducer 52' is a cross product
+Warning: Shuffle Join MERGEJOIN[367][tables = [$hdt$_1, $hdt$_2, $hdt$_0]] in Stage 'Reducer 19' is a cross product
+Warning: Shuffle Join MERGEJOIN[369][tables = [$hdt$_1, $hdt$_2, $hdt$_0]] in Stage 'Reducer 49' is a cross product
 PREHOOK: query: explain with frequent_ss_items as 
  (select substr(i_item_desc,1,30) itemdesc,i_item_sk item_sk,d_date solddate,count(*) cnt
   from store_sales
@@ -107,42 +105,38 @@ Plan optimized by CBO.
 Vertex dependency in root stage
 Reducer 10 <- Map 13 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
 Reducer 11 <- Reducer 10 (SIMPLE_EDGE)
-Reducer 15 <- Map 14 (SIMPLE_EDGE), Map 22 (SIMPLE_EDGE)
-Reducer 16 <- Map 23 (SIMPLE_EDGE), Reducer 15 (SIMPLE_EDGE)
+Reducer 15 <- Map 14 (SIMPLE_EDGE), Map 20 (SIMPLE_EDGE)
+Reducer 16 <- Map 21 (SIMPLE_EDGE), Reducer 15 (SIMPLE_EDGE)
 Reducer 17 <- Reducer 16 (SIMPLE_EDGE)
 Reducer 18 <- Reducer 17 (CUSTOM_SIMPLE_EDGE)
-Reducer 19 <- Reducer 18 (CUSTOM_SIMPLE_EDGE), Reducer 28 (CUSTOM_SIMPLE_EDGE)
+Reducer 19 <- Reducer 18 (CUSTOM_SIMPLE_EDGE), Reducer 26 (CUSTOM_SIMPLE_EDGE), Reducer 31 (CUSTOM_SIMPLE_EDGE)
 Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 7 (SIMPLE_EDGE)
-Reducer 20 <- Reducer 19 (CUSTOM_SIMPLE_EDGE), Reducer 33 (CUSTOM_SIMPLE_EDGE)
-Reducer 21 <- Reducer 20 (SIMPLE_EDGE)
-Reducer 25 <- Map 24 (SIMPLE_EDGE), Map 29 (SIMPLE_EDGE)
-Reducer 26 <- Map 30 (SIMPLE_EDGE), Reducer 25 (SIMPLE_EDGE)
-Reducer 27 <- Reducer 26 (SIMPLE_EDGE)
-Reducer 28 <- Reducer 27 (CUSTOM_SIMPLE_EDGE)
+Reducer 23 <- Map 22 (SIMPLE_EDGE), Map 27 (SIMPLE_EDGE)
+Reducer 24 <- Map 28 (SIMPLE_EDGE), Reducer 23 (SIMPLE_EDGE)
+Reducer 25 <- Reducer 24 (SIMPLE_EDGE)
+Reducer 26 <- Reducer 25 (CUSTOM_SIMPLE_EDGE)
 Reducer 3 <- Reducer 11 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 32 <- Map 31 (SIMPLE_EDGE), Map 34 (SIMPLE_EDGE)
-Reducer 33 <- Reducer 32 (SIMPLE_EDGE)
-Reducer 36 <- Map 35 (SIMPLE_EDGE), Map 39 (SIMPLE_EDGE)
-Reducer 37 <- Reducer 36 (SIMPLE_EDGE), Reducer 43 (SIMPLE_EDGE)
-Reducer 38 <- Reducer 37 (SIMPLE_EDGE), Reducer 53 (SIMPLE_EDGE), Union 5 (CONTAINS)
-Reducer 4 <- Reducer 21 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE), Union 5 (CONTAINS)
-Reducer 41 <- Map 40 (SIMPLE_EDGE), Map 44 (SIMPLE_EDGE)
-Reducer 42 <- Map 45 (SIMPLE_EDGE), Reducer 41 (SIMPLE_EDGE)
-Reducer 43 <- Reducer 42 (SIMPLE_EDGE)
-Reducer 47 <- Map 46 (SIMPLE_EDGE), Map 54 (SIMPLE_EDGE)
-Reducer 48 <- Map 55 (SIMPLE_EDGE), Reducer 47 (SIMPLE_EDGE)
-Reducer 49 <- Reducer 48 (SIMPLE_EDGE)
-Reducer 50 <- Reducer 49 (CUSTOM_SIMPLE_EDGE)
-Reducer 51 <- Reducer 50 (CUSTOM_SIMPLE_EDGE), Reducer 60 (CUSTOM_SIMPLE_EDGE)
-Reducer 52 <- Reducer 51 (CUSTOM_SIMPLE_EDGE), Reducer 65 (CUSTOM_SIMPLE_EDGE)
-Reducer 53 <- Reducer 52 (SIMPLE_EDGE)
-Reducer 57 <- Map 56 (SIMPLE_EDGE), Map 61 (SIMPLE_EDGE)
-Reducer 58 <- Map 62 (SIMPLE_EDGE), Reducer 57 (SIMPLE_EDGE)
-Reducer 59 <- Reducer 58 (SIMPLE_EDGE)
+Reducer 30 <- Map 29 (SIMPLE_EDGE), Map 32 (SIMPLE_EDGE)
+Reducer 31 <- Reducer 30 (SIMPLE_EDGE)
+Reducer 34 <- Map 33 (SIMPLE_EDGE), Map 37 (SIMPLE_EDGE)
+Reducer 35 <- Reducer 34 (SIMPLE_EDGE), Reducer 41 (SIMPLE_EDGE)
+Reducer 36 <- Reducer 35 (SIMPLE_EDGE), Reducer 49 (SIMPLE_EDGE), Union 5 (CONTAINS)
+Reducer 39 <- Map 38 (SIMPLE_EDGE), Map 42 (SIMPLE_EDGE)
+Reducer 4 <- Reducer 19 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE), Union 5 (CONTAINS)
+Reducer 40 <- Map 43 (SIMPLE_EDGE), Reducer 39 (SIMPLE_EDGE)
+Reducer 41 <- Reducer 40 (SIMPLE_EDGE)
+Reducer 45 <- Map 44 (SIMPLE_EDGE), Map 50 (SIMPLE_EDGE)
+Reducer 46 <- Map 51 (SIMPLE_EDGE), Reducer 45 (SIMPLE_EDGE)
+Reducer 47 <- Reducer 46 (SIMPLE_EDGE)
+Reducer 48 <- Reducer 47 (CUSTOM_SIMPLE_EDGE)
+Reducer 49 <- Reducer 48 (CUSTOM_SIMPLE_EDGE), Reducer 56 (CUSTOM_SIMPLE_EDGE), Reducer 61 (CUSTOM_SIMPLE_EDGE)
+Reducer 53 <- Map 52 (SIMPLE_EDGE), Map 57 (SIMPLE_EDGE)
+Reducer 54 <- Map 58 (SIMPLE_EDGE), Reducer 53 (SIMPLE_EDGE)
+Reducer 55 <- Reducer 54 (SIMPLE_EDGE)
+Reducer 56 <- Reducer 55 (CUSTOM_SIMPLE_EDGE)
 Reducer 6 <- Union 5 (CUSTOM_SIMPLE_EDGE)
-Reducer 60 <- Reducer 59 (CUSTOM_SIMPLE_EDGE)
-Reducer 64 <- Map 63 (SIMPLE_EDGE), Map 66 (SIMPLE_EDGE)
-Reducer 65 <- Reducer 64 (SIMPLE_EDGE)
+Reducer 60 <- Map 59 (SIMPLE_EDGE), Map 62 (SIMPLE_EDGE)
+Reducer 61 <- Reducer 60 (SIMPLE_EDGE)
 Reducer 9 <- Map 12 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
 
 Stage-0
@@ -150,435 +144,413 @@ Stage-0
     limit:100
     Stage-1
       Reducer 6
-      File Output Operator [FS_258]
-        Limit [LIM_257] (rows=1 width=112)
+      File Output Operator [FS_246]
+        Limit [LIM_245] (rows=1 width=112)
           Number of rows:100
-          Group By Operator [GBY_255] (rows=1 width=112)
+          Group By Operator [GBY_243] (rows=1 width=112)
             Output:["_col0"],aggregations:["sum(VALUE._col0)"]
           <-Union 5 [CUSTOM_SIMPLE_EDGE]
-            <-Reducer 38 [CONTAINS]
-              Reduce Output Operator [RS_254]
-                Group By Operator [GBY_253] (rows=1 width=112)
+            <-Reducer 36 [CONTAINS]
+              Reduce Output Operator [RS_242]
+                Group By Operator [GBY_241] (rows=1 width=112)
                   Output:["_col0"],aggregations:["sum(_col0)"]
-                  Select Operator [SEL_249] (rows=191667562 width=135)
+                  Select Operator [SEL_237] (rows=191667562 width=135)
                     Output:["_col0"]
-                    Merge Join Operator [MERGEJOIN_384] (rows=191667562 width=135)
-                      Conds:RS_246._col2=RS_247._col0(Inner),Output:["_col3","_col4"]
-                    <-Reducer 37 [SIMPLE_EDGE]
-                      SHUFFLE [RS_246]
+                    Merge Join Operator [MERGEJOIN_370] (rows=191667562 width=135)
+                      Conds:RS_234._col2=RS_235._col0(Inner),Output:["_col3","_col4"]
+                    <-Reducer 35 [SIMPLE_EDGE]
+                      SHUFFLE [RS_234]
                         PartitionCols:_col2
-                        Merge Join Operator [MERGEJOIN_378] (rows=174243235 width=135)
-                          Conds:RS_243._col1=RS_244._col0(Inner),Output:["_col2","_col3","_col4"]
-                        <-Reducer 36 [SIMPLE_EDGE]
-                          SHUFFLE [RS_243]
+                        Merge Join Operator [MERGEJOIN_366] (rows=174243235 width=135)
+                          Conds:RS_231._col1=RS_232._col0(Inner),Output:["_col2","_col3","_col4"]
+                        <-Reducer 34 [SIMPLE_EDGE]
+                          SHUFFLE [RS_231]
                             PartitionCols:_col1
-                            Merge Join Operator [MERGEJOIN_369] (rows=158402938 width=135)
-                              Conds:RS_240._col0=RS_241._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
-                            <-Map 35 [SIMPLE_EDGE]
-                              SHUFFLE [RS_240]
+                            Merge Join Operator [MERGEJOIN_357] (rows=158402938 width=135)
+                              Conds:RS_228._col0=RS_229._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
+                            <-Map 33 [SIMPLE_EDGE]
+                              SHUFFLE [RS_228]
                                 PartitionCols:_col0
-                                Select Operator [SEL_127] (rows=144002668 width=135)
+                                Select Operator [SEL_121] (rows=144002668 width=135)
                                   Output:["_col0","_col1","_col2","_col3","_col4"]
-                                  Filter Operator [FIL_346] (rows=144002668 width=135)
+                                  Filter Operator [FIL_334] (rows=144002668 width=135)
                                     predicate:(ws_item_sk is not null and ws_bill_customer_sk is not null and ws_sold_date_sk is not null)
-                                    TableScan [TS_125] (rows=144002668 width=135)
+                                    TableScan [TS_119] (rows=144002668 width=135)
                                       default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_item_sk","ws_bill_customer_sk","ws_quantity","ws_list_price"]
-                            <-Map 39 [SIMPLE_EDGE]
-                              SHUFFLE [RS_241]
+                            <-Map 37 [SIMPLE_EDGE]
+                              SHUFFLE [RS_229]
                                 PartitionCols:_col0
-                                Select Operator [SEL_130] (rows=18262 width=1119)
+                                Select Operator [SEL_124] (rows=18262 width=1119)
                                   Output:["_col0"]
-                                  Filter Operator [FIL_347] (rows=18262 width=1119)
+                                  Filter Operator [FIL_335] (rows=18262 width=1119)
                                     predicate:((d_year = 1999) and (d_moy = 1) and d_date_sk is not null)
-                                    TableScan [TS_128] (rows=73049 width=1119)
+                                    TableScan [TS_122] (rows=73049 width=1119)
                                       default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
-                        <-Reducer 43 [SIMPLE_EDGE]
-                          SHUFFLE [RS_244]
+                        <-Reducer 41 [SIMPLE_EDGE]
+                          SHUFFLE [RS_232]
                             PartitionCols:_col0
-                            Group By Operator [GBY_156] (rows=58079562 width=88)
+                            Group By Operator [GBY_150] (rows=58079562 width=88)
                               Output:["_col0"],keys:_col1
-                              Select Operator [SEL_152] (rows=116159124 width=88)
+                              Select Operator [SEL_146] (rows=116159124 width=88)
                                 Output:["_col1"]
-                                Filter Operator [FIL_151] (rows=116159124 width=88)
+                                Filter Operator [FIL_145] (rows=116159124 width=88)
                                   predicate:(_col3 > 4)
-                                  Select Operator [SEL_360] (rows=348477374 width=88)
+                                  Select Operator [SEL_348] (rows=348477374 width=88)
                                     Output:["_col0","_col3"]
-                                    Group By Operator [GBY_150] (rows=348477374 width=88)
+                                    Group By Operator [GBY_144] (rows=348477374 width=88)
                                       Output:["_col0","_col1","_col2","_col3"],aggregations:["count(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2
-                                    <-Reducer 42 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_149]
+                                    <-Reducer 40 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_143]
                                         PartitionCols:_col0
-                                        Group By Operator [GBY_148] (rows=696954748 width=88)
+                                        Group By Operator [GBY_142] (rows=696954748 width=88)
                                           Output:["_col0","_col1","_col2","_col3"],aggregations:["count()"],keys:_col1, _col0, _col2
-                                          Select Operator [SEL_146] (rows=696954748 width=88)
+                                          Select Operator [SEL_140] (rows=696954748 width=88)
                                             Output:["_col0","_col1","_col2"]
-                                            Merge Join Operator [MERGEJOIN_371] (rows=696954748 width=88)
-                                              Conds:RS_143._col1=RS_144._col0(Inner),Output:["_col3","_col5","_col6"]
-                                            <-Map 45 [SIMPLE_EDGE]
-                                              SHUFFLE [RS_144]
+                                            Merge Join Operator [MERGEJOIN_359] (rows=696954748 width=88)
+                                              Conds:RS_137._col1=RS_138._col0(Inner),Output:["_col3","_col5","_col6"]
+                                            <-Map 43 [SIMPLE_EDGE]
+                                              SHUFFLE [RS_138]
                                                 PartitionCols:_col0
-                                                Select Operator [SEL_139] (rows=462000 width=1436)
+                                                Select Operator [SEL_133] (rows=462000 width=1436)
                                                   Output:["_col0","_col1"]
-                                                  Filter Operator [FIL_350] (rows=462000 width=1436)
+                                                  Filter Operator [FIL_338] (rows=462000 width=1436)
                                                     predicate:i_item_sk is not null
-                                                    TableScan [TS_137] (rows=462000 width=1436)
+                                                    TableScan [TS_131] (rows=462000 width=1436)
                                                       default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_desc"]
-                                            <-Reducer 41 [SIMPLE_EDGE]
-                                              SHUFFLE [RS_143]
+                                            <-Reducer 39 [SIMPLE_EDGE]
+                                              SHUFFLE [RS_137]
                                                 PartitionCols:_col1
-                                                Merge Join Operator [MERGEJOIN_370] (rows=633595212 width=88)
-                                                  Conds:RS_140._col0=RS_141._col0(Inner),Output:["_col1","_col3"]
-                                                <-Map 40 [SIMPLE_EDGE]
-                                                  SHUFFLE [RS_140]
+                                                Merge Join Operator [MERGEJOIN_358] (rows=633595212 width=88)
+                                                  Conds:RS_134._col0=RS_135._col0(Inner),Output:["_col1","_col3"]
+                                                <-Map 38 [SIMPLE_EDGE]
+                                                  SHUFFLE [RS_134]
                                                     PartitionCols:_col0
-                                                    Select Operator [SEL_133] (rows=575995635 width=88)
+                                                    Select Operator [SEL_127] (rows=575995635 width=88)
                                                       Output:["_col0","_col1"]
-                                                      Filter Operator [FIL_348] (rows=575995635 width=88)
+                                                      Filter Operator [FIL_336] (rows=575995635 width=88)
                                                         predicate:(ss_sold_date_sk is not null and ss_item_sk is not null)
-                                                        TableScan [TS_131] (rows=575995635 width=88)
+                                                        TableScan [TS_125] (rows=575995635 width=88)
                                                           default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk"]
-                                                <-Map 44 [SIMPLE_EDGE]
-                                                  SHUFFLE [RS_141]
+                                                <-Map 42 [SIMPLE_EDGE]
+                                                  SHUFFLE [RS_135]
                                                     PartitionCols:_col0
-                                                    Select Operator [SEL_136] (rows=36525 width=1119)
+                                                    Select Operator [SEL_130] (rows=36525 width=1119)
                                                       Output:["_col0","_col1"]
-                                                      Filter Operator [FIL_349] (rows=36525 width=1119)
+                                                      Filter Operator [FIL_337] (rows=36525 width=1119)
                                                         predicate:((d_year) IN (1999, 2000, 2001, 2002) and d_date_sk is not null)
-                                                        TableScan [TS_134] (rows=73049 width=1119)
+                                                        TableScan [TS_128] (rows=73049 width=1119)
                                                           default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_date","d_year"]
-                    <-Reducer 53 [SIMPLE_EDGE]
-                      SHUFFLE [RS_247]
+                    <-Reducer 49 [SIMPLE_EDGE]
+                      SHUFFLE [RS_235]
                         PartitionCols:_col0
-                        Group By Operator [GBY_238] (rows=52799601 width=322)
-                          Output:["_col0"],keys:KEY._col0
-                        <-Reducer 52 [SIMPLE_EDGE]
-                          SHUFFLE [RS_237]
-                            PartitionCols:_col0
-                            Group By Operator [GBY_236] (rows=105599202 width=322)
-                              Output:["_col0"],keys:_col2
-                              Select Operator [SEL_235] (rows=105599202 width=322)
-                                Output:["_col2"]
-                                Filter Operator [FIL_234] (rows=105599202 width=322)
-                                  predicate:(_col3 > (0.95 * _col1))
-                                  Merge Join Operator [MERGEJOIN_383] (rows=316797606 width=322)
-                                    Conds:(Inner),Output:["_col1","_col2","_col3"]
-                                  <-Reducer 51 [CUSTOM_SIMPLE_EDGE]
-                                    PARTITION_ONLY_SHUFFLE [RS_231]
-                                      Merge Join Operator [MERGEJOIN_382] (rows=1 width=233)
-                                        Conds:(Left Outer),Output:["_col1"]
-                                      <-Reducer 50 [CUSTOM_SIMPLE_EDGE]
-                                        PARTITION_ONLY_SHUFFLE [RS_228]
-                                          Select Operator [SEL_186] (rows=1 width=8)
-                                            Filter Operator [FIL_185] (rows=1 width=8)
-                                              predicate:(sq_count_check(_col0) <= 1)
-                                              Group By Operator [GBY_183] (rows=1 width=8)
-                                                Output:["_col0"],aggregations:["count(VALUE._col0)"]
-                                              <-Reducer 49 [CUSTOM_SIMPLE_EDGE]
-                                                PARTITION_ONLY_SHUFFLE [RS_182]
-                                                  Group By Operator [GBY_181] (rows=1 width=8)
-                                                    Output:["_col0"],aggregations:["count()"]
-                                                    Select Operator [SEL_178] (rows=348477374 width=88)
-                                                      Group By Operator [GBY_177] (rows=348477374 width=88)
-                                                        Output:["_col0"],keys:KEY._col0
-                                                      <-Reducer 48 [SIMPLE_EDGE]
-                                                        SHUFFLE [RS_176]
-                                                          PartitionCols:_col0
-                                                          Group By Operator [GBY_175] (rows=696954748 width=88)
-                                                            Output:["_col0"],keys:_col0
-                                                            Select Operator [SEL_173] (rows=696954748 width=88)
-                                                              Output:["_col0"]
-                                                              Merge Join Operator [MERGEJOIN_373] (rows=696954748 width=88)
-                                                                Conds:RS_170._col1=RS_171._col0(Inner),Output:["_col6"]
-                                                              <-Map 55 [SIMPLE_EDGE]
-                                                                SHUFFLE [RS_171]
-                                                                  PartitionCols:_col0
-                                                                  Select Operator [SEL_166] (rows=80000000 width=860)
-                                                                    Output:["_col0"]
-                                                                    Filter Operator [FIL_353] (rows=80000000 width=860)
-                                                                      predicate:c_customer_sk is not null
-                                                                      TableScan [TS_164] (rows=80000000 width=860)
-                                                                        default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk"]
-                                                              <-Reducer 47 [SIMPLE_EDGE]
-                                                                SHUFFLE [RS_170]
-                                                                  PartitionCols:_col1
-                                                                  Merge Join Operator [MERGEJOIN_372] (rows=633595212 width=88)
-                                                                    Conds:RS_167._col0=RS_168._col0(Inner),Output:["_col1"]
-                                                                  <-Map 46 [SIMPLE_EDGE]
-                                                                    SHUFFLE [RS_167]
-                                                                      PartitionCols:_col0
-                                                                      Select Operator [SEL_160] (rows=575995635 width=88)
-                                                                        Output:["_col0","_col1"]
-                                                                        Filter Operator [FIL_351] (rows=575995635 width=88)
-                                                                          predicate:(ss_customer_sk is not null and ss_sold_date_sk is not null)
-                                                                          TableScan [TS_158] (rows=575995635 width=88)
-                                                                            default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_customer_sk"]
-                                                                  <-Map 54 [SIMPLE_EDGE]
-                                                                    SHUFFLE [RS_168]
-                                                                      PartitionCols:_col0
-                                                                      Select Operator [SEL_163] (rows=36525 width=1119)
-                                                                        Output:["_col0"]
-                                                                        Filter Operator [FIL_352] (rows=36525 width=1119)
-                                                                          predicate:((d_year) IN (1999, 2000, 2001, 2002) and d_date_sk is not null)
-                                                                          TableScan [TS_161] (rows=73049 width=1119)
-                                                                            default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
-                                      <-Reducer 60 [CUSTOM_SIMPLE_EDGE]
-                                        PARTITION_ONLY_SHUFFLE [RS_229]
-                                          Group By Operator [GBY_211] (rows=1 width=224)
-                                            Output:["_col0"],aggregations:["max(VALUE._col0)"]
-                                          <-Reducer 59 [CUSTOM_SIMPLE_EDGE]
-                                            PARTITION_ONLY_SHUFFLE [RS_210]
-                                              Group By Operator [GBY_209] (rows=1 width=224)
-                                                Output:["_col0"],aggregations:["max(_col1)"]
-                                                Select Operator [SEL_207] (rows=348477374 width=88)
-                                                  Output:["_col1"]
-                                                  Group By Operator [GBY_206] (rows=348477374 width=88)
-                                                    Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
-                                                  <-Reducer 58 [SIMPLE_EDGE]
-                                                    SHUFFLE [RS_205]
-                                                      PartitionCols:_col0
-                                                      Group By Operator [GBY_204] (rows=696954748 width=88)
-                                                        Output:["_col0","_col1"],aggregations:["sum(_col1)"],keys:_col0
-                                                        Select Operator [SEL_202] (rows=696954748 width=88)
-                                                          Output:["_col0","_col1"]
-                                                          Merge Join Operator [MERGEJOIN_375] (rows=696954748 width=88)
-                                                            Conds:RS_199._col1=RS_200._col0(Inner),Output:["_col2","_col3","_col6"]
-                                                          <-Map 62 [SIMPLE_EDGE]
-                                                            SHUFFLE [RS_200]
-                                                              PartitionCols:_col0
-                                                              Select Operator [SEL_195] (rows=80000000 width=860)
-                                                                Output:["_col0"]
-                                                                Filter Operator [FIL_356] (rows=80000000 width=860)
-                                                                  predicate:c_customer_sk is not null
-                                                                  TableScan [TS_193] (rows=80000000 width=860)
-                                                                    default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk"]
-                                                          <-Reducer 57 [SIMPLE_EDGE]
-                                                            SHUFFLE [RS_199]
-                                                              PartitionCols:_col1
-                                                              Merge Join Operator [MERGEJOIN_374] (rows=633595212 width=88)
-                                                                Conds:RS_196._col0=RS_197._col0(Inner),Output:["_col1","_col2","_col3"]
-                                                              <-Map 56 [SIMPLE_EDGE]
-                                                                SHUFFLE [RS_196]
-                                                                  PartitionCols:_col0
-                                                                  Select Operator [SEL_189] (rows=575995635 width=88)
-                                                                    Output:["_col0","_col1","_col2","_col3"]
-                                                                    Filter Operator [FIL_354] (rows=575995635 width=88)
-                                                                      predicate:(ss_customer_sk is not null and ss_sold_date_sk is not null)
-                                                                      TableScan [TS_187] (rows=575995635 width=88)
-                                                                        default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_customer_sk","ss_quantity","ss_sales_price"]
-                                                              <-Map 61 [SIMPLE_EDGE]
-                                                                SHUFFLE [RS_197]
-                                                                  PartitionCols:_col0
-                                                                  Select Operator [SEL_192] (rows=36525 width=1119)
-                                                                    Output:["_col0"]
-                                                                    Filter Operator [FIL_355] (rows=36525 width=1119)
-                                                                      predicate:((d_year) IN (1999, 2000, 2001, 2002) and d_date_sk is not null)
-                                                                      TableScan [TS_190] (rows=73049 width=1119)
-                                                                        default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
-                                  <-Reducer 65 [CUSTOM_SIMPLE_EDGE]
-                                    PARTITION_ONLY_SHUFFLE [RS_232]
-                                      Group By Operator [GBY_226] (rows=316797606 width=88)
-                                        Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
-                                      <-Reducer 64 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_225]
-                                          PartitionCols:_col0
-                                          Group By Operator [GBY_224] (rows=633595212 width=88)
-                                            Output:["_col0","_col1"],aggregations:["sum(_col1)"],keys:_col0
-                                            Select Operator [SEL_222] (rows=633595212 width=88)
-                                              Output:["_col0","_col1"]
-                                              Merge Join Operator [MERGEJOIN_376] (rows=633595212 width=88)
-                                                Conds:RS_219._col0=RS_220._col0(Inner),Output:["_col1","_col2","_col3"]
-                                              <-Map 63 [SIMPLE_EDGE]
-                                                SHUFFLE [RS_219]
-                                                  PartitionCols:_col0
-                                                  Select Operator [SEL_215] (rows=575995635 width=88)
-                                                    Output:["_col0","_col1","_col2"]
-                                                    Filter Operator [FIL_357] (rows=575995635 width=88)
-                                                      predicate:ss_customer_sk is not null
-                                                      TableScan [TS_213] (rows=575995635 width=88)
-                                                        default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_customer_sk","ss_quantity","ss_sales_price"]
-                                              <-Map 66 [SIMPLE_EDGE]
-                                                SHUFFLE [RS_220]
-                                                  PartitionCols:_col0
-                                                  Select Operator [SEL_218] (rows=80000000 width=860)
+                        Select Operator [SEL_227] (rows=105599202 width=321)
+                          Output:["_col0"]
+                          Filter Operator [FIL_226] (rows=105599202 width=321)
+                            predicate:(_col3 > (0.95 * _col1))
+                            Merge Join Operator [MERGEJOIN_369] (rows=316797606 width=321)
+                              Conds:(Inner),(Inner),Output:["_col1","_col2","_col3"]
+                            <-Reducer 48 [CUSTOM_SIMPLE_EDGE]
+                              PARTITION_ONLY_SHUFFLE [RS_222]
+                                Select Operator [SEL_180] (rows=1 width=8)
+                                  Filter Operator [FIL_179] (rows=1 width=8)
+                                    predicate:(sq_count_check(_col0) <= 1)
+                                    Group By Operator [GBY_177] (rows=1 width=8)
+                                      Output:["_col0"],aggregations:["count(VALUE._col0)"]
+                                    <-Reducer 47 [CUSTOM_SIMPLE_EDGE]
+                                      PARTITION_ONLY_SHUFFLE [RS_176]
+                                        Group By Operator [GBY_175] (rows=1 width=8)
+                                          Output:["_col0"],aggregations:["count()"]
+                                          Select Operator [SEL_172] (rows=348477374 width=88)
+                                            Group By Operator [GBY_171] (rows=348477374 width=88)
+                                              Output:["_col0"],keys:KEY._col0
+                                            <-Reducer 46 [SIMPLE_EDGE]
+                                              SHUFFLE [RS_170]
+                                                PartitionCols:_col0
+                                                Group By Operator [GBY_169] (rows=696954748 width=88)
+                                                  Output:["_col0"],keys:_col0
+                                                  Select Operator [SEL_167] (rows=696954748 width=88)
                                                     Output:["_col0"]
-                                                    Filter Operator [FIL_358] (rows=80000000 width=860)
-                                                      predicate:c_customer_sk is not null
-                                                      TableScan [TS_216] (rows=80000000 width=860)
-                                                        default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk"]
+                                                    Merge Join Operator [MERGEJOIN_361] (rows=696954748 width=88)
+                                                      Conds:RS_164._col1=RS_165._col0(Inner),Output:["_col6"]
+                                                    <-Map 51 [SIMPLE_EDGE]
+                                                      SHUFFLE [RS_165]
+                                                        PartitionCols:_col0
+                                                        Select Operator [SEL_160] (rows=80000000 width=860)
+                                                          Output:["_col0"]
+                                                          Filter Operator [FIL_341] (rows=80000000 width=860)
+                                                            predicate:c_customer_sk is not null
+                                                            TableScan [TS_158] (rows=80000000 width=860)
+                                                              default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk"]
+                                                    <-Reducer 45 [SIMPLE_EDGE]
+                                                      SHUFFLE [RS_164]
+                                                        PartitionCols:_col1
+                                                        Merge Join Operator [MERGEJOIN_360] (rows=633595212 width=88)
+                                                          Conds:RS_161._col0=RS_162._col0(Inner),Output:["_col1"]
+                                                        <-Map 44 [SIMPLE_EDGE]
+                                                          SHUFFLE [RS_161]
+                                                            PartitionCols:_col0
+                                                            Select Operator [SEL_154] (rows=575995635 width=88)
+                                                              Output:["_col0","_col1"]
+                                                              Filter Operator [FIL_339] (rows=575995635 width=88)
+                                                                predicate:(ss_customer_sk is not null and ss_sold_date_sk is not null)
+                                                                TableScan [TS_152] (rows=575995635 width=88)
+                                                                  default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_customer_sk"]
+                                                        <-Map 50 [SIMPLE_EDGE]
+                                                          SHUFFLE [RS_162]
+                                                            PartitionCols:_col0
+                                                            Select Operator [SEL_157] (rows=36525 width=1119)
+                                                              Output:["_col0"]
+                                                              Filter Operator [FIL_340] (rows=36525 width=1119)
+                                                                predicate:((d_year) IN (1999, 2000, 2001, 2002) and d_date_sk is not null)
+                                                                TableScan [TS_155] (rows=73049 width=1119)
+                                                                  default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
+                            <-Reducer 56 [CUSTOM_SIMPLE_EDGE]
+                              PARTITION_ONLY_SHUFFLE [RS_223]
+                                Group By Operator [GBY_205] (rows=1 width=224)
+                                  Output:["_col0"],aggregations:["max(VALUE._col0)"]
+                                <-Reducer 55 [CUSTOM_SIMPLE_EDGE]
+                                  PARTITION_ONLY_SHUFFLE [RS_204]
+                                    Group By Operator [GBY_203] (rows=1 width=224)
+                                      Output:["_col0"],aggregations:["max(_col1)"]
+                                      Select Operator [SEL_201] (rows=348477374 width=88)
+                                        Output:["_col1"]
+                                        Group By Operator [GBY_200] (rows=348477374 width=88)
+                                          Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
+                                        <-Reducer 54 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_199]
+                                            PartitionCols:_col0
+                                            Group By Operator [GBY_198] (rows=696954748 width=88)
+                                              Output:["_col0","_col1"],aggregations:["sum(_col1)"],keys:_col0
+                                              Select Operator [SEL_196] (rows=696954748 width=88)
+                                                Output:["_col0","_col1"]
+                                                Merge Join Operator [MERGEJOIN_363] (rows=696954748 width=88)
+                                                  Conds:RS_193._col1=RS_194._col0(Inner),Output:["_col2","_col3","_col6"]
+                                                <-Map 58 [SIMPLE_EDGE]
+                                                  SHUFFLE [RS_194]
+                                                    PartitionCols:_col0
+                                                    Select Operator [SEL_189] (rows=80000000 width=860)
+                                                      Output:["_col0"]
+                                                      Filter Operator [FIL_344] (rows=80000000 width=860)
+                                                        predicate:c_customer_sk is not null
+                                                        TableScan [TS_187] (rows=80000000 width=860)
+                                                          default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk"]
+                                                <-Reducer 53 [SIMPLE_EDGE]
+                                                  SHUFFLE [RS_193]
+                                                    PartitionCols:_col1
+                                                    Merge Join Operator [MERGEJOIN_362] (rows=633595212 width=88)
+                                                      Conds:RS_190._col0=RS_191._col0(Inner),Output:["_col1","_col2","_col3"]
+                                                    <-Map 52 [SIMPLE_EDGE]
+                                                      SHUFFLE [RS_190]
+                                                        PartitionCols:_col0
+                                                        Select Operator [SEL_183] (rows=575995635 width=88)
+                                                          Output:["_col0","_col1","_col2","_col3"]
+                                                          Filter Operator [FIL_342] (rows=575995635 width=88)
+                                                            predicate:(ss_customer_sk is not null and ss_sold_date_sk is not null)
+                                                            TableScan [TS_181] (rows=575995635 width=88)
+                                                              default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_customer_sk","ss_quantity","ss_sales_price"]
+                                                    <-Map 57 [SIMPLE_EDGE]
+                                                      SHUFFLE [RS_191]
+                                                        PartitionCols:_col0
+                                                        Select Operator [SEL_186] (rows=36525 width=1119)
+                                                          Output:["_col0"]
+                                                          Filter Operator [FIL_343] (rows=36525 width=1119)
+                                                            predicate:((d_year) IN (1999, 2000, 2001, 2002) and d_date_sk is not null)
+                                                            TableScan [TS_184] (rows=73049 width=1119)
+                                                              default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
+                            <-Reducer 61 [CUSTOM_SIMPLE_EDGE]
+                              PARTITION_ONLY_SHUFFLE [RS_224]
+                                Group By Operator [GBY_220] (rows=316797606 width=88)
+                                  Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
+                                <-Reducer 60 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_219]
+                                    PartitionCols:_col0
+                                    Group By Operator [GBY_218] (rows=633595212 width=88)
+                                      Output:["_col0","_col1"],aggregations:["sum(_col1)"],keys:_col0
+                                      Select Operator [SEL_216] (rows=633595212 width=88)
+                                        Output:["_col0","_col1"]
+                                        Merge Join Operator [MERGEJOIN_364] (rows=633595212 width=88)
+                                          Conds:RS_213._col0=RS_214._col0(Inner),Output:["_col1","_col2","_col3"]
+                                        <-Map 59 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_213]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_209] (rows=575995635 width=88)
+                                              Output:["_col0","_col1","_col2"]
+                                              Filter Operator [FIL_345] (rows=575995635 width=88)
+                                                predicate:ss_customer_sk is not null
+                                                TableScan [TS_207] (rows=575995635 width=88)
+                                                  default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_customer_sk","ss_quantity","ss_sales_price"]
+                                        <-Map 62 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_214]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_212] (rows=80000000 width=860)
+                                              Output:["_col0"]
+                                              Filter Operator [FIL_346] (rows=80000000 width=860)
+                                                predicate:c_customer_sk is not null
+                                                TableScan [TS_210] (rows=80000000 width=860)
+                                                  default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk"]
             <-Reducer 4 [CONTAINS]
-              Reduce Output Operator [RS_254]
-                Group By Operator [GBY_253] (rows=1 width=112)
+              Reduce Output Operator [RS_242]
+                Group By Operator [GBY_241] (rows=1 width=112)
                   Output:["_col0"],aggregations:["sum(_col0)"]
-                  Select Operator [SEL_124] (rows=383314495 width=135)
+                  Select Operator [SEL_118] (rows=383314495 width=135)
                     Output:["_col0"]
-                    Merge Join Operator [MERGEJOIN_381] (rows=383314495 width=135)
-                      Conds:RS_121._col1=RS_122._col0(Inner),Output:["_col3","_col4"]
-                    <-Reducer 21 [SIMPLE_EDGE]
-                      SHUFFLE [RS_122]
+                    Merge Join Operator [MERGEJOIN_368] (rows=383314495 width=135)
+                      Conds:RS_115._col1=RS_116._col0(Inner),Output:["_col3","_col4"]
+                    <-Reducer 19 [SIMPLE_EDGE]
+                      SHUFFLE [RS_116]
                         PartitionCols:_col0
-                        Group By Operator [GBY_113] (rows=52799601 width=322)
-                          Output:["_col0"],keys:KEY._col0
-                        <-Reducer 20 [SIMPLE_EDGE]
-                          SHUFFLE [RS_112]
-                            PartitionCols:_col0
-                            Group By Operator [GBY_111] (rows=105599202 width=322)
-                              Output:["_col0"],keys:_col2
-                              Select Operator [SEL_110] (rows=105599202 width=322)
-                                Output:["_col2"]
-                                Filter Operator [FIL_109] (rows=105599202 width=322)
-                                  predicate:(_col3 > (0.95 * _col1))
-                                  Merge Join Operator [MERGEJOIN_380] (rows=316797606 width=322)
-                                    Conds:(Inner),Output:["_col1","_col2","_col3"]
-                                  <-Reducer 19 [CUSTOM_SIMPLE_EDGE]
-                                    PARTITION_ONLY_SHUFFLE [RS_106]
-                                      Merge Join Operator [MERGEJOIN_379] (rows=1 width=233)
-                                        Conds:(Left Outer),Output:["_col1"]
-                                      <-Reducer 18 [CUSTOM_SIMPLE_EDGE]
-                                        PARTITION_ONLY_SHUFFLE [RS_103]
-                                          Select Operator [SEL_61] (rows=1 width=8)
-                                            Filter Operator [FIL_60] (rows=1 width=8)
-                                              predicate:(sq_count_check(_col0) <= 1)
-                                              Group By Operator [GBY_58] (rows=1 width=8)
-                                                Output:["_col0"],aggregations:["count(VALUE._col0)"]
-                                              <-Reducer 17 [CUSTOM_SIMPLE_EDGE]
-                                                PARTITION_ONLY_SHUFFLE [RS_57]
-                                                  Group By Operator [GBY_56] (rows=1 width=8)
-                                                    Output:["_col0"],aggregations:["count()"]
-                                                    Select Operator [SEL_53] (rows=348477374 width=88)
-                                                      Group By Operator [GBY_52] (rows=348477374 width=88)
-                                                        Output:["_col0"],keys:KEY._col0
-                                                      <-Reducer 16 [SIMPLE_EDGE]
-                                                        SHUFFLE [RS_51]
-                                                          PartitionCols:_col0
-                                                          Group By Operator [GBY_50] (rows=696954748 width=88)
-                                                            Output:["_col0"],keys:_col0
-                                                            Select Operator [SEL_48] (rows=696954748 width=88)
-                                                              Output:["_col0"]
-                                                              Merge Join Operator [MERGEJOIN_365] (rows=696954748 width=88)
-                                                                Conds:RS_45._col1=RS_46._col0(Inner),Output:["_col6"]
-                                                              <-Map 23 [SIMPLE_EDGE]
-                                                                SHUFFLE [RS_46]
-                                                                  PartitionCols:_col0
-                                                                  Select Operator [SEL_41] (rows=80000000 width=860)
-                                                                    Output:["_col0"]
-                                                                    Filter Operator [FIL_340] (rows=80000000 width=860)
-                                                                      predicate:c_customer_sk is not null
-                                                                      TableScan [TS_39] (rows=80000000 width=860)
-                                                                        default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk"]
-                                                              <-Reducer 15 [SIMPLE_EDGE]
-                                                                SHUFFLE [RS_45]
-                                                                  PartitionCols:_col1
-                                                                  Merge Join Operator [MERGEJOIN_364] (rows=633595212 width=88)
-                                                                    Conds:RS_42._col0=RS_43._col0(Inner),Output:["_col1"]
-                                                                  <-Map 14 [SIMPLE_EDGE]
-                                                                    SHUFFLE [RS_42]
-                                                                      PartitionCols:_col0
-                                                                      Select Operator [SEL_35] (rows=575995635 width=88)
-                                                                        Output:["_col0","_col1"]
-                                                                        Filter Operator [FIL_338] (rows=575995635 width=88)
-                                                                          predicate:(ss_customer_sk is not null and ss_sold_date_sk is not null)
-                                                                          TableScan [TS_33] (rows=575995635 width=88)
-                                                                            default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_customer_sk"]
-                                                                  <-Map 22 [SIMPLE_EDGE]
-                                                                    SHUFFLE [RS_43]
-                                                                      PartitionCols:_col0
-                                                                      Select Operator [SEL_38] (rows=36525 width=1119)
-                                                                        Output:["_col0"]
-                                                                        Filter Operator [FIL_339] (rows=36525 width=1119)
-                                                                          predicate:((d_year) IN (1999, 2000, 2001, 2002) and d_date_sk is not null)
-                                                                          TableScan [TS_36] (rows=73049 width=1119)
-                                                                            default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
-                                      <-Reducer 28 [CUSTOM_SIMPLE_EDGE]
-                                        PARTITION_ONLY_SHUFFLE [RS_104]
-                                          Group By Operator [GBY_86] (rows=1 width=224)
-                                            Output:["_col0"],aggregations:["max(VALUE._col0)"]
-                                          <-Reducer 27 [CUSTOM_SIMPLE_EDGE]
-                                            PARTITION_ONLY_SHUFFLE [RS_85]
-                                              Group By Operator [GBY_84] (rows=1 width=224)
-                                                Output:["_col0"],aggregations:["max(_col1)"]
-                                                Select Operator [SEL_82] (rows=348477374 width=88)
-                                                  Output:["_col1"]
-                                                  Group By Operator [GBY_81] (rows=348477374 width=88)
-                                                    Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
-                                                  <-Reducer 26 [SIMPLE_EDGE]
-                                                    SHUFFLE [RS_80]
-                                                      PartitionCols:_col0
-                                                      Group By Operator [GBY_79] (rows=696954748 width=88)
-                                                        Output:["_col0","_col1"],aggregations:["sum(_col1)"],keys:_col0
-                                                        Select Operator [SEL_77] (rows=696954748 width=88)
-                                                          Output:["_col0","_col1"]
-                                                          Merge Join Operator [MERGEJOIN_367] (rows=696954748 width=88)
-                                                            Conds:RS_74._col1=RS_75._col0(Inner),Output:["_col2","_col3","_col6"]
-                                                          <-Map 30 [SIMPLE_EDGE]
-                                                            SHUFFLE [RS_75]
-                                                              PartitionCols:_col0
-                                                              Select Operator [SEL_70] (rows=80000000 width=860)
-                                                                Output:["_col0"]
-                                                                Filter Operator [FIL_343] (rows=80000000 width=860)
-                                                                  predicate:c_customer_sk is not null
-                                                                  TableScan [TS_68] (rows=80000000 width=860)
-                                                                    default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk"]
-                                                          <-Reducer 25 [SIMPLE_EDGE]
-                                                            SHUFFLE [RS_74]
-                                                              PartitionCols:_col1
-                                                              Merge Join Operator [MERGEJOIN_366] (rows=633595212 width=88)
-                                                                Conds:RS_71._col0=RS_72._col0(Inner),Output:["_col1","_col2","_col3"]
-                                                              <-Map 24 [SIMPLE_EDGE]
-                                                                SHUFFLE [RS_71]
-                                                                  PartitionCols:_col0
-                                                                  Select Operator [SEL_64] (rows=575995635 width=88)
-                                                                    Output:["_col0","_col1","_col2","_col3"]
-                                                                    Filter Operator [FIL_341] (rows=575995635 width=88)
-                                                                      predicate:(ss_customer_sk is not null and ss_sold_date_sk is not null)
-                                                                      TableScan [TS_62] (rows=575995635 width=88)
-                                                                        default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_customer_sk","ss_quantity","ss_sales_price"]
-                                                              <-Map 29 [SIMPLE_EDGE]
-                                                                SHUFFLE [RS_72]
-                                                                  PartitionCols:_col0
-                                                                  Select Operator [SEL_67] (rows=36525 width=1119)
-                                                                    Output:["_col0"]
-                                                                    Filter Operator [FIL_342] (rows=36525 width=1119)
-                                                                      predicate:((d_year) IN (1999, 2000, 2001, 2002) and d_date_sk is not null)
-                                                                      TableScan [TS_65] (rows=73049 width=1119)
-                                                                        default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
-                                  <-Reducer 33 [CUSTOM_SIMPLE_EDGE]
-                                    PARTITION_ONLY_SHUFFLE [RS_107]
-                                      Group By Operator [GBY_101] (rows=316797606 width=88)
-                                        Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
-                                      <-Reducer 32 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_100]
-                                          PartitionCols:_col0
-                                          Group By Operator [GBY_99] (rows=633595212 width=88)
-                                            Output:["_col0","_col1"],aggregations:["sum(_col1)"],keys:_col0
-                                            Select Operator [SEL_97] (rows=633595212 width=88)
-                                              Output:["_col0","_col1"]
-                                              Merge Join Operator [MERGEJOIN_368] (rows=633595212 width=88)
-                                                Conds:RS_94._col0=RS_95._col0(Inner),Output:["_col1","_col2","_col3"]
-                                              <-Map 31 [SIMPLE_EDGE]
-                                                SHUFFLE [RS_94]
-                                                  PartitionCols:_col0
-                                                  Select Operator [SEL_90] (rows=575995635 width=88)
-                                                    Output:["_col0","_col1","_col2"]
-                                                    Filter Operator [FIL_344] (rows=575995635 width=88)
-                                                      predicate:ss_customer_sk is not null
-                                                      TableScan [TS_88] (rows=575995635 width=88)
-                                                        default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_customer_sk","ss_quantity","ss_sales_price"]
-                                              <-Map 34 [SIMPLE_EDGE]
-                                                SHUFFLE [RS_95]
-                                                  PartitionCols:_col0
-                                                  Select Operator [SEL_93] (rows=80000000 width=860)
+                        Select Operator [SEL_108] (rows=105599202 width=321)
+                          Output:["_col0"]
+                          Filter Operator [FIL_107] (rows=105599202 width=321)
+                            predicate:(_col3 > (0.95 * _col1))
+                            Merge Join Operator [MERGEJOIN_367] (rows=316797606 width=321)
+                              Conds:(Inner),(Inner),Output:["_col1","_col2","_col3"]
+                            <-Reducer 18 [CUSTOM_SIMPLE_EDGE]
+                              PARTITION_ONLY_SHUFFLE [RS_103]
+                                Select Operator [SEL_61] (rows=1 width=8)
+                                  Filter Operator [FIL_60] (rows=1 width=8)
+                                    predicate:(sq_count_check(_col0) <= 1)
+                                    Group By Operator [GBY_58] (rows=1 width=8)
+                                      Output:["_col0"],aggregations:["count(VALUE._col0)"]
+                                    <-Reducer 17 [CUSTOM_SIMPLE_EDGE]
+                                      PARTITION_ONLY_SHUFFLE [RS_57]
+                                        Group By Operator [GBY_56] (rows=1 width=8)
+                                          Output:["_col0"],aggregations:["count()"]
+                                          Select Operator [SEL_53] (rows=348477374 width=88)
+                                            Group By Operator [GBY_52] (rows=348477374 width=88)
+                                              Output:["_col0"],keys:KEY._col0
+                                            <-Reducer 16 [SIMPLE_EDGE]
+                                              SHUFFLE [RS_51]
+                                                PartitionCols:_col0
+                                                Group By Operator [GBY_50] (rows=696954748 width=88)
+                                                  Output:["_col0"],keys:_col0
+                                                  Select Operator [SEL_48] (rows=696954748 width=88)
                                                     Output:["_col0"]
-                                                    Filter Operator [FIL_345] (rows=80000000 width=860)
-                                                      predicate:c_customer_sk is not null
-                                                      TableScan [TS_91] (rows=80000000 width=860)
-                                                        default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk"]
+                                                    Merge Join Operator [MERGEJOIN_353] (rows=696954748 width=88)
+                                                      Conds:RS_45._col1=RS_46._col0(Inner),Output:["_col6"]
+                                                    <-Map 21 [SIMPLE_EDGE]
+                                                      SHUFFLE [RS_46]
+                                                        PartitionCols:_col0
+                                                        Select Operator [SEL_41] (rows=80000000 width=860)
+                                                          Output:["_col0"]
+                                                          Filter Operator [FIL_328] (rows=80000000 width=860)
+                                                            predicate:c_customer_sk is not null
+                                                            TableScan [TS_39] (rows=80000000 width=860)
+                                                              default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk"]
+                                                    <-Reducer 15 [SIMPLE_EDGE]
+                                                      SHUFFLE [RS_45]
+                                                        PartitionCols:_col1
+                                                        Merge Join Operator [MERGEJOIN_352] (rows=633595212 width=88)
+                                                          Conds:RS_42._col0=RS_43._col0(Inner),Output:["_col1"]
+                                                        <-Map 14 [SIMPLE_EDGE]
+                                                          SHUFFLE [RS_42]
+                                                            PartitionCols:_col0
+                                                            Select Operator [SEL_35] (rows=575995635 width=88)
+                                                              Output:["_col0","_col1"]
+                                                              Filter Operator [FIL_326] (rows=575995635 width=88)
+                                                                predicate:(ss_customer_sk is not null and ss_sold_date_sk is not null)
+                                                                TableScan [TS_33] (rows=575995635 width=88)
+                                                                  default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_customer_sk"]
+                                                        <-Map 20 [SIMPLE_EDGE]
+                                                          SHUFFLE [RS_43]
+                                                            PartitionCols:_col0
+                                                            Select Operator [SEL_38] (rows=36525 width=1119)
+                                                              Output:["_col0"]
+                                                              Filter Operator [FIL_327] (rows=36525 width=1119)
+                                                                predicate:((d_year) IN (1999, 2000, 2001, 2002) and d_date_sk is not null)
+                                                                TableScan [TS_36] (rows=73049 width=1119)
+                                                                  default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
+                            <-Reducer 26 [CUSTOM_SIMPLE_EDGE]
+                              PARTITION_ONLY_SHUFFLE [RS_104]
+                                Group By Operator [GBY_86] (rows=1 width=224)
+                                  Output:["_col0"],aggregations:["max(VALUE._col0)"]
+                                <-Reducer 25 [CUSTOM_SIMPLE_EDGE]
+                                  PARTITION_ONLY_SHUFFLE [RS_85]
+                                    Group By Operator [GBY_84] (rows=1 width=224)
+                                      Output:["_col0"],aggregations:["max(_col1)"]
+                                      Select Operator [SEL_82] (rows=348477374 width=88)
+                                        Output:["_col1"]
+                                        Group By Operator [GBY_81] (rows=348477374 width=88)
+                                          Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
+                                        <-Reducer 24 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_80]
+                                            PartitionCols:_col0
+                                            Group By Operator [GBY_79] (rows=696954748 width=88)
+                                              Output:["_col0","_col1"],aggregations:["sum(_col1)"],keys:_col0
+                                              Select Operator [SEL_77] (rows=696954748 width=88)
+                                                Output:["_col0","_col1"]
+                                                Merge Join Operator [MERGEJOIN_355] (rows=696954748 width=88)
+                                                  Conds:RS_74._col1=RS_75._col0(Inner),Output:["_col2","_col3","_col6"]
+                                                <-Map 28 [SIMPLE_EDGE]
+                                                  SHUFFLE [RS_75]
+                                                    PartitionCols:_col0
+                                                    Select Operator [SEL_70] (rows=80000000 width=860)
+                                                      Output:["_col0"]
+                                                      Filter Operator [FIL_331] (rows=80000000 width=860)
+                                                        predicate:c_customer_sk is not null
+                                                        TableScan [TS_68] (rows=80000000 width=860)
+                                                          default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk"]
+                                                <-Reducer 23 [SIMPLE_EDGE]
+                                                  SHUFFLE [RS_74]
+                                                    PartitionCols:_col1
+                                                    Merge Join Operator [MERGEJOIN_354] (rows=633595212 width=88)
+                                                      Conds:RS_71._col0=RS_72._col0(Inner),Output:["_col1","_col2","_col3"]
+                                                    <-Map 22 [SIMPLE_EDGE]
+                                                      SHUFFLE [RS_71]
+                                                        PartitionCols:_col0
+                                                        Select Operator [SEL_64] (rows=575995635 width=88)
+                                                          Output:["_col0","_col1","_col2","_col3"]
+                                                          Filter Operator [FIL_329] (rows=575995635 width=88)
+                                                            predicate:(ss_customer_sk is not null and ss_sold_date_sk is not null)
+                                                            TableScan [TS_62] (rows=575995635 width=88)
+                                                              default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_customer_sk","ss_quantity","ss_sales_price"]
+                                                    <-Map 27 [SIMPLE_EDGE]
+                                                      SHUFFLE [RS_72]
+                                                        PartitionCols:_col0
+                                                        Select Operator [SEL_67] (rows=36525 width=1119)
+                                                          Output:["_col0"]
+                                                          Filter Operator [FIL_330] (rows=36525 width=1119)
+                                                            predicate:((d_year) IN (1999, 2000, 2001, 2002) and d_date_sk is not null)
+                                                            TableScan [TS_65] (rows=73049 width=1119)
+                                                              default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
+                            <-Reducer 31 [CUSTOM_SIMPLE_EDGE]
+                              PARTITION_ONLY_SHUFFLE [RS_105]
+                                Group By Operator [GBY_101] (rows=316797606 width=88)
+                                  Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
+                                <-Reducer 30 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_100]
+                                    PartitionCols:_col0
+                                    Group By Operator [GBY_99] (rows=633595212 width=88)
+                                      Output:["_col0","_col1"],aggregations:["sum(_col1)"],keys:_col0
+                                      Select Operator [SEL_97] (rows=633595212 width=88)
+                                        Output:["_col0","_col1"]
+                                        Merge Join Operator [MERGEJOIN_356] (rows=633595212 width=88)
+                                          Conds:RS_94._col0=RS_95._col0(Inner),Output:["_col1","_col2","_col3"]
+                                        <-Map 29 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_94]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_90] (rows=575995635 width=88)
+                                              Output:["_col0","_col1","_col2"]
+                                              Filter Operator [FIL_332] (rows=575995635 width=88)
+                                                predicate:ss_customer_sk is not null
+                                                TableScan [TS_88] (rows=575995635 width=88)
+                                                  default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_customer_sk","ss_quantity","ss_sales_price"]
+                                        <-Map 32 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_95]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_93] (rows=80000000 width=860)
+                                              Output:["_col0"]
+                                              Filter Operator [FIL_333] (rows=80000000 width=860)
+                                                predicate:c_customer_sk is not null
+                                                TableScan [TS_91] (rows=80000000 width=860)
+                                                  default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk"]
                     <-Reducer 3 [SIMPLE_EDGE]
-                      SHUFFLE [RS_121]
+                      SHUFFLE [RS_115]
                         PartitionCols:_col1
-                        Merge Join Operator [MERGEJOIN_377] (rows=348467716 width=135)
-                          Conds:RS_118._col2=RS_119._col0(Inner),Output:["_col1","_col3","_col4"]
+                        Merge Join Operator [MERGEJOIN_365] (rows=348467716 width=135)
+                          Conds:RS_112._col2=RS_113._col0(Inner),Output:["_col1","_col3","_col4"]
                         <-Reducer 11 [SIMPLE_EDGE]
-                          SHUFFLE [RS_119]
+                          SHUFFLE [RS_113]
                             PartitionCols:_col0
                             Group By Operator [GBY_31] (rows=58079562 width=88)
                               Output:["_col0"],keys:_col1
@@ -586,7 +558,7 @@ Stage-0
                                 Output:["_col1"]
                                 Filter Operator [FIL_26] (rows=116159124 width=88)
                                   predicate:(_col3 > 4)
-                                  Select Operator [SEL_359] (rows=348477374 width=88)
+                                  Select Operator [SEL_347] (rows=348477374 width=88)
                                     Output:["_col0","_col3"]
                                     Group By Operator [GBY_25] (rows=348477374 width=88)
                                       Output:["_col0","_col1","_col2","_col3"],aggregations:["count(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2
@@ -597,28 +569,28 @@ Stage-0
                                           Output:["_col0","_col1","_col2","_col3"],aggregations:["count()"],keys:_col1, _col0, _col2
                                           Select Operator [SEL_21] (rows=696954748 width=88)
                                             Output:["_col0","_col1","_col2"]
-                                            Merge Join Operator [MERGEJOIN_363] (rows=696954748 width=88)
+                                            Merge Join Operator [MERGEJOIN_351] (rows=696954748 width=88)
                                               Conds:RS_18._col1=RS_19._col0(Inner),Output:["_col3","_col5","_col6"]
                                             <-Map 13 [SIMPLE_EDGE]
                                               SHUFFLE [RS_19]
                                                 PartitionCols:_col0
                                                 Select Operator [SEL_14] (rows=462000 width=1436)
                                                   Output:["_col0","_col1"]
-                                                  Filter Operator [FIL_337] (rows=462000 width=1436)
+                                                  Filter Operator [FIL_325] (rows=462000 width=1436)
                                                     predicate:i_item_sk is not null
                                                     TableScan [TS_12] (rows=462000 width=1436)
                                                       default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_desc"]
                                             <-Reducer 9 [SIMPLE_EDGE]
                                               SHUFFLE [RS_18]
                                                 PartitionCols:_col1
-                                                Merge Join Operator [MERGEJOIN_362] (rows=633595212 width=88)
+                                                Merge Join Operator [MERGEJOIN_350] (rows=633595212 width=88)
                                                   Conds:RS_15._col0=RS_16._col0(Inner),Output:["_col1","_col3"]
                                                 <-Map 12 [SIMPLE_EDGE]
                                                   SHUFFLE [RS_16]
                                                     PartitionCols:_col0
                                                     Select Operator [SEL_11] (rows=36525 width=1119)
                                                       Output:["_col0","_col1"]
-                                                      Filter Operator [FIL_336] (rows=36525 width=1119)
+                                                      Filter Operator [FIL_324] (rows=36525 width=1119)
                                                         predicate:((d_year) IN (1999, 2000, 2001, 2002) 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_date","d_year"]
@@ -627,30 +599,30 @@ Stage-0
                                                     PartitionCols:_col0
                                                     Select Operator [SEL_8] (rows=575995635 width=88)
                                                       Output:["_col0","_col1"]
-                                                      Filter Operator [FIL_335] (rows=575995635 width=88)
+                                                      Filter Operator [FIL_323] (rows=575995635 width=88)
                                                         predicate:(ss_sold_date_sk is not null and ss_item_sk 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"]
                         <-Reducer 2 [SIMPLE_EDGE]
-                          SHUFFLE [RS_118]
+                          SHUFFLE [RS_112]
                             PartitionCols:_col2
-                            Merge Join Operator [MERGEJOIN_361] (rows=316788826 width=135)
-                              Conds:RS_115._col0=RS_116._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
+                            Merge Join Operator [MERGEJOIN_349] (rows=316788826 width=135)
+                              Conds:RS_109._col0=RS_110._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
                             <-Map 1 [SIMPLE_EDGE]
-                              SHUFFLE [RS_115]
+                              SHUFFLE [RS_109]
                                 PartitionCols:_col0
                                 Select Operator [SEL_2] (rows=287989836 width=135)
                                   Output:["_col0","_col1","_col2","_col3","_col4"]
-                                  Filter Operator [FIL_333] (rows=287989836 width=135)
+                                  Filter Operator [FIL_321] (rows=287989836 width=135)
                                     predicate:(cs_item_sk is not null and cs_bill_customer_sk is not null and cs_sold_date_sk is not null)
                                     TableScan [TS_0] (rows=287989836 width=135)
                                       default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_item_sk","cs_quantity","cs_list_price"]
                             <-Map 7 [SIMPLE_EDGE]
-                              SHUFFLE [RS_116]
+                              SHUFFLE [RS_110]
                                 PartitionCols:_col0
                                 Select Operator [SEL_5] (rows=18262 width=1119)
                                   Output:["_col0"]
-                                  Filter Operator [FIL_334] (rows=18262 width=1119)
+                                  Filter Operator [FIL_322] (rows=18262 width=1119)
                                     predicate:((d_year = 1999) and (d_moy = 1) 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","d_moy"]