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

search any substring in the input string

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.17.0
    • internal-udfs
    • None
    • 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-1.patch
          8 kB
          Yuxiang Wang
        2. PIG-5214-2.patch
          7 kB
          Yuxiang Wang

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment