Permalink
Browse files

Fix #228 introduced by variable length encoding where integer values …

…stored on

single bytes in HBase were being cast to unsigned ints in
RowSeq.extractIntegerValue. Removed the bitmask and now single bytes are
returned correctly.

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
  • Loading branch information...
1 parent 6f8b36e commit 5dc7cb5905ee788316d72d8d8964e86a9bbc5a09 @manolama manolama committed with manolama Aug 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/RowSeq.java
View
@@ -198,7 +198,7 @@ static long extractIntegerValue(final byte[] values,
case 7: return Bytes.getLong(values, value_idx);
case 3: return Bytes.getInt(values, value_idx);
case 1: return Bytes.getShort(values, value_idx);
- case 0: return values[value_idx] & 0xFF;
+ case 0: return values[value_idx];
}
throw new IllegalDataException("Integer value @ " + value_idx
+ " not on 8/4/2/1 bytes in "

0 comments on commit 5dc7cb5

Please sign in to comment.