From 796d51ae2e0bee838611b8a25f0b6ecbe7ff7a4f Mon Sep 17 00:00:00 2001 From: minghong Date: Tue, 7 Feb 2023 12:45:27 +0800 Subject: [PATCH] [enhance](fuzzy)set rewriteOrToInPredicateThreshold=2/10000 in fuzzy mode (#16456) * set rewriteOrToInPredicateThreshold=2/10000 in fuzzy mod * fmt --- .../src/main/java/org/apache/doris/qe/SessionVariable.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 d151d620ff..60b1044ec5 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 @@ -703,8 +703,12 @@ public class SessionVariable implements Serializable, Writable { this.partitionedHashJoinRowsThreshold = random.nextBoolean() ? 8 : 1048576; this.partitionedHashAggRowsThreshold = random.nextBoolean() ? 8 : 1048576; this.enableShareHashTableForBroadcastJoin = random.nextBoolean(); - this.rewriteOrToInPredicateThreshold = random.nextInt(100) + 2; int randomInt = random.nextInt(4); + if (randomInt % 2 == 0) { + this.rewriteOrToInPredicateThreshold = 100000; + } else { + this.rewriteOrToInPredicateThreshold = 2; + } switch (randomInt) { case 0: this.externalSortBytesThreshold = 0;