You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Jermy Li (JIRA)" <ji...@apache.org> on 2018/06/02 07:19:00 UTC
[jira] [Created] (HBASE-20675) The scan parameter
include_stop_row=true does not work
Jermy Li created HBASE-20675:
--------------------------------
Summary: 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
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)