You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Benoit Sigoure (JIRA)" <ji...@apache.org> on 2010/03/14 03:38:27 UTC
[jira] Created: (HBASE-2323) filter.RegexStringComparator does not
work in presence of the byte 0xA
filter.RegexStringComparator does not work in presence of the byte 0xA
----------------------------------------------------------------------
Key: HBASE-2323
URL: https://issues.apache.org/jira/browse/HBASE-2323
Project: Hadoop HBase
Issue Type: Bug
Components: filters
Affects Versions: 0.20.3
Reporter: Benoit Sigoure
Assignee: Benoit Sigoure
I'm trying to use {{RegexStringComparator}} in conjunction with {{RowFilter}}. One of my row keys contained the byte 0xA, which turns out to be the ASCII code for the newline character (\n). When the row key is converted to a string in order to use the regexp facility of the Java standard library, it becomes a string containing two lines and my regexp does not match.
I believe the solution is to compile the regexp with the {{DOTALL}} flag. Luckily, this flag can be "passed" by the client by prefixing the regexp with {{(?s)}} so people working with an older version of HBase can work around this issue without having to upgrade.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.