Github user adrian-wang commented on the pull request:

    https://github.com/apache/spark/pull/8335#issuecomment-133298380
  
    I read the code and find the comparator used here is not the same as we 
previously implemented.
    For `UnsignedBytes`
    
        public static int compare(byte a, byte b) {
          return toInt(a) - toInt(b);
        }
        public static int toInt(byte value) {
          return value & UNSIGNED_MASK;
        }
        private static final int UNSIGNED_MASK = 0xFF;
    
    While for `java.lang.Byte`:
    
        public static int compare(byte x, byte y) {
            return x - y;
        }



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to