phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Liochon (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PHOENIX-2620) NPE in org.apache.phoenix.expression.util.regex.JavaPattern.matches
Date Thu, 21 Jan 2016 14:18:40 GMT
Nicolas Liochon created PHOENIX-2620:
----------------------------------------

             Summary: NPE in org.apache.phoenix.expression.util.regex.JavaPattern.matches
                 Key: PHOENIX-2620
                 URL: https://issues.apache.org/jira/browse/PHOENIX-2620
             Project: Phoenix
          Issue Type: Bug
    Affects Versions: 4.6.0
            Reporter: Nicolas Liochon
             Fix For: 4.8.0


The error shows up w/ likes & dynamic columns for example:
{code}
ht.put(new Put("1".getBytes()).addImmutable(CF, "C2".getBytes(), "".getBytes()));
stmt.executeQuery("SELECT count(1) from PB(F.C2 VARCHAR) where C2 like 'a%'")) {
{code}

gives a stack w/
{code}
Caused by: java.lang.NullPointerException
    at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
    at java.util.regex.Matcher.reset(Matcher.java:309)
    at java.util.regex.Matcher.<init>(Matcher.java:229)
    at java.util.regex.Pattern.matcher(Pattern.java:1093)
    at org.apache.phoenix.expression.util.regex.JavaPattern.matches(JavaPattern.java:51)
    at org.apache.phoenix.expression.LikeExpression.evaluate(LikeExpression.java:297)
    at org.apache.phoenix.filter.BooleanExpressionFilter.evaluate(BooleanExpressionFilter.java:93)
    at org.apache.phoenix.filter.SingleKeyValueComparisonFilter.filterKeyValue(SingleKeyValueComparisonFilter.java:93)
    at org.apache.hadoop.hbase.regionserver.ScanQueryMatcher.match(ScanQueryMatcher.java:418)
    at org.apache.hadoop.hbase.regionserver.StoreScanner.next(StoreScanner.java:545)
    at org.apache.hadoop.hbase.regionserver.KeyValueHeap.next(KeyValueHeap.java:147)
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message