This is an automated email from the ASF dual-hosted git repository.

jcamacho pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 828352d  HIVE-24347: Fix failing test: 
TestMiniLlapLocalCliDriver.testCliDriver[cardinality_preserving_join_opt2] 
(Jesus Camacho Rodriguez, reviewed by Krisztian Kasa)
828352d is described below

commit 828352d25c252036230dbccc66cfc1b8bb0d4478
Author: Jesús Camacho Rodríguez <jcama...@apache.org>
AuthorDate: Mon Nov 2 11:55:39 2020 -0800

    HIVE-24347: Fix failing test: 
TestMiniLlapLocalCliDriver.testCliDriver[cardinality_preserving_join_opt2] 
(Jesus Camacho Rodriguez, reviewed by Krisztian Kasa)
    
    Closes apache/hive#1643
---
 .../test/queries/clientpositive/cardinality_preserving_join_opt2.q  | 3 +--
 .../clientpositive/llap/cardinality_preserving_join_opt2.q.out      | 6 +++---
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git 
a/ql/src/test/queries/clientpositive/cardinality_preserving_join_opt2.q 
b/ql/src/test/queries/clientpositive/cardinality_preserving_join_opt2.q
index ac8de16..c56822e 100644
--- a/ql/src/test/queries/clientpositive/cardinality_preserving_join_opt2.q
+++ b/ql/src/test/queries/clientpositive/cardinality_preserving_join_opt2.q
@@ -1,4 +1,3 @@
---! qt:disabled:HIVE-24347
 set hive.support.concurrency=true;
 set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
 set hive.strict.checks.cartesian.product=false;
@@ -90,7 +89,7 @@ and c.c3 = ca.c1
 and cm.c1 = m.c1
 and m.c5 = r.c1
 and m.c6 = 1
-and (cm.c5 is null or cm.c5 > date_format(current_date,'yyyy-MM-01'));
+and (cm.c5 is null or cm.c5 > date_format(cast('2020-10-30' as 
date),'yyyy-MM-01'));
 
 drop table f_tab_e10;
 drop table f2_tab_e10;
diff --git 
a/ql/src/test/results/clientpositive/llap/cardinality_preserving_join_opt2.q.out
 
b/ql/src/test/results/clientpositive/llap/cardinality_preserving_join_opt2.q.out
index bae07a0..35b9af2 100644
--- 
a/ql/src/test/results/clientpositive/llap/cardinality_preserving_join_opt2.q.out
+++ 
b/ql/src/test/results/clientpositive/llap/cardinality_preserving_join_opt2.q.out
@@ -188,7 +188,7 @@ and c.c3 = ca.c1
 and cm.c1 = m.c1
 and m.c5 = r.c1
 and m.c6 = 1
-and (cm.c5 is null or cm.c5 > date_format(current_date,'yyyy-MM-01'))
+and (cm.c5 is null or cm.c5 > date_format(cast('2020-10-30' as 
date),'yyyy-MM-01'))
 PREHOOK: type: QUERY
 PREHOOK: Input: mydb_e10@d1_tab_e10
 PREHOOK: Input: mydb_e10@d2_tab_e10
@@ -208,7 +208,7 @@ and c.c3 = ca.c1
 and cm.c1 = m.c1
 and m.c5 = r.c1
 and m.c6 = 1
-and (cm.c5 is null or cm.c5 > date_format(current_date,'yyyy-MM-01'))
+and (cm.c5 is null or cm.c5 > date_format(cast('2020-10-30' as 
date),'yyyy-MM-01'))
 POSTHOOK: type: QUERY
 POSTHOOK: Input: mydb_e10@d1_tab_e10
 POSTHOOK: Input: mydb_e10@d2_tab_e10
@@ -239,7 +239,7 @@ HiveProject(c1=[$11], c5=[$13], c6=[$14], c3=[$1], c4=[$2], 
c51=[$3], c61=[$4],
             HiveFilter(condition=[IS NOT NULL($0)])
               HiveTableScan(table=[[mydb_e10, d4_tab_e10]], table:alias=[r])
         HiveProject(c1=[$0], c2=[$1], c4=[$3], c5=[$4])
-          HiveFilter(condition=[AND(OR(IS NULL($4), >($4, 2020-11-01)), IS NOT 
NULL($1), IS NOT NULL($0))])
+          HiveFilter(condition=[AND(OR(IS NULL($4), >($4, 2020-10-01)), IS NOT 
NULL($1), IS NOT NULL($0))])
             HiveTableScan(table=[[mydb_e10, f2_tab_e10]], table:alias=[cm])
 
 PREHOOK: query: drop table f_tab_e10

Reply via email to