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
This commit is contained in:
weajun
2021-11-04 09:21:52 +08:00
committed by GitHub
parent f509e93657
commit d268d17f2a

View File

@ -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;
}
}