Uploaded image for project: 'Apache Gora'
  1. Apache Gora
  2. GORA-510

Conform Query.setEndKey to inclusive query for HBaseStore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.6, 0.7, 0.8
    • 0.8
    • gora-hbase

    Description

      The endKey query option does not work properly in HBase: Gora's query inteface defines it as 'inclusive' while HBase behaves 'exclusive'.

      The tests have been @ignored temporarily (since 2014! "nothing is more permanent than a temporary solution" as shown at TestHBaseStore ([1]).

      There is a "TODO" with the message "raise an issue for HBase to allow us to specify if the endRow will be inclusive or exclusive", but HBase documentation states:

      "Note: In order to make stopRow inclusive add a trailing 0 byte"

      So: I propose to update HBaseStore to conform Gora's interface based on HBase's solution.

      [1] https://github.com/apache/gora/blob/apache-gora-0.7/gora-hbase/src/test/java/org/apache/gora/hbase/store/TestHBaseStore.java#L248

      Attachments

        Issue Links

          Activity

            People

              alfonsonishikawa Alfonso Nishikawa Muñumer
              alfonsonishikawa Alfonso Nishikawa Muñumer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: