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 2021/11/08 13:58:23 UTC

[incubator-doris] 05/11: Fix the SQL execution error caused by tablet not being found due to Colocate join (#7002)

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

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

commit cc6a6be4786072d03608e23f38f7e6bcb011869a
Author: weajun <we...@gmail.com>
AuthorDate: Thu Nov 4 09:21:52 2021 +0800

    Fix the SQL execution error caused by tablet not being found due to Colocate join (#7002)
    
    * fixbug sql execution sometimes due to failed to get tablet
---
 fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java b/fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java
index 98b4661..ea82f2a 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java
@@ -1234,7 +1234,7 @@ public class Coordinator {
         }
 
         for (PlanNode childNode : node.getChildren()) {
-            if (isColocateFragment(planFragment, childNode)) {
+            if (childNode.getFragmentId().asInt() == planFragment.getId().asInt() && isColocateFragment(planFragment, childNode)) {
                 return true;
             }
         }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org