Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-5271

Result.getValue and Result.getColumnLatest return the wrong column.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.90.5
    • 0.90.7, 0.92.1, 0.94.0
    • Client
    • None
    • Reviewed

    Description

      In the following example result.getValue returns the wrong column

      KeyValue kv = new KeyValue(Bytes.toBytes("r"), Bytes.toBytes("24"), Bytes.toBytes("2"), Bytes.toBytes(7L));
      Result result = new Result(new KeyValue[]

      { kv }

      );
      System.out.println(Bytes.toLong(result.getValue(Bytes.toBytes("2"), Bytes.toBytes("2")))); //prints 7.

      Attachments

        1. testGetValue.diff
          0.9 kB
          Ghais Issa
        2. fixKeyValueMatchingColumn.diff
          2 kB
          Ghais Issa
        3. 5271-v2.txt
          2 kB
          Ted Yu
        4. 5271-90.txt
          2 kB
          Ted Yu

        Activity

          People

            ghais Ghais Issa
            ghais Ghais Issa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: