// if any of the foreach's inner plans contain a UDF then return false
if (udfFinder.foundAnyUDF()) {
return false;
}
CastFinder castFinder = new CastFinder(foreachPlan);
castFinder.visit();
// TODO
// if any of the foreach's inner plans contain a cast then return false
// in the future the cast should be moved appropriately
if (castFinder.foundAnyCast()) {
return false;
}
}
List<LogicalOperator> successors = (mPlan.getSuccessors(foreach) == null ? null