This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch branch-1.2-lts in repository https://gitbox.apache.org/repos/asf/doris.git
commit 3ba64c4e217f85f96a582f1a355d9fc4647c2eee Author: Mingyu Chen <morning...@163.com> AuthorDate: Thu Apr 27 11:05:00 2023 +0800 [fix](load-profile) fix show load profile return emoty result (#19125) Fix 2 bugs of show load profile: For broker load, the second level should be the sub task' id. show load profile stmt should be forwarded to master FE to execute. --- .../src/main/java/org/apache/doris/analysis/ShowLoadProfileStmt.java | 5 +++++ fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowLoadProfileStmt.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowLoadProfileStmt.java index 91cbfc3c4e..88b960ce97 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowLoadProfileStmt.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowLoadProfileStmt.java @@ -150,5 +150,10 @@ public class ShowLoadProfileStmt extends ShowStmt { return null; } } + + @Override + public RedirectStatus getRedirectStatus() { + return RedirectStatus.FORWARD_NO_SYNC; + } } diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java b/fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java index 065c69a68e..f253408078 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java +++ b/fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java @@ -2049,7 +2049,7 @@ public class ShowExecutor { } case FRAGMENTS: { ProfileTreeNode treeRoot = ProfileManager.getInstance().getFragmentProfileTree(showStmt.getJobId(), - showStmt.getJobId()); + showStmt.getTaskId()); if (treeRoot == null) { throw new AnalysisException("Failed to get fragment tree for load: " + showStmt.getJobId()); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org