Repository navigation
Report total rows to read for parallel replicas with local plan - #123928
Merged
Merged
Conversation
With `parallel_replicas_local_plan = 1` (the default) and the default coordination mode, progress never contained `total_rows_to_read`, so progress bars did not work for queries with parallel replicas. `DefaultCoordinator` reports the total rows only once, on the first initial announcement. With the local plan, the first announcement comes from the initiator's own read while the pipeline is being built, before the remote sources set the progress callback, so the total was dropped. Set the total rows approximation on the initiator's local read, as it is already done for reading in order. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Contributor
|
Workflow [PR], commit [9da720c] Summary: ✅
AI ReviewSummaryThe code change itself looks consistent with the existing Tests
Final Verdict
LLVM Coverage ReportMeasured on commit 9da720c.
Changed lines: Changed C/C++ lines covered: 15/15 (100.00%) · Uncovered code |
alexey-milovidov
commented
Oct 5, 2026
alexey-milovidov
left a comment
Member
Author
There was a problem hiding this comment.
Amazing, LGTM!
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix missing total rows in progress (and therefore a non-working progress bar) for queries with parallel replicas when
parallel_replicas_local_planis enabled (the default).Details
With
parallel_replicas_local_plan = 1and the default coordination mode, progress packets never containedtotal_rows_to_read, andsystem.processes.total_rows_approxstayed 0. Reproduces at least since 25.8.DefaultCoordinatorreports the total rows only once, on the first initial announcement. With the local plan, that announcement comes from the initiator's own read while the pipeline is being built, before the remote sources set the progress callback on the coordinator, so the total was dropped.The fix sets the total rows approximation on the initiator's local read in
readFromPoolParallelReplicas, the same wayreadInOrderalready does (only on the initiator with local plan, to avoid counting it once per replica).Found on adsb.exposed, where the progress bar disappeared after enabling parallel replicas.
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/123928]
Version info
26.10.1.1604-master(included in26.10and later)