[ 
https://issues.apache.org/jira/browse/HBASE-20675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16507873#comment-16507873
 ] 

Peter Somogyi commented on HBASE-20675:
---------------------------------------

[~xucang] is correct, your client version is based on 1.2.0 and HBASE-17320 is 
merged to 2.0.0. Please upgrade your client version to 2.0.0 and you'll be able 
to use this feature.

> The scan parameter include_stop_row=true does not work
> ------------------------------------------------------
>
>                 Key: HBASE-20675
>                 URL: https://issues.apache.org/jira/browse/HBASE-20675
>             Project: HBase
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 2.0.0
>         Environment: HBase-Client Version: 2.0.0
> HBase Version: 1.2.0-cdh5.7.5
>            Reporter: Jermy Li
>            Priority: Major
>
> we use 
> [withStopRow|https://hbase.apache.org/2.0/apidocs/org/apache/hadoop/hbase/client/Scan.html#withStopRow-byte:A-boolean-]
>  API to scan a rowkey range [startrow, stoprow], both inclusive, but the 
> server can't return the last row including stoprow, however there is no 
> exception.
> For example, the there are the following rows in hbase:
> ||rowkey||CF+qualifier+value||
> |1|{value1}|
> |2|{value2}
> |3|{value3}|
> {code:java}
> // Do scan like this
> Scan scan = new Scan();
> scan.withStartRow(bytes(1), true);
> scan.withStopRow(bytes(3), true);
> {code}
> The result returned only contains the first two rows: “1” and “2”, no “3”.
> Thanks.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to