You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Jean-Marc Spaggiari (JIRA)" <ji...@apache.org> on 2013/07/24 13:29:48 UTC

[jira] [Commented] (HBASE-9035) Incorrect example for using a scan stopRow in HBase book

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

Jean-Marc Spaggiari commented on HBASE-9035:
--------------------------------------------

I agree. However, I will not say that it's generally, but I will more than that it's an easy and simple way to achieve the same thing, since some people will prefer to reduce the number of objects created and so avoid to use this filter but add a #FF at the end of the stop row instead. 
                
> Incorrect example for using a scan stopRow in HBase book
> --------------------------------------------------------
>
>                 Key: HBASE-9035
>                 URL: https://issues.apache.org/jira/browse/HBASE-9035
>             Project: HBase
>          Issue Type: Bug
>          Components: documentation
>            Reporter: Gabriel Reid
>         Attachments: HBASE-9035.patch
>
>
> The example of how to use a stop row in a scan in the Section 5.7.3 of the HBase book [1] is incorrect. It demonstrates using a start and stop row to only retrieve records with a given prefix, creating the stop row by appending a null byte to the start row.
> This creates a scan that does not include any of the target rows, because the the stop row is less than the target rows via lexicographical sorting.
> [1] http://hbase.apache.org/book/data_model_operations.html#scan

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira