if (resultPlan == null) {
resultPlan = scanPlan;
} else {
resultPlan = getSelectSubPlanForAccessPathStep(accessPath[at], resultPlan, scanPlan);
}
<BUG>if (deferSendReceivePair || !m_partitioning.requiresTwoFragments() || joinOrder[at].getIsreplicated()) {
continue;</BUG>
}
resultPlan = addSendReceivePair(resultPlan);
}

if (resultPlan == null) {
resultPlan = scanPlan;
} else {
resultPlan = getSelectSubPlanForAccessPathStep(accessPath[at], resultPlan, scanPlan);
}
if (canDeferSendReceivePairForNode(joinOrder[at].getIsreplicated())) {
continue;
}
resultPlan = addSendReceivePair(resultPlan);
}
