You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Milosz Tanski <mi...@adfinsolutions.com> on 2012/05/09 05:29:57 UTC

Stop row not working as expected

Hey guys,

I'm trying to get hbase scans working but it looks like I'm not
understanding the stopRow correctly and thus not doing it right.

Here's my start: 0x000000000000000000000000000000004effa200 (added the 0x
to signify this is my binary key)
and my end: 0x000000000000000000000000000000004f00f3800

I have some data (according to hbase shell) that looks like this:

 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4e ff a2 00
                  column=data:02 07 04 00 00 00 00 08 00 00 00 00 00 00 00
00 00 00 00 00, timestamp=1336412700755, value=3f a6 35 3f 00 00 02 d0


 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4e ff a2 00
                  column=data:02 07 04 00 00 00 00 09 00 00 00 00 00 00 00
00 00 00 00 00, timestamp=1336412700756, value=3f 98 90 2e 00 00 03 0c


 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4e ff a2 00
                  column=data:02 07 04 00 00 00 00 0a 00 00 00 00 00 00 00
00 00 00 00 00, timestamp=1336412700758, value=3f 8e 42 5b 00 00 02 94


 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4e ff a2 00
                  column=data:02 07 04 00 00 00 00 0b 00 00 00 00 00 00 00
00 00 00 00 00, timestamp=1336412700759, value=3f be 56 04 00 00 02 c6


 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4e ff a2 00
                  column=data:02 07 04 00 00 00 00 0c 00 00 00 00 00 00 00
00 00 00 00 00, timestamp=1336412700760, value=3f 9d a5 12 00 00 02 6c


 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4e ff a2 00
                  column=data:02 07 04 00 00 00 00 0d 00 00 00 00 00 00 00
00 00 00 00 00, timestamp=1336412700760, value=3f b6 7a 10 00 00 02 08
 ...


Now whenever i set my startRow and stopRow I get 0 results back. However
when I just set startRow to 0x000000000000000000000000000000004effa200 and
not set stopRow, i get all results starting
at 0x000000000000000000000000000000004effa200. I'm sure I'm doing something
stupid here. Can someone help me understand what's wrong?

-- Milosz