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

There is a possibility that data cannot be obtained during reverse fuzzy query.

    XMLWordPrintableJSON

Details

    Description

      this is my example:

      1.  

      create 'abcd','f'

      put 'abcd','111311','f:name','aaaaa'

      put 'abcd','111444','f:name','aaaaa'

      put 'abcd','111511','f:name','aaaaa'

      put 'abcd','111611','f:name','aaaaa'

      put 'abcd','111446','f:name','aaaaa'

      put 'abcd','111777 ','f:name','aaaaa'

      put 'abcd',' 111777','f:name','aaaaa'

       

      2.  When I don't use the reversed query, I can get the data.

      scan 'abcd', {FILTER => org.apache.hadoop.hbase.filter.FuzzyRowFilter.new(Arrays.asList(Pair.new(Bytes.toBytesBinary('111433'),Bytes.toBytesBinary("\xFF\xFF\xFF\xFF\x02\x02"))))}

       

      3. When I use the reversed query, I can not get the data.

      scan 'abcd', {REVERSED=>TRUE, FILTER => org.apache.hadoop.hbase.filter.FuzzyRowFilter.new(Arrays.asList(Pair.new(Bytes.toBytesBinary('111433'),Bytes.toBytesBinary("\xFF\xFF\xFF\xFF\x02\x02"))))}

       

      4. 

      The test shows that the following two issues may be related to this issue: HBASE-26232
      How to reproduce the issue resolved by this issue?
      Currently, I solve the fuzzy query by rolling back the code of this issue. Is there a better solution?

       

      Attachments

        Issue Links

          Activity

            People

              paksyd Dávid Paksy
              qzwsx qazwsx
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: