Pig
  1. Pig
  2. PIG-1468

DataByteArray.compareTo() does not compare in lexicographic order

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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

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

        Activity

        Gianmarco De Francisci Morales made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Gianmarco De Francisci Morales made changes -
        Assignee Gianmarco De Francisci Morales [ azaroth ]
        Gianmarco De Francisci Morales made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Gianmarco De Francisci Morales made changes -
        Field Original Value New Value
        Attachment PIG-1468.patch [ 12448155 ]
        Gianmarco De Francisci Morales created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development