} catch (IOException e) {
int errCode = 1053;
String msg = "Cannot resolve load function to use for casting" +
" from " + DataType.findTypeName(op.getExpression().
getType()) + " to " + DataType.findTypeName(op.getType());
throw new LogicalToPhysicalTranslatorException(msg, errCode, PigException.BUG, e);
}
}
try {
currentPlan.connect(from, pCast);
} catch (PlanException e) {
int errCode = 2015;
String msg = "Invalid physical operators in the physical plan" ;
throw new LogicalToPhysicalTranslatorException(msg, errCode, PigException.BUG, e);
}
}