seawinde commented on code in PR #52601:
URL: https://github.com/apache/doris/pull/52601#discussion_r2177400358


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java:
##########
@@ -618,7 +624,8 @@ protected void doDistribute(boolean 
canUseNereidsDistributePlanner, ExplainLevel
 
         distributedPlans = new DistributePlanner(statementContext, fragments, 
notNeedBackend, false).plan();
         if (statementContext.getConnectContext().getExecutor() != null) {
-            
statementContext.getConnectContext().getExecutor().getSummaryProfile().setNereidsDistributeTime();
+            
statementContext.getConnectContext().getExecutor().getSummaryProfile()
+                    .setNereidsDistributeTime(TimeUtils.getStartTimeMs());

Review Comment:
   TimeUtils.getStartTimeMs() is passed in as a parameter to facilitate better 
unit testing, as the unit tests need to control and assert based on a fixed 
time.



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