}
Operator buildNestedOperatorInput(SourceLocation loc, LogicalPlan innerPlan, LOForEach foreach,
Map<String, Operator> operators, LogicalExpression expr)
throws NonProjectExpressionException, ParserValidationException {
OperatorPlan plan = expr.getPlan();
Iterator<Operator> it = plan.getOperators();
if( !( it.next() instanceof ProjectExpression ) || it.hasNext() ) {
throw new NonProjectExpressionException( intStream, loc, expr );
}
Operator op = null;
ProjectExpression projExpr = (ProjectExpression)expr;