You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by za...@apache.org on 2022/07/06 09:36:24 UTC

[hive] branch master updated: HIVE-26349: TestOperatorCmp/TestReOptimization fail silently due to incompatible configuration (Stamatis Zampetakis, reviewed by Peter Vary, Ayush Saxena)

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

zabetak 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 2f619988f69 HIVE-26349: TestOperatorCmp/TestReOptimization fail silently due to incompatible configuration (Stamatis Zampetakis, reviewed by Peter Vary, Ayush Saxena)
2f619988f69 is described below

commit 2f619988f69a569bfcdc2bef5d35a9ecabb2ef13
Author: Stamatis Zampetakis <za...@gmail.com>
AuthorDate: Wed Jun 22 14:19:30 2022 +0200

    HIVE-26349: TestOperatorCmp/TestReOptimization fail silently due to incompatible configuration (Stamatis Zampetakis, reviewed by Peter Vary, Ayush Saxena)
    
    Closes #3398
---
 ql/src/test/org/apache/hadoop/hive/ql/plan/mapping/TestOperatorCmp.java  | 1 +
 .../test/org/apache/hadoop/hive/ql/plan/mapping/TestReOptimization.java  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/ql/src/test/org/apache/hadoop/hive/ql/plan/mapping/TestOperatorCmp.java b/ql/src/test/org/apache/hadoop/hive/ql/plan/mapping/TestOperatorCmp.java
index 60241a15ff7..e5fcc3a0d76 100644
--- a/ql/src/test/org/apache/hadoop/hive/ql/plan/mapping/TestOperatorCmp.java
+++ b/ql/src/test/org/apache/hadoop/hive/ql/plan/mapping/TestOperatorCmp.java
@@ -194,6 +194,7 @@ public class TestOperatorCmp {
     conf.setBoolVar(ConfVars.HIVE_QUERY_REEXECUTION_ENABLED, true);
     conf.setBoolVar(ConfVars.HIVE_VECTORIZATION_ENABLED, false);
     conf.setBoolVar(ConfVars.HIVE_QUERY_REEXECUTION_ALWAYS_COLLECT_OPERATOR_STATS, true);
+    conf.setVar(ConfVars.HIVE_CBO_FALLBACK_STRATEGY, "NEVER");
     conf.setVar(ConfVars.HIVE_QUERY_REEXECUTION_STRATEGIES, "reoptimize");
     conf.set("zzz", "1");
     conf.set("reexec.overlay.zzz", "2000");
diff --git a/ql/src/test/org/apache/hadoop/hive/ql/plan/mapping/TestReOptimization.java b/ql/src/test/org/apache/hadoop/hive/ql/plan/mapping/TestReOptimization.java
index e283ddda81a..b67385737ef 100644
--- a/ql/src/test/org/apache/hadoop/hive/ql/plan/mapping/TestReOptimization.java
+++ b/ql/src/test/org/apache/hadoop/hive/ql/plan/mapping/TestReOptimization.java
@@ -294,6 +294,7 @@ public class TestReOptimization {
 
     conf.setBoolVar(ConfVars.HIVE_QUERY_REEXECUTION_ENABLED, true);
     conf.setBoolVar(ConfVars.HIVE_VECTORIZATION_ENABLED, false);
+    conf.setVar(ConfVars.HIVE_CBO_FALLBACK_STRATEGY, "NEVER");
     conf.setVar(ConfVars.HIVE_QUERY_REEXECUTION_STRATEGIES, strategies);
     conf.setBoolVar(ConfVars.HIVE_EXPLAIN_USER, true);
     conf.set("zzz", "1");