Skip to content

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #59728

…ile (#59728)

- Add `_backend_rows_count` to `MaterializationSharedState` to count the
number of rows assigned to each backend during block distribution.
- Introduce `_max_rows_per_backend` to record the maximum row count
handled by any single backend in the current batch.
- Update `merge_multi_response()` to compute `_max_rows_per_backend`
after row assignment.
- Expose this metric via a new runtime profile counter
`MaxRowsPerBackend` in `MaterializationLocalState`.
- This helps monitor data skew across backends and aids in performance
debugging for materialization-heavy queries.
@github-actions github-actions bot requested a review from yiguolei as a code owner January 12, 2026 07:00
@Thearas
Copy link
Contributor

Thearas commented Jan 12, 2026

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@dataroaring dataroaring reopened this Jan 12, 2026
@Thearas
Copy link
Contributor

Thearas commented Jan 12, 2026

run buildall

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 60.00% (6/10) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 53.42% (18795/35183)
Line Coverage 39.21% (174244/444330)
Region Coverage 33.98% (135103/397600)
Branch Coverage 34.88% (58275/167095)

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jan 13, 2026
@github-actions
Copy link
Contributor Author

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

@github-actions
Copy link
Contributor Author

PR approved by anyone and no changes requested.

@yiguolei
Copy link
Contributor

skip buildall

@yiguolei yiguolei merged commit 93aa5f4 into branch-4.0 Jan 13, 2026
28 of 30 checks passed
@github-actions github-actions bot deleted the auto-pick-59728-branch-4.0 branch January 13, 2026 02:15
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.

6 participants