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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.12.0, 0.13.0, 0.14.0
    • Fix Version/s: 0.15.0
    • Component/s: internal-udfs
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Hadoop Flags:
      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. PIG-4490-1.patch
          27 kB
          Rohini Palaniswamy
        2. fix-min-max-test.patch
          8 kB
          xplenty
        3. fix-min-max.patch
          2 kB
          xplenty

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: