Yet Another Pig UDF