// add new store
FuncSpec funcSpec = new FuncSpec(InterStorage.class.getName());
fileSpec = new FileSpec(FileLocalizer.getTemporaryPath(pigContext).toString(), funcSpec);
store = new LOStore(referredPlan, new OperatorKey(scope, NodeIdGenerator.getGenerator().getNextNodeId(scope)),
fileSpec, alias);
referredPlan.addAsLeaf(store);
((LOStore)store).setTmpStore(true);
scalarEntry.getKey().setImplicitReferencedOperator(store);
}
lp.mergeSharedPlan(referredPlan);