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

Single Filter in parenthesis cannot be parsed correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0, 0.98.24, 2.0.0
    • Component/s: Filters
    • Labels:
      None
    • Hadoop Flags:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: