Skip to content

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

Merged
yiguolei merged 1 commit into
branch-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 into
branch-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.
@yiguolei

Copy link
Copy Markdown
Contributor

run buildall

@yiguoleiyiguolei reopened this Mar 24, 2026
@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Mar 24, 2026
@github-actions

Copy link
Copy Markdown
ContributorAuthor

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

@github-actions

Copy link
Copy Markdown
ContributorAuthor

PR approved by anyone and no changes requested.

@yiguolei
yiguolei merged commit 37278b3 into branch-4.1Mar 25, 2026
26 of 29 checks passed
@morningman
morningman deleted the auto-pick-61601-branch-4.1 branch July 8, 2026 14:09
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approvedIndicates a PR has been approved by one committer.reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@yiguolei@morningman