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:17 UTC

[12/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/query15.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query15.q.out b/ql/src/test/results/clientpositive/perf/query15.q.out
index 064333f..adec728 100644
--- a/ql/src/test/results/clientpositive/perf/query15.q.out
+++ b/ql/src/test/results/clientpositive/perf/query15.q.out
@@ -5,81 +5,81 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 7 (SIMPLE_EDGE)
-Reducer 3 <- Map 8 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 4 <- Map 9 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 6 (SIMPLE_EDGE)
+Reducer 3 <- Reducer 2 (SIMPLE_EDGE), Reducer 8 (SIMPLE_EDGE)
+Reducer 4 <- Reducer 3 (SIMPLE_EDGE)
 Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
-Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
+Reducer 8 <- Map 7 (SIMPLE_EDGE), Map 9 (SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
     limit:100
     Stage-1
-      Reducer 6
+      Reducer 5
       File Output Operator [FS_31]
         Limit [LIM_30] (rows=100 width=135)
           Number of rows:100
           Select Operator [SEL_29] (rows=174233858 width=135)
             Output:["_col0","_col1"]
-          <-Reducer 5 [SIMPLE_EDGE]
+          <-Reducer 4 [SIMPLE_EDGE]
             SHUFFLE [RS_28]
               Group By Operator [GBY_26] (rows=174233858 width=135)
                 Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
-              <-Reducer 4 [SIMPLE_EDGE]
+              <-Reducer 3 [SIMPLE_EDGE]
                 SHUFFLE [RS_25]
                   PartitionCols:_col0
                   Group By Operator [GBY_24] (rows=348467716 width=135)
-                    Output:["_col0","_col1"],aggregations:["sum(_col2)"],keys:_col7
-                    Merge Join Operator [MERGEJOIN_47] (rows=348467716 width=135)
-                      Conds:RS_20._col0=RS_21._col0(Inner),Output:["_col2","_col7"]
-                    <-Map 9 [SIMPLE_EDGE]
-                      SHUFFLE [RS_21]
-                        PartitionCols:_col0
-                        Select Operator [SEL_19] (rows=18262 width=1119)
-                          Output:["_col0"]
-                          Filter Operator [FIL_44] (rows=18262 width=1119)
-                            predicate:((d_qoy = 2) and (d_year = 2000) and d_date_sk is not null)
-                            TableScan [TS_17] (rows=73049 width=1119)
-                              default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_qoy"]
-                    <-Reducer 3 [SIMPLE_EDGE]
-                      SHUFFLE [RS_20]
-                        PartitionCols:_col0
-                        Select Operator [SEL_16] (rows=316788826 width=135)
-                          Output:["_col0","_col2","_col7"]
-                          Filter Operator [FIL_15] (rows=316788826 width=135)
-                            predicate:((substr(_col4, 1, 5)) IN ('85669', '86197', '88274', '83405', '86475', '85392', '85460', '80348', '81792') or (_col3) IN ('CA', 'WA', 'GA') or (_col7 > 500))
-                            Merge Join Operator [MERGEJOIN_46] (rows=316788826 width=135)
-                              Conds:RS_12._col0=RS_13._col1(Inner),Output:["_col3","_col4","_col5","_col7"]
-                            <-Map 8 [SIMPLE_EDGE]
-                              SHUFFLE [RS_13]
+                    Output:["_col0","_col1"],aggregations:["sum(_col7)"],keys:_col4
+                    Select Operator [SEL_23] (rows=348467716 width=135)
+                      Output:["_col4","_col7"]
+                      Filter Operator [FIL_22] (rows=348467716 width=135)
+                        predicate:((substr(_col4, 1, 5)) IN ('85669', '86197', '88274', '83405', '86475', '85392', '85460', '80348', '81792') or (_col3) IN ('CA', 'WA', 'GA') or (_col7 > 500))
+                        Merge Join Operator [MERGEJOIN_46] (rows=348467716 width=135)
+                          Conds:RS_19._col0=RS_20._col1(Inner),Output:["_col3","_col4","_col7"]
+                        <-Reducer 2 [SIMPLE_EDGE]
+                          SHUFFLE [RS_19]
+                            PartitionCols:_col0
+                            Merge Join Operator [MERGEJOIN_44] (rows=88000001 width=860)
+                              Conds:RS_16._col1=RS_17._col0(Inner),Output:["_col0","_col3","_col4"]
+                            <-Map 1 [SIMPLE_EDGE]
+                              SHUFFLE [RS_16]
                                 PartitionCols:_col1
+                                Select Operator [SEL_2] (rows=80000000 width=860)
+                                  Output:["_col0","_col1"]
+                                  Filter Operator [FIL_40] (rows=80000000 width=860)
+                                    predicate:(c_customer_sk is not null and c_current_addr_sk is not null)
+                                    TableScan [TS_0] (rows=80000000 width=860)
+                                      default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_current_addr_sk"]
+                            <-Map 6 [SIMPLE_EDGE]
+                              SHUFFLE [RS_17]
+                                PartitionCols:_col0
+                                Select Operator [SEL_5] (rows=40000000 width=1014)
+                                  Output:["_col0","_col1","_col2"]
+                                  Filter Operator [FIL_41] (rows=40000000 width=1014)
+                                    predicate:ca_address_sk is not null
+                                    TableScan [TS_3] (rows=40000000 width=1014)
+                                      default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state","ca_zip"]
+                        <-Reducer 8 [SIMPLE_EDGE]
+                          SHUFFLE [RS_20]
+                            PartitionCols:_col1
+                            Merge Join Operator [MERGEJOIN_45] (rows=316788826 width=135)
+                              Conds:RS_12._col0=RS_13._col0(Inner),Output:["_col1","_col2"]
+                            <-Map 7 [SIMPLE_EDGE]
+                              SHUFFLE [RS_12]
+                                PartitionCols:_col0
                                 Select Operator [SEL_8] (rows=287989836 width=135)
                                   Output:["_col0","_col1","_col2"]
-                                  Filter Operator [FIL_43] (rows=287989836 width=135)
+                                  Filter Operator [FIL_42] (rows=287989836 width=135)
                                     predicate:(cs_bill_customer_sk is not null and cs_sold_date_sk is not null)
                                     TableScan [TS_6] (rows=287989836 width=135)
                                       default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_sales_price"]
-                            <-Reducer 2 [SIMPLE_EDGE]
-                              SHUFFLE [RS_12]
+                            <-Map 9 [SIMPLE_EDGE]
+                              SHUFFLE [RS_13]
                                 PartitionCols:_col0
-                                Merge Join Operator [MERGEJOIN_45] (rows=88000001 width=860)
-                                  Conds:RS_9._col1=RS_10._col0(Inner),Output:["_col0","_col3","_col4"]
-                                <-Map 1 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_9]
-                                    PartitionCols:_col1
-                                    Select Operator [SEL_2] (rows=80000000 width=860)
-                                      Output:["_col0","_col1"]
-                                      Filter Operator [FIL_41] (rows=80000000 width=860)
-                                        predicate:(c_customer_sk is not null and c_current_addr_sk is not null)
-                                        TableScan [TS_0] (rows=80000000 width=860)
-                                          default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_current_addr_sk"]
-                                <-Map 7 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_10]
-                                    PartitionCols:_col0
-                                    Select Operator [SEL_5] (rows=40000000 width=1014)
-                                      Output:["_col0","_col1","_col2"]
-                                      Filter Operator [FIL_42] (rows=40000000 width=1014)
-                                        predicate:ca_address_sk is not null
-                                        TableScan [TS_3] (rows=40000000 width=1014)
-                                          default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state","ca_zip"]
+                                Select Operator [SEL_11] (rows=18262 width=1119)
+                                  Output:["_col0"]
+                                  Filter Operator [FIL_43] (rows=18262 width=1119)
+                                    predicate:((d_qoy = 2) and (d_year = 2000) 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","d_qoy"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/be59e024/ql/src/test/results/clientpositive/perf/query16.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query16.q.out b/ql/src/test/results/clientpositive/perf/query16.q.out
index 3bc9ca0..05b1871 100644
--- a/ql/src/test/results/clientpositive/perf/query16.q.out
+++ b/ql/src/test/results/clientpositive/perf/query16.q.out
@@ -165,17 +165,17 @@ Stage-0
                               <-Reducer 13 [SIMPLE_EDGE]
                                 SHUFFLE [RS_58]
                                   PartitionCols:_col0
-                                  Select Operator [SEL_18] (rows=7199720 width=106)
+                                  Select Operator [SEL_18] (rows=14399440 width=106)
                                     Output:["_col0","_col1"]
-                                    Group By Operator [GBY_17] (rows=7199720 width=106)
+                                    Group By Operator [GBY_17] (rows=14399440 width=106)
                                       Output:["_col0"],keys:KEY._col0
                                     <-Map 12 [SIMPLE_EDGE]
                                       SHUFFLE [RS_16]
                                         PartitionCols:_col0
-                                        Group By Operator [GBY_15] (rows=14399440 width=106)
+                                        Group By Operator [GBY_15] (rows=28798881 width=106)
                                           Output:["_col0"],keys:cr_order_number
-                                          Filter Operator [FIL_103] (rows=14399440 width=106)
-                                            predicate:(cr_order_number = cr_order_number)
+                                          Filter Operator [FIL_103] (rows=28798881 width=106)
+                                            predicate:cr_order_number is not null
                                             TableScan [TS_12] (rows=28798881 width=106)
                                               default@catalog_returns,cr1,Tbl:COMPLETE,Col:NONE,Output:["cr_order_number"]
                               <-Reducer 4 [SIMPLE_EDGE]
@@ -226,7 +226,7 @@ Stage-0
                                               Select Operator [SEL_5] (rows=8116 width=1119)
                                                 Output:["_col0"]
                                                 Filter Operator [FIL_100] (rows=8116 width=1119)
-                                                  predicate:(d_date BETWEEN '2001-4-01' AND 2001-05-31 01:00:00.0 and d_date_sk is not null)
+                                                  predicate:(CAST( d_date AS TIMESTAMP) BETWEEN 2001-04-01 00:00:00.0 AND 2001-05-31 01:00:00.0 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_date"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/be59e024/ql/src/test/results/clientpositive/perf/query19.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query19.q.out b/ql/src/test/results/clientpositive/perf/query19.q.out
index 77f7576..cebfc3a 100644
--- a/ql/src/test/results/clientpositive/perf/query19.q.out
+++ b/ql/src/test/results/clientpositive/perf/query19.q.out
@@ -5,115 +5,113 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Reducer 10 <- Map 13 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 6 (SIMPLE_EDGE)
+Reducer 10 <- Map 12 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 7 (SIMPLE_EDGE)
 Reducer 3 <- Reducer 10 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 4 <- Reducer 3 (SIMPLE_EDGE)
+Reducer 4 <- Map 13 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
 Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
-Reducer 8 <- Map 11 (SIMPLE_EDGE), Map 7 (SIMPLE_EDGE)
-Reducer 9 <- Map 12 (SIMPLE_EDGE), Reducer 8 (SIMPLE_EDGE)
+Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
+Reducer 9 <- Map 11 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
     limit:100
     Stage-1
-      Reducer 5
-      File Output Operator [FS_45]
-        Limit [LIM_44] (rows=100 width=88)
+      Reducer 6
+      File Output Operator [FS_44]
+        Limit [LIM_43] (rows=100 width=88)
           Number of rows:100
-          Select Operator [SEL_43] (rows=421657640 width=88)
+          Select Operator [SEL_42] (rows=421657640 width=88)
             Output:["_col0","_col1","_col2","_col3","_col4"]
-          <-Reducer 4 [SIMPLE_EDGE]
-            SHUFFLE [RS_42]
-              Select Operator [SEL_40] (rows=421657640 width=88)
+          <-Reducer 5 [SIMPLE_EDGE]
+            SHUFFLE [RS_41]
+              Select Operator [SEL_39] (rows=421657640 width=88)
                 Output:["_col0","_col1","_col2","_col3","_col4"]
-                Group By Operator [GBY_39] (rows=421657640 width=88)
+                Group By Operator [GBY_38] (rows=421657640 width=88)
                   Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3
-                <-Reducer 3 [SIMPLE_EDGE]
-                  SHUFFLE [RS_38]
+                <-Reducer 4 [SIMPLE_EDGE]
+                  SHUFFLE [RS_37]
                     PartitionCols:_col0, _col1, _col2, _col3
-                    Group By Operator [GBY_37] (rows=843315281 width=88)
-                      Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["sum(_col7)"],keys:_col10, _col9, _col11, _col12
-                      Select Operator [SEL_36] (rows=843315281 width=88)
-                        Output:["_col7","_col9","_col10","_col11","_col12"]
-                        Filter Operator [FIL_35] (rows=843315281 width=88)
-                          predicate:(substr(_col17, 1, 5) <> substr(_col19, 1, 5))
-                          Select Operator [SEL_34] (rows=843315281 width=88)
-                            Output:["_col7","_col9","_col10","_col11","_col12","_col17","_col19"]
-                            Merge Join Operator [MERGEJOIN_73] (rows=843315281 width=88)
-                              Conds:RS_31._col0=RS_32._col2(Inner),Output:["_col3","_col8","_col13","_col14","_col15","_col16","_col19"]
-                            <-Reducer 10 [SIMPLE_EDGE]
-                              SHUFFLE [RS_32]
-                                PartitionCols:_col2
-                                Merge Join Operator [MERGEJOIN_72] (rows=766650239 width=88)
-                                  Conds:RS_24._col3=RS_25._col0(Inner),Output:["_col2","_col4","_col9","_col10","_col11","_col12","_col15"]
-                                <-Map 13 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_25]
-                                    PartitionCols:_col0
-                                    Select Operator [SEL_17] (rows=1704 width=1910)
-                                      Output:["_col0","_col1"]
-                                      Filter Operator [FIL_68] (rows=1704 width=1910)
-                                        predicate:s_store_sk is not null
-                                        TableScan [TS_15] (rows=1704 width=1910)
-                                          default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_zip"]
-                                <-Reducer 9 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_24]
-                                    PartitionCols:_col3
-                                    Merge Join Operator [MERGEJOIN_71] (rows=696954748 width=88)
-                                      Conds:RS_21._col1=RS_22._col0(Inner),Output:["_col2","_col3","_col4","_col9","_col10","_col11","_col12"]
-                                    <-Map 12 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_22]
-                                        PartitionCols:_col0
-                                        Select Operator [SEL_14] (rows=231000 width=1436)
-                                          Output:["_col0","_col1","_col2","_col3","_col4"]
-                                          Filter Operator [FIL_67] (rows=231000 width=1436)
-                                            predicate:((i_manager_id = 7) and 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_brand_id","i_brand","i_manufact_id","i_manufact","i_manager_id"]
-                                    <-Reducer 8 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_21]
-                                        PartitionCols:_col1
-                                        Merge Join Operator [MERGEJOIN_70] (rows=633595212 width=88)
-                                          Conds:RS_18._col0=RS_19._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
-                                        <-Map 11 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_19]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_11] (rows=18262 width=1119)
-                                              Output:["_col0"]
-                                              Filter Operator [FIL_66] (rows=18262 width=1119)
-                                                predicate:((d_moy = 11) and (d_year = 1999) 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","d_moy"]
-                                        <-Map 7 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_18]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_8] (rows=575995635 width=88)
-                                              Output:["_col0","_col1","_col2","_col3","_col4"]
-                                              Filter Operator [FIL_65] (rows=575995635 width=88)
-                                                predicate:(ss_sold_date_sk is not null and ss_item_sk is not null and ss_customer_sk is not null and ss_store_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","ss_customer_sk","ss_store_sk","ss_ext_sales_price"]
-                            <-Reducer 2 [SIMPLE_EDGE]
-                              SHUFFLE [RS_31]
-                                PartitionCols:_col0
-                                Merge Join Operator [MERGEJOIN_69] (rows=88000001 width=860)
-                                  Conds:RS_28._col1=RS_29._col0(Inner),Output:["_col0","_col3"]
-                                <-Map 1 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_28]
-                                    PartitionCols:_col1
-                                    Select Operator [SEL_2] (rows=80000000 width=860)
-                                      Output:["_col0","_col1"]
-                                      Filter Operator [FIL_63] (rows=80000000 width=860)
-                                        predicate:(c_customer_sk is not null and c_current_addr_sk is not null)
-                                        TableScan [TS_0] (rows=80000000 width=860)
-                                          default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_current_addr_sk"]
-                                <-Map 6 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_29]
-                                    PartitionCols:_col0
-                                    Select Operator [SEL_5] (rows=40000000 width=1014)
-                                      Output:["_col0","_col1"]
-                                      Filter Operator [FIL_64] (rows=40000000 width=1014)
-                                        predicate:ca_address_sk is not null
-                                        TableScan [TS_3] (rows=40000000 width=1014)
-                                          default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_zip"]
+                    Group By Operator [GBY_36] (rows=843315281 width=88)
+                      Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["sum(_col8)"],keys:_col14, _col13, _col15, _col16
+                      Select Operator [SEL_35] (rows=843315281 width=88)
+                        Output:["_col8","_col13","_col14","_col15","_col16"]
+                        Filter Operator [FIL_34] (rows=843315281 width=88)
+                          predicate:(substr(_col3, 1, 5) <> substr(_col19, 1, 5))
+                          Merge Join Operator [MERGEJOIN_73] (rows=843315281 width=88)
+                            Conds:RS_31._col7=RS_32._col0(Inner),Output:["_col3","_col8","_col13","_col14","_col15","_col16","_col19"]
+                          <-Map 13 [SIMPLE_EDGE]
+                            SHUFFLE [RS_32]
+                              PartitionCols:_col0
+                              Select Operator [SEL_24] (rows=1704 width=1910)
+                                Output:["_col0","_col1"]
+                                Filter Operator [FIL_68] (rows=1704 width=1910)
+                                  predicate:s_store_sk is not null
+                                  TableScan [TS_22] (rows=1704 width=1910)
+                                    default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_zip"]
+                          <-Reducer 3 [SIMPLE_EDGE]
+                            SHUFFLE [RS_31]
+                              PartitionCols:_col7
+                              Merge Join Operator [MERGEJOIN_72] (rows=766650239 width=88)
+                                Conds:RS_28._col0=RS_29._col2(Inner),Output:["_col3","_col7","_col8","_col13","_col14","_col15","_col16"]
+                              <-Reducer 10 [SIMPLE_EDGE]
+                                SHUFFLE [RS_29]
+                                  PartitionCols:_col2
+                                  Merge Join Operator [MERGEJOIN_71] (rows=696954748 width=88)
+                                    Conds:RS_18._col1=RS_19._col0(Inner),Output:["_col2","_col3","_col4","_col9","_col10","_col11","_col12"]
+                                  <-Map 12 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_19]
+                                      PartitionCols:_col0
+                                      Select Operator [SEL_14] (rows=231000 width=1436)
+                                        Output:["_col0","_col1","_col2","_col3","_col4"]
+                                        Filter Operator [FIL_67] (rows=231000 width=1436)
+                                          predicate:((i_manager_id = 7) and 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_brand_id","i_brand","i_manufact_id","i_manufact","i_manager_id"]
+                                  <-Reducer 9 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_18]
+                                      PartitionCols:_col1
+                                      Merge Join Operator [MERGEJOIN_70] (rows=633595212 width=88)
+                                        Conds:RS_15._col0=RS_16._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
+                                      <-Map 11 [SIMPLE_EDGE]
+                                        SHUFFLE [RS_16]
+                                          PartitionCols:_col0
+                                          Select Operator [SEL_11] (rows=18262 width=1119)
+                                            Output:["_col0"]
+                                            Filter Operator [FIL_66] (rows=18262 width=1119)
+                                              predicate:((d_moy = 11) and (d_year = 1999) 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","d_moy"]
+                                      <-Map 8 [SIMPLE_EDGE]
+                                        SHUFFLE [RS_15]
+                                          PartitionCols:_col0
+                                          Select Operator [SEL_8] (rows=575995635 width=88)
+                                            Output:["_col0","_col1","_col2","_col3","_col4"]
+                                            Filter Operator [FIL_65] (rows=575995635 width=88)
+                                              predicate:(ss_sold_date_sk is not null and ss_item_sk is not null and ss_customer_sk is not null and ss_store_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","ss_customer_sk","ss_store_sk","ss_ext_sales_price"]
+                              <-Reducer 2 [SIMPLE_EDGE]
+                                SHUFFLE [RS_28]
+                                  PartitionCols:_col0
+                                  Merge Join Operator [MERGEJOIN_69] (rows=88000001 width=860)
+                                    Conds:RS_25._col1=RS_26._col0(Inner),Output:["_col0","_col3"]
+                                  <-Map 1 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_25]
+                                      PartitionCols:_col1
+                                      Select Operator [SEL_2] (rows=80000000 width=860)
+                                        Output:["_col0","_col1"]
+                                        Filter Operator [FIL_63] (rows=80000000 width=860)
+                                          predicate:(c_customer_sk is not null and c_current_addr_sk is not null)
+                                          TableScan [TS_0] (rows=80000000 width=860)
+                                            default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_current_addr_sk"]
+                                  <-Map 7 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_26]
+                                      PartitionCols:_col0
+                                      Select Operator [SEL_5] (rows=40000000 width=1014)
+                                        Output:["_col0","_col1"]
+                                        Filter Operator [FIL_64] (rows=40000000 width=1014)
+                                          predicate:ca_address_sk is not null
+                                          TableScan [TS_3] (rows=40000000 width=1014)
+                                            default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_zip"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/be59e024/ql/src/test/results/clientpositive/perf/query21.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query21.q.out b/ql/src/test/results/clientpositive/perf/query21.q.out
index 67a49e2..292fc4f 100644
--- a/ql/src/test/results/clientpositive/perf/query21.q.out
+++ b/ql/src/test/results/clientpositive/perf/query21.q.out
@@ -133,7 +133,7 @@ Stage-0
                                     Select Operator [SEL_5] (rows=8116 width=1119)
                                       Output:["_col0","_col1"]
                                       Filter Operator [FIL_42] (rows=8116 width=1119)
-                                        predicate:(d_date BETWEEN 1998-03-08 23:00:00.0 AND 1998-05-08 00:00:00.0 and d_date_sk is not null)
+                                        predicate:(CAST( d_date AS TIMESTAMP) BETWEEN 1998-03-08 23:00:00.0 AND 1998-05-08 00:00:00.0 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_date"]