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

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


The following commit(s) were added to refs/heads/master by this push:
     new 9c3c9db49b [enhancement](fuzzy test) support fuzzy test of 
RewriteOrToInPredicateThreshold #15469
9c3c9db49b is described below

commit 9c3c9db49b335fc150d1fcc7ec1048b26e90702c
Author: Henry2SS <[email protected]>
AuthorDate: Fri Dec 30 22:59:59 2022 +0800

    [enhancement](fuzzy test) support fuzzy test of 
RewriteOrToInPredicateThreshold #15469
    
    Co-authored-by: wuhangze <[email protected]>
---
 fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java | 1 +
 regression-test/suites/performance_p0/redundant_conjuncts.groovy  | 5 ++---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java 
b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
index a31a7a7d07..813a47e6c0 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
@@ -669,6 +669,7 @@ public class SessionVariable implements Serializable, 
Writable {
         this.disableStreamPreaggregations = random.nextBoolean();
         this.partitionedHashJoinRowsThreshold = random.nextBoolean() ? 8 : 
1048576;
         this.enableShareHashTableForBroadcastJoin = random.nextBoolean();
+        this.rewriteOrToInPredicateThreshold = random.nextInt(100) + 2;
     }
 
     /**
diff --git a/regression-test/suites/performance_p0/redundant_conjuncts.groovy 
b/regression-test/suites/performance_p0/redundant_conjuncts.groovy
index ef0434aa07..86035612c3 100644
--- a/regression-test/suites/performance_p0/redundant_conjuncts.groovy
+++ b/regression-test/suites/performance_p0/redundant_conjuncts.groovy
@@ -32,11 +32,10 @@ suite("redundant_conjuncts") {
     """
     
     qt_redundant_conjuncts """
-    EXPLAIN SELECT v1 FROM redundant_conjuncts WHERE k1 = 1 AND k1 = 1;
+    EXPLAIN SELECT /*+SET_VAR(REWRITE_OR_TO_IN_PREDICATE_THRESHOLD=2) */ v1 
FROM redundant_conjuncts WHERE k1 = 1 AND k1 = 1;
     """
 
-    sql "set REWRITE_OR_TO_IN_PREDICATE_THRESHOLD = 100"
     qt_redundant_conjuncts_gnerated_by_extract_common_filter """
-    EXPLAIN SELECT v1 FROM redundant_conjuncts WHERE k1 = 1 OR k1 = 2;
+    EXPLAIN SELECT /*+SET_VAR(REWRITE_OR_TO_IN_PREDICATE_THRESHOLD=100) */ v1 
FROM redundant_conjuncts WHERE k1 = 1 OR k1 = 2;
     """
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to