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

MIN/MAX builtin UDFs return wrong results when accumulating for strings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.0, 0.13.0, 0.14.0
    • 0.15.0
    • internal-udfs
    • None
    • Patch Available
    • Reviewed

    Description

      When using MIN/MAX UDFs with strings in a job that uses the accumulator interface the results are wrong - The UDF won't return the correct MIN/MAX value.

      this is caused by a reverse 'GreaterThan/SmallerThan" (<>) sign in the accumulate() function of both StringMin/StringMax UDFs.

      Attachments

        1. fix-min-max.patch
          2 kB
          xplenty
        2. fix-min-max-test.patch
          8 kB
          xplenty
        3. PIG-4490-1.patch
          27 kB
          Rohini Palaniswamy

        Activity

          People

            opensource@xplenty.com xplenty
            opensource@xplenty.com xplenty
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: