if( pos == -1 ) {
ConstantExpression constExp = new ConstantExpression( exprPlan, null);
if(fs.type != DataType.BYTEARRAY){
LogicalSchema.LogicalFieldSchema constFs = fs.deepCopy();
constFs.resetUid();
new CastExpression(exprPlan, constExp, constFs);
}
} else {
ProjectExpression projExpr =
new ProjectExpression( exprPlan, genInputs.size(), 0, gen );
if( fs.type != DataType.BYTEARRAY
&& opSchema.getField( pos ).type != fs.type ) {
new CastExpression( exprPlan, projExpr, fs );
}
genInputs.add( new LOInnerLoad( innerPlan, foreach, pos ) );
}
}