Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.4.14
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
Attachments
Issue Links
- is related to
-
HBASE-28621 PrefixFilter should use SEEK_NEXT_USING_HINT
- Resolved
- relates to
-
HBASE-12183 FuzzyRowFilter doesn't support reverse scans
- Closed
- links to