[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.
This commit is contained in:
@ -150,5 +150,10 @@ public class ShowLoadProfileStmt extends ShowStmt {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public RedirectStatus getRedirectStatus() {
|
||||
return RedirectStatus.FORWARD_NO_SYNC;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -2160,7 +2160,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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user