morningman opened a new pull request, #61601:
URL: https://github.com/apache/doris/pull/61601

   ### What problem does this PR solve?
   
   Issue Number: close #xxx
   
   Problem Summary:
   
   Fix three bugs found in SummaryProfile and StmtExecutor:
   
   1. **Wrong field assignment in `addNereidsPartitiionPruneTime()`** 
(SummaryProfile.java):
      The method was incorrectly accumulating partition prune time into 
`externalTvfInitTime`
      instead of `nereidsPartitiionPruneTime`. This caused:
      - `nereidsPartitiionPruneTime` to always be 0, so 
`HISTO_PLAN_PARTITION_PRUNE_DURATION`
        metric never collected correct data
      - `externalTvfInitTime` to be polluted with unrelated partition prune 
time data
   
   2. **Wrong guard variable for translate metric** (StmtExecutor.java):
      When reporting `HISTO_PLAN_TRANSLATE_DURATION`, the condition checked
      `nereidsOptimizeTimeMs >= 0` instead of `nereidsTranslateTimeMs >= 0`.
      This means the translate metric was gated by the optimize time value
      rather than the translate time value itself.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test: No need to test - trivial one-line bug fix with obvious correctness
   - Behavior changed: No
   - Does this need documentation: No


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to