You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Xu Cang (JIRA)" <ji...@apache.org> on 2018/06/02 09:19:00 UTC

[jira] [Commented] (HBASE-20675) The scan parameter include_stop_row=true does not work

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

Xu Cang commented on HBASE-20675:
---------------------------------

This feature developed for branch 2 https://issues.apache.org/jira/browse/HBASE-17320

But your environment is :1.2.0-cdh5.7.5, which is close to hbase-1.2 I guess? 

 

> 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)