You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Prashant Kommireddi <pr...@gmail.com> on 2013/04/01 08:33:47 UTC

Re: Tuple to charrary conversion

Hi Jerry,

There is no "direct" UDF for this. Would you like to submit a patch?



On Thu, Mar 28, 2013 at 1:22 PM, Jerry Lam <ch...@gmail.com> wrote:

> Hi there,
>
> I wonder if there is a function similar to apache commons StringUtils that
> join an iterable with a separator (
>
> http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#join(java.lang.Iterable
> ,
> java.lang.String)) in Pig?
>
> I have a tuple which contains fields of chararray and I would like to
> convert the tuple into a string that is delimited by a tab.
>
> I searched online, it doesn't seem to be common. Am I missing something?
>
> Thank you.
>
> Jerry
>