long outputUid = scalarExp.getFieldSchema().uid;
boolean foundInput = false; // a variable to do sanity check on num of input relations
//find the input relation, and use it to get lineage
for(Operator softPred : softPreds){
LOStore inputStore = (LOStore) softPred;
if(inputStore.getFileSpec().getFileName().equals(inputFile)){
if(foundInput == true){
throw new FrontendException(
"More than one input found for scalar expression",
2268,
PigException.BUG
);
}
foundInput = true;
//found the store corresponding to this scalar expression
LogicalSchema sch = inputStore.getSchema();
if(sch == null){
//see if there is a load function associated with the store
FuncSpec funcSpec = rel2InputFuncMap.get(inputStore);
addUidLoadFuncToMap(outputUid, funcSpec);
}else{