Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig >> mail # user >> Tuple to charrary conversion


+
Jerry Lam 2013-03-28, 20:22
Copy link to this message
-
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 <[EMAIL PROTECTED]> 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
>