[fix](fe) Fix bugs in SummaryProfile and StmtExecutor metric reporting#61601
Merged
morningman merged 1 commit intoapache:masterfrom Mar 24, 2026
Merged
[fix](fe) Fix bugs in SummaryProfile and StmtExecutor metric reporting#61601morningman merged 1 commit intoapache:masterfrom
morningman merged 1 commit intoapache:masterfrom
Conversation
### 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 bug fix with obvious correctness
- Behavior changed: No
- Does this need documentation: No
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 26767 ms |
TPC-DS: Total hot run time: 168793 ms |
morrySnow
approved these changes
Mar 24, 2026
Contributor
|
PR approved by at least one committer and no changes requested. |
Contributor
|
PR approved by anyone and no changes requested. |
CalvinKirs
approved these changes
Mar 24, 2026
suxiaogang223
approved these changes
Mar 24, 2026
hubgeter
approved these changes
Mar 24, 2026
github-actions Bot
pushed a commit
that referenced
this pull request
Mar 24, 2026
#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.
github-actions Bot
pushed a commit
that referenced
this pull request
Mar 24, 2026
#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.
HappenLee
pushed a commit
to HappenLee/incubator-doris
that referenced
this pull request
Mar 31, 2026
apache#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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
Fix three bugs found in SummaryProfile and StmtExecutor:
Wrong field assignment in
addNereidsPartitiionPruneTime()(SummaryProfile.java):The method was incorrectly accumulating partition prune time into
externalTvfInitTimeinstead of
nereidsPartitiionPruneTime. This caused:nereidsPartitiionPruneTimeto always be 0, soHISTO_PLAN_PARTITION_PRUNE_DURATIONmetric never collected correct data
externalTvfInitTimeto be polluted with unrelated partition prune time dataWrong guard variable for translate metric (StmtExecutor.java):
When reporting
HISTO_PLAN_TRANSLATE_DURATION, the condition checkednereidsOptimizeTimeMs >= 0instead ofnereidsTranslateTimeMs >= 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)