Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-9035

Incorrect example for using a scan stopRow in HBase book

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.0
    • documentation
    • None
    • Reviewed

    Description

      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

      Attachments

        1. HBASE-9035.patch
          1 kB
          Gabriel Reid

        Activity

          People

            Unassigned Unassigned
            gabriel.reid Gabriel Reid
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: