[followup](branch-2.1) Fuzzy parallel_prepare_threshold (#40793)
## Proposed changes Issue Number: close #xxx <!--Describe your changes.-->
This commit is contained in:
@ -1046,7 +1046,7 @@ public class SessionVariable implements Serializable, Writable {
|
||||
@VariableMgr.VarAttr(name = AUTO_BROADCAST_JOIN_THRESHOLD)
|
||||
public double autoBroadcastJoinThreshold = 0.8;
|
||||
|
||||
@VariableMgr.VarAttr(name = PARALLEL_PREPARE_THRESHOLD)
|
||||
@VariableMgr.VarAttr(name = PARALLEL_PREPARE_THRESHOLD, fuzzy = true)
|
||||
public int parallelPrepareThreshold = 32;
|
||||
|
||||
@VariableMgr.VarAttr(name = ENABLE_COST_BASED_JOIN_REORDER)
|
||||
@ -2086,6 +2086,7 @@ public class SessionVariable implements Serializable, Writable {
|
||||
Random random = new SecureRandom();
|
||||
this.parallelExecInstanceNum = random.nextInt(8) + 1;
|
||||
this.parallelPipelineTaskNum = random.nextInt(8);
|
||||
this.parallelPrepareThreshold = random.nextInt(32) + 1;
|
||||
this.enableCommonExprPushdown = random.nextBoolean();
|
||||
this.enableLocalExchange = random.nextBoolean();
|
||||
// This will cause be dead loop, disable it first
|
||||
|
||||
Reference in New Issue
Block a user