@Override
public void visitNative(PONative op) throws VisitorException {
try{
curTezOp.segmentBelow = true;
TezOperator nativeTezOper = new NativeTezOper(new OperatorKey(scope,nig.getNextNodeId(scope)), op.getNativeMRjar(), op.getParams());
tezPlan.add(nativeTezOper);
curTezOp.setClosed(true);
tezPlan.connect(curTezOp, nativeTezOper);
phyToTezOpMap.put(op, nativeTezOper);
nativeTezOper.setClosed(true);
nativeTezOper.segmentBelow = true;
nativeTezOper.markNative();
curTezOp = nativeTezOper;
}catch(Exception e){
int errCode = 2034;
String msg = "Error compiling operator " + op.getClass().getSimpleName();
throw new TezCompilerException(msg, errCode, PigException.BUG, e);