morrySnow commented on code in PR #16459:
URL: https://github.com/apache/doris/pull/16459#discussion_r1098567216


##########
fe/fe-core/src/main/java/org/apache/doris/planner/DistributedPlanner.java:
##########
@@ -557,6 +557,12 @@ private boolean 
dataDistributionMatchEqPredicate(List<BinaryPredicate> eqJoinPre
                 
cannotReason.add(DistributedPlanColocateRule.COLOCATE_GROUP_IS_NOT_STABLE);
                 return false;
             }
+        } else {
+            // query same table but hit different rollup, colocate join should 
be disable
+            if (leftRoot.getSelectedIndexId() != 
rightRoot.getSelectedIndexId()) {
+                
cannotReason.add(DistributedPlanColocateRule.QUERY_SAME_TABLE_BUT_HIT_DIFF_ROLLUP);
+                return false;

Review Comment:
   if table is a colocate table, it could do colocate join with itself when 
group is stable



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to