Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-4517

builtin UDF for mass concat of strings

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • piggybank
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            pracheer Pracheer Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: