That is because you're calling REPLACE on a bag of tuples and not a string.
What you would want to do is write a UDF (suggested name JOIN_ON), that
takes as an argument a join char and will join all the tuples in the bag by
the join char.
On Mon, Apr 7, 2014 at 12:31 PM, Krishnan Narayanan <
[EMAIL PROTECTED]> wrote: