Hi I'm trying to run Pig's REPLACE UDF over all the fields in every tuple in a Pig relation. The REPLACE UDF does not however work with the * operator to run itself over the contents of each field in a tuple. For eg:
SRC= LOAD 'input' using PigStorage('\\u001') as
(col1:chararray,col2:chararray,col3:chararray,col4:chararray);
REP=FOREACH SRC GENERATE REPLACE(col1,'str1','str2');
I want to iterate this same replace function over all the columns in a
tuple.
Any help appreciated.
Thanks
Parth S
