This is an automated email from the ASF dual-hosted git repository.
924060929 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 af093e1dfda [opt](local shuffle) ADAPTIVE_PASSTHROUGH satisfies
PASSTHROUGH requirement
af093e1dfda is described below
commit af093e1dfdaa4c443c5c071436bbab0a451c08a3
Author: 924060929 <[email protected]>
AuthorDate: Mon Apr 27 21:41:49 2026 +0800
[opt](local shuffle) ADAPTIVE_PASSTHROUGH satisfies PASSTHROUGH requirement
BE's need_to_local_exchange treats ADAPTIVE_PASSTHROUGH as compatible with
PASSTHROUGH (both fan out data). FE's RequireSpecific.satisfy() used exact
match, causing redundant PASSTHROUGH LE insertion when child outputs
ADAPTIVE_PASSTHROUGH but parent requires PASSTHROUGH (e.g., SortNode with
mergeByExchange above NLJ).
---
.../java/org/apache/doris/planner/LocalExchangeNode.java | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/planner/LocalExchangeNode.java
b/fe/fe-core/src/main/java/org/apache/doris/planner/LocalExchangeNode.java
index 6c5e2e922ec..3674f0f6db8 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/planner/LocalExchangeNode.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/planner/LocalExchangeNode.java
@@ -222,7 +222,17 @@ public class LocalExchangeNode extends PlanNode {
@Override
public boolean satisfy(LocalExchangeType provide) {
- return requireType == provide;
+ if (requireType == provide) {
+ return true;
+ }
+ // ADAPTIVE_PASSTHROUGH is a superset of PASSTHROUGH — both fan
out data
+ // from fewer to more tasks. BE's need_to_local_exchange treats
them as
+ // compatible, so ADAPTIVE_PASSTHROUGH satisfies a PASSTHROUGH
requirement.
+ if (requireType == LocalExchangeType.PASSTHROUGH
+ && provide == LocalExchangeType.ADAPTIVE_PASSTHROUGH) {
+ return true;
+ }
+ return false;
}
@Override
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]