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

Single Filter in parenthesis cannot be parsed correctly

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0, 0.98.24, 2.0.0
    • Filters
    • None
    • Reviewed

    Description

      hbase(main):010:0* put 'testtable', 'row1', 'cf1:a', 'ab'
      0 row(s) in 0.1800 seconds
      
      hbase(main):011:0> scan 'testtable'
      ROW                                      COLUMN+CELL
       row1                                    column=cf1:a, timestamp=1481538756308, value=ab
      
      hbase(main):012:0> scan 'testtable', FILTER=>"(ValueFilter(=,'binary:ab'))"
      ROW                                      COLUMN+CELL
       row1                                    column=cf1:a, timestamp=1481538756308, value=ab
      
      hbase(main):013:0* scan 'testtable', FILTER=>"(ValueFilter(=,'binary:x') AND ValueFilter(=,'binary:y')) OR ValueFilter(=,'binary:ab')"
      ROW                                      COLUMN+CELL
       row1                                    column=cf1:a, timestamp=1481538756308, value=ab
      
      hbase(main):014:0> scan 'testtable', FILTER=>"(ValueFilter(=,'binary:x') AND (ValueFilter(=,'binary:y'))) OR ValueFilter(=,'binary:ab')"
      ROW                                      COLUMN+CELL
      0 row(s) in 0.0100 seconds
      

      In the last scan, we should got a row.
      The inner cause is that the last filter is parsed incorrectly.

      Attachments

        1. 17297.master.patch
          3 kB
          Xuesen Liang

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            liangxs Xuesen Liang
            liangxs Xuesen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment