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
commit b7f6226b3341d3869ada34116ea8f3f6327884bd Author: 924060929 <[email protected]> AuthorDate: Tue Apr 14 16:42:05 2026 +0800 [fix](local shuffle) Remove child-type skip in createLocalExchange BE's _add_local_exchange inserts LE for ANY child type without instanceof checks. The FE-side skip for serial non-ScanNode children was a workaround that prevented PT fan-out for transparent nodes (RepeatNode, SelectNode), causing GROUPING SETS + pooling deadlock. Remove the skip entirely to match BE behavior. The shouldSkipLE check in enforceRequire already handles serial-ancestor detection (operators[idx..end] toward sink), which is the correct Layer 1 gate. --- .../src/main/java/org/apache/doris/planner/PlanNode.java | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/PlanNode.java b/fe/fe-core/src/main/java/org/apache/doris/planner/PlanNode.java index b3be7238d9d..5269e6dae17 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/planner/PlanNode.java +++ b/fe/fe-core/src/main/java/org/apache/doris/planner/PlanNode.java @@ -1006,12 +1006,9 @@ public abstract class PlanNode extends TreeNode<PlanNode> { /** * Create a LocalExchangeNode wrapping child with the given exchange type. - * - * Skip PT/APT insertion when child is a serial non-Scan operator: serial Exchanges/AGGs - * have 1 task; inserting PASSTHROUGH creates a pipeline split that breaks shared state - * or causes data loss. HASH/BUCKET/BROADCAST/PASS_TO_ONE are NOT skipped — they properly - * redistribute or replicate data. Serial ScanNodes (pooling scan) need fan-out and are - * handled by the heavy-ops path below. + * No child-type skip — matches BE's _add_local_exchange which inserts LE for any child + * type without checking instanceof. The shouldSkipLE in enforceRequire already handles + * the serial-ancestor check (operators[idx..end] toward sink). * * Handles heavy-ops bottleneck avoidance (mirrors BE pipeline_fragment_context.cpp): * when upstream has 1 task (serial source) and exchange is heavy (hash/bucket/adaptive), @@ -1020,11 +1017,6 @@ public abstract class PlanNode extends TreeNode<PlanNode> { */ protected PlanNode createLocalExchange(PlanTranslatorContext translatorContext, PlanNode child, LocalExchangeType exchangeType, List<Expr> distributeExprs) { - if (child.isSerialOperator() && !(child instanceof ScanNode) - && (exchangeType == LocalExchangeType.PASSTHROUGH - || exchangeType == LocalExchangeType.ADAPTIVE_PASSTHROUGH)) { - return child; - } if (translatorContext.isLocalShuffleFragment() && exchangeType.isHeavyOperation() && child.isSerialOperator()) { PlanNode ptNode = new LocalExchangeNode(translatorContext.nextPlanNodeId(), --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
