Hi there,

I would like to replace the value of a field based on its value. E.g.:

A = LOAD 'student' USING PigStorage() AS (name:chararray);
DUMP A;
(John)
(Mary
(Bill)
(Joe)
(John)

Now I would like to replace all John's with Marco. Is there a way to do this
in PIG? I thought about using sth like SPLIT IF John and then union the
result again. Is there a better way?

Cheers
-Marco

Reply via email to