throw new ExecException("No Plans to compile");
}
OperatorKey physicalKey = null;
for (int i = 0; i < plans.length; ++i) {
ExecLogicalPlan curPlan = null;
curPlan = plans[ i ];
OperatorKey logicalKey = curPlan.getRoot();
physicalKey = logicalToPhysicalKeys.get(logicalKey);
if (physicalKey == null) {
try {
physicalKey = new MapreducePlanCompiler(pigContext).
compile(curPlan.getRoot(),
curPlan.getOpTable(),
this);
}
catch (IOException e) {
StringBuilder sb = new StringBuilder();
sb.append("Failed to compile plan (");