[enhance](fuzzy)set rewriteOrToInPredicateThreshold=2/10000 in fuzzy mode (#16456)

* set rewriteOrToInPredicateThreshold=2/10000 in fuzzy mod

* fmt
This commit is contained in:
minghong
2023-02-07 12:45:27 +08:00
committed by GitHub
parent d390e63a03
commit 796d51ae2e

View File

@ -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;