[
https://issues.apache.org/jira/browse/HBASE-18969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16198378#comment-16198378
]
bingo edited comment on HBASE-18969 at 10/10/17 8:59 AM:
---------------------------------------------------------
{code}hbase(main):003:0> scan 'wishdb1', {FILTER=>"RowFilter(=,
'regexstring:(?s)^.{3}\\Q\x59\xc4\x98\\E.{1}(?:.{6})*\\Q\x00\x00\x0a\x00\x00\x05\\E(?:.{6})*$')"}
ROW COLUMN+CELL
\x00\x00\x03Y\xC4\x98\xD0\x00\x00\x0A\x00\x0 column=t:[\xC0\x8C1,
timestamp=1507530755374, value={\x00\xE1\x00
0\x05
1 row(s) in 0.0400 seconds
hbase(main):004:0> scan 'wishdb1', {FILTER=>"RowFilter(=,
'regexstring:(?s)^.{7}(?:.{6})*\\Q\x00\x00\x0a\x00\x00\x05\\E(?:.{6})*$')"}
ROW COLUMN+CELL
0 row(s) in 0.0140 seconds{code}
The second one doesn't match?
was (Author: hu198021688500):
hbase(main):003:0> scan 'wishdb1', {FILTER=>"RowFilter(=,
'regexstring:(?s)^.{3}\\Q\x59\xc4\x98\\E.{1}(?:.{6})*\\Q\x00\x00\x0a\x00\x00\x05\\E(?:.{6})*$')"}
ROW COLUMN+CELL
\x00\x00\x03Y\xC4\x98\xD0\x00\x00\x0A\x00\x0 column=t:[\xC0\x8C1,
timestamp=1507530755374, value={\x00\xE1\x00
0\x05
1 row(s) in 0.0400 seconds
hbase(main):004:0> scan 'wishdb1', {FILTER=>"RowFilter(=,
'regexstring:(?s)^.{7}(?:.{6})*\\Q\x00\x00\x0a\x00\x00\x05\\E(?:.{6})*$')"}
ROW COLUMN+CELL
0 row(s) in 0.0140 seconds
The second one doesn't match?
> access hbase thrift2 in python and cant get correct result use filterString
> -----------------------------------------------------------------------------
>
> Key: HBASE-18969
> URL: https://issues.apache.org/jira/browse/HBASE-18969
> Project: HBase
> Issue Type: Bug
> Components: Thrift
> Affects Versions: 1.1.2
> Environment: python 2.7
> Reporter: bingo
>
> {code}RowFilter(=,
> 'regexstring:(?s)^.{4}\\Q\xc4\x98\\E.{1}(?:.{6})*\\Q\x00\x00\x0a\x00\x00\x05\\E(?:.{6})*$'){code}
> can match
> {code}\x00\x00\x03Y\xC4\x98\xD0\x00\x00\x0A\x00\x00\x05 column=t:[\xC0\x8C1,
> timestamp=1507530755374, value={\x00\xE1\x00 {code}
> but
> {code}RowFilter(=,
> 'regexstring:(?s)^.{4}\\Q\xc4\\E.{2}(?:.{6})*\\Q\x00\x00\x0a\x00\x00\x05\\E(?:.{6})*$'){code}
> can not match
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)