isToBeFlattenedArray = new boolean[inputPlans.size()];
}
planLeafOps = new PhysicalOperator[inputPlans.size()];
for(PhysicalPlan p : inputPlans) {
++i;
PhysicalOperator leaf = p.getLeaves().get(0);
planLeafOps[i] = leaf;
if(leaf instanceof POProject &&
leaf.getResultType() == DataType.TUPLE &&
((POProject)leaf).isStar())
isToBeFlattenedArray[i] = true;
}
}
// we are calculating plan leaves