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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]