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

search any substring in the input string

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.17.0
    • Component/s: internal-udfs
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      A new Pig UDF STRING_SEARCH_ALL that Implementing regex for searching keyword(substring) in a line of string, and all matched substrings will be stored as individual tuples in a bag, i.e.

       output: ({(a),(b),(c)})

      Help us to find all regex matches, for example, we may use FLATTEN(STRING_SEARCH_ALL(string, regex)) to list all matches for an easier view of output.

        Attachments

        1. PIG-5214-2.patch
          7 kB
          Yuxiang Wang
        2. PIG-5214-1.patch
          8 kB
          Yuxiang Wang

          Issue Links

            Activity

              People

              • Assignee:
                rainer-46 Yuxiang Wang
                Reporter:
                rainer-46 Yuxiang Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: