You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2023/01/10 15:49:47 UTC

[doris] 03/04: [fix](planner) disconjunct in sub-query failed when plan it on hash join (#15653)

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 <10...@users.noreply.github.com>
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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org