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

DataByteArray.compareTo() does not compare in lexicographic order

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The compareTo() method of org.apache.pig.data.DataByteArray does not compare items in lexicographic order.
      Actually, it takes into account the signum of the bytes that compose the DataByteArray.

      So, for example, 0xff compares to less than 0x00

        Attachments

        1. PIG-1468.patch
          2 kB
          Gianmarco De Francisci Morales

          Activity

            People

            • Assignee:
              azaroth Gianmarco De Francisci Morales
              Reporter:
              azaroth Gianmarco De Francisci Morales
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: