This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 3e700f325ef7850475428ca3613df9eb09a0fe47
Author: morrySnow <[email protected]>
AuthorDate: Tue Jan 10 11:10:12 2023 +0800

    [fix](planner) disconjunct in sub-query failed when plan it on hash join 
(#15653)
    
    all conjuncts should be added before HashJoinNode init. Otherwise, some 
slots on conjuncts linked to the tuple not in intermediate tuple on HashJoinNode
---
 .../src/main/java/org/apache/doris/planner/SingleNodePlanner.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/planner/SingleNodePlanner.java 
b/fe/fe-core/src/main/java/org/apache/doris/planner/SingleNodePlanner.java
index 86044c13b8..8b27b1e1a3 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/planner/SingleNodePlanner.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/planner/SingleNodePlanner.java
@@ -2085,8 +2085,8 @@ public class SingleNodePlanner {
 
         HashJoinNode result = new HashJoinNode(ctx.getNextNodeId(), outer, 
inner,
                 innerRef, eqJoinConjuncts, ojConjuncts);
-        result.init(analyzer);
         result.addConjuncts(analyzer.getMarkConjuncts(innerRef));
+        result.init(analyzer);
         return result;
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to