You are reporting the paste Use a macro udf in pig.