LiBinfeng-01 commented on code in PR #20716:
URL: https://github.com/apache/doris/pull/20716#discussion_r1268870852


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/cost/CostModelV1.java:
##########
@@ -65,7 +65,16 @@ class CostModelV1 extends PlanVisitor<Cost, PlanContext> {
     // the penalty factor is no more than BROADCAST_JOIN_SKEW_PENALTY_LIMIT
     static final double BROADCAST_JOIN_SKEW_RATIO = 30.0;
     static final double BROADCAST_JOIN_SKEW_PENALTY_LIMIT = 2.0;
-    private int beNumber = Math.max(1, 
ConnectContext.get().getEnv().getClusterInfo().getBackendsNumber(true));
+    private int beNumber = 1;
+
+    public CostModelV1() {
+        if (ConnectContext.get().getSessionVariable().isPlayNereidsDump()) {
+            beNumber = ConnectContext.get().getSessionVariable().getBeNumber();
+        } else {
+            beNumber = Math.max(1, 
ConnectContext.get().getEnv().getClusterInfo().getBackendsNumber(true));
+            ConnectContext.get().getSessionVariable().setBeNumber(beNumber);

Review Comment:
   get



##########
minidump/nereids_ut.sh:
##########


Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to