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

Pig current releases lack a UDF startsWith.This UDF tests if a given string starts with the specified prefix.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.11
    • piggybank
    • Pig now includes a STARTSWITH built-in UDF that checks for presence of a given prefix in a chararray.

    Description

      Pig current releases lack a UDF startsWith.This UDF tests if a given string starts with the specified prefix.This UDF returns true if the character sequence represented by the string argument given as a prefix is a prefix of the character sequence represented by the given string; false otherwise.Also true will be returned if the given prefix is an empty string or is equal to the given String.

      Attachments

        1. PIG-2879-1.patch
          4 kB
          Eli Reisman
        2. PIG-2879-2.patch
          8 kB
          Eli Reisman
        3. PIG-2879-3.patch
          3 kB
          Eli Reisman
        4. PIG-2879-4.patch
          3 kB
          Eli Reisman

        Issue Links

          Activity

            People

              initialcontext Eli Reisman
              anuroopa george Anuroopa George
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: