[
https://issues.apache.org/jira/browse/PIG-4517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14509661#comment-14509661
]
Carlos Balduz commented on PIG-4517:
------------------------------------
Hi! Isn't this very similar to the
[BagToString|http://pig.apache.org/docs/r0.14.0/func.html#bagtostring] UDF? It
takes a bag and concatenates it with a delimiter of your choice...
However, it would be nice to have something similar that takes a variable
number of arguments and concatenates it together. Sometimes for example I want
to concatenate two fields in a relation with a dash, like 'id_user - username'.
> builtin UDF for mass concat of strings
> --------------------------------------
>
> Key: PIG-4517
> URL: https://issues.apache.org/jira/browse/PIG-4517
> Project: Pig
> Issue Type: New Feature
> Components: piggybank
> Reporter: Pracheer Agarwal
> Priority: Minor
>
> Right now we have CONCAT UDF which concatenate two strings. We don't have any
> UDF for mass concatenation. The functionality of the proposed udf can be
> exact reverse of STRSPLIT.
> STRSPLIT take a string and a regex and return a tuple of strings. On the same
> line MASSCONCAT can take a tuple and a delimeter as inputs and return a
> string as output.
> Example:
> Inputs - (a,b,c,d), "|"
> Output - a|b|c|d
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)