Skip to content

branch-4.1: [fix](fe) Fix bugs in SummaryProfile and StmtExecutor metric reporting #61601#61644

Merged
yiguolei merged 1 commit intobranch-4.1from
auto-pick-61601-branch-4.1
Mar 25, 2026
Merged

branch-4.1: [fix](fe) Fix bugs in SummaryProfile and StmtExecutor metric reporting #61601#61644
yiguolei merged 1 commit intobranch-4.1from
auto-pick-61601-branch-4.1

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Cherry-picked from #61601

#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 github-actions bot requested a review from yiguolei as a code owner March 24, 2026 03:05
@yiguolei
Copy link
Copy Markdown
Contributor

run buildall

@yiguolei yiguolei closed this Mar 24, 2026
@yiguolei yiguolei reopened this Mar 24, 2026
@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Mar 24, 2026
@github-actions
Copy link
Copy Markdown
Contributor Author

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Copy Markdown
Contributor Author

PR approved by anyone and no changes requested.

@yiguolei yiguolei merged commit 37278b3 into branch-4.1 Mar 25, 2026
26 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants