This is an automated email from the ASF dual-hosted git repository.
huajianlan pushed a commit to branch fe_local_shuffle
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/fe_local_shuffle by this push:
new 45a53ce01e4 [fix](local shuffle) Restore _deferred_exchangers.empty()
early return in propagation
45a53ce01e4 is described below
commit 45a53ce01e4598247e89b6609db7cbf7e6e3798f
Author: 924060929 <[email protected]>
AuthorDate: Thu Apr 16 14:30:11 2026 +0800
[fix](local shuffle) Restore _deferred_exchangers.empty() early return in
propagation
Pass 2 (downward consistency) was incorrectly running for ALL fragments
after removing the early return for Bug 21 investigation. This caused
pass 2 to lower pipelines in BE-native mode BEFORE _plan_local_exchange
ran, breaking the normal BE pipeline construction and causing 43+
result mismatches in eliminate_group_by_uniform RQG suite.
With the ExchangeNode.isSerialOperator mergeInfo fix (mergeInfo != null),
Bug 21's root cause is resolved: non-merging UNPARTITIONED Exchanges are
no longer marked serial, so useSerialSource() returns false and the
coordinator assigns 1 instance (no mismatch). Pass 2 is only needed
when FE-planned LOCAL_EXCHANGE exists (_deferred_exchangers non-empty).
---
be/src/exec/pipeline/pipeline_fragment_context.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/be/src/exec/pipeline/pipeline_fragment_context.cpp
b/be/src/exec/pipeline/pipeline_fragment_context.cpp
index 40a0a61b3b4..739330bd7ab 100644
--- a/be/src/exec/pipeline/pipeline_fragment_context.cpp
+++ b/be/src/exec/pipeline/pipeline_fragment_context.cpp
@@ -734,6 +734,9 @@ Status
PipelineFragmentContext::_create_deferred_local_exchangers() {
}
void PipelineFragmentContext::_propagate_local_exchange_num_tasks() {
+ if (_deferred_exchangers.empty()) {
+ return;
+ }
// Fix num_tasks mismatches between paired pipelines created by
pipeline-splitting
// operators (AGG, SORT, JOIN). These pairs share state via
inject_shared_state and
// must have consistent num_tasks; otherwise instance 1+ tasks access null
shared_state.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]