morrySnow commented on code in PR #28007: URL: https://github.com/apache/doris/pull/28007#discussion_r1416560101
########## fe/fe-core/src/main/java/org/apache/doris/common/profile/PlanTreeBuilder.java: ########## @@ -67,10 +67,16 @@ private void buildFragmentPlans() { } sb.append("\n[Fragment: ").append(fragment.getFragmentSequenceNum()).append("]"); sb.append("\n").append(sink.getExplainString("", TExplainLevel.BRIEF)); - sinkNode = new PlanTreeNode( - sink instanceof MultiCastDataSink ? ((MultiCastDataSink) sink).getDataStreamSinks().stream() - .map(s -> s.getExchNodeId()).collect(Collectors.toList()) - : ImmutableList.of(sink.getExchNodeId()), sb.toString()); + List<PlanNodeId> exchangeIds; + if (sink instanceof MultiCastDataSink) { + exchangeIds = ((MultiCastDataSink) sink).getDataStreamSinks().stream() + .map(s -> s.getExchNodeId()).collect(Collectors.toList()); + } else if (sink.getExchNodeId() != null) { + exchangeIds = ImmutableList.of(sink.getExchNodeId()); + } else { + exchangeIds = ImmutableList.of(); Review Comment: add case -- 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