Skip to content

Commit 38ae4a9

Browse files
branch-4.0: [fix](fe) Fix bugs in SummaryProfile and StmtExecutor metric reporting #61601 (#61643)
Cherry-picked from #61601 Co-authored-by: Mingyu Chen (Rayner) <yunyou@selectdb.com>
1 parent d211e01 commit 38ae4a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fe/fe-core/src/main/java/org/apache/doris/common/profile/SummaryProfile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ public long getExternalTvfInitTimeMs() {
11701170
}
11711171

11721172
public void addNereidsPartitiionPruneTime(long ms) {
1173-
this.externalTvfInitTime += ms;
1173+
this.nereidsPartitiionPruneTime += ms;
11741174
}
11751175

11761176
public long getNereidsPartitiionPruneTimeMs() {

fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ private void executeByNereids(TUniqueId queryId) throws Exception {
774774
MetricRepo.HISTO_PLAN_OPTIMIZE_DURATION.update(nereidsOptimizeTimeMs);
775775
}
776776
int nereidsTranslateTimeMs = summaryProfile.getNereidsTranslateTimeMs();
777-
if (nereidsOptimizeTimeMs >= 0) {
777+
if (nereidsTranslateTimeMs >= 0) {
778778
MetricRepo.HISTO_PLAN_TRANSLATE_DURATION.update(nereidsTranslateTimeMs);
779779
}
780780
long initScanNodeTimeMs = summaryProfile.getInitScanNodeTimeMs();

0 commit comments

Comments
 (0)