yiguolei commented on code in PR #33331:
URL: https://github.com/apache/doris/pull/33331#discussion_r1557008304


##########
fe/fe-core/src/main/java/org/apache/doris/common/profile/ExecutionProfile.java:
##########
@@ -243,6 +247,81 @@ public void update(long startTime, boolean isFinished) {
         }
     }
 
+    public Status updateProfile(TQueryProfile profile, TNetworkAddress 
address) {
+        if (isPipelineXProfile) {
+            if (!profile.isSetFragmentIdToProfile()) {
+                return new Status(TStatusCode.INVALID_ARGUMENT, 
"FragmentIdToProfile is not set");
+            }
+
+            for (Entry<Integer, List<TDetailedReportParams>> entry : 
profile.getFragmentIdToProfile().entrySet()) {
+                int fragmentId = entry.getKey();
+                List<TDetailedReportParams> fragmentProfile = entry.getValue();
+                int pipelineIdx = 0;
+                List<RuntimeProfile> taskProfile = Lists.newArrayList();
+                for (TDetailedReportParams pipelineProfile : fragmentProfile) {
+                    String name = "Pipeline :" + pipelineIdx + " "
+                            + " (host=" + address + ")";

Review Comment:
   the address is wrong , please refer the new updateProfile code to modify it.



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to