Hive
  1. Hive
  2. HIVE-2903

Numeric binary type keys are not compared properly

    Details

    • Type: Bug Bug
    • Status: Patch Available
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: HBase Handler
    • Labels:
      None

      Description

      In current binary format for numbers, minus values are always greater than plus values, for example.

      System.our.println(Bytes.compareTo(Bytes.toBytes(-100), Bytes.toBytes(100))); // 255
      

        Issue Links

          Activity

          Navis created issue -
          Phabricator made changes -
          Field Original Value New Value
          Attachment HIVE-2903.D2481.1.patch [ 12519843 ]
          Navis made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Phabricator made changes -
          Attachment HIVE-2903.D2481.2.patch [ 12520336 ]
          Navis made changes -
          Link This issue blocks HIVE-2897 [ HIVE-2897 ]

            People

            • Assignee:
              Navis
              Reporter:
              Navis
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development