-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Bug](rec-cte) reset _require_bucket_distribution in PipelineFragmentContext::rebuild #60618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Resets PipelineFragmentContext state during rebuild() to prevent recursive-CTE fragment reruns from inheriting stale bucket distribution requirements that can change subsequent pipeline construction (notably around local shuffle).
Changes:
- Reset
_require_bucket_distributiontofalseinPipelineFragmentContext::rebuild()before rebuilding the full pipeline. - Add an explanatory comment describing why this reset is necessary for correct pipeline building across reruns.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| _submitted = false; | ||
| _is_fragment_instance_closed = false; | ||
| // _require_bucket_distribution may be set to true to affect the building of pipeline with local shuffle | ||
| _require_bucket_distribution = false; | ||
| return _build_and_prepare_full_pipeline(thread_pool); |
Copilot
AI
Feb 9, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change fixes state carried across rebuild(), but there doesn’t appear to be any unit test coverage for the rerun/rebuild path (e.g., a rec-CTE round triggering wait/release/rebuild/submit). Consider adding a BE pipeline unit test that exercises at least two rebuild cycles and asserts the pipeline build outcome isn’t affected by stale _require_bucket_distribution from the prior build (e.g., local shuffle/bucket distribution decisions differ between rounds).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot open a new pull request to apply changes based on this feedback
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
What problem does this PR solve?
reset _require_bucket_distribution in PipelineFragmentContext::rebuild

Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)