hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinna...@huawei.com
Subject Review Request: Function like with empty string is throwing null pointer exception
Date Thu, 08 Sep 2011 17:51:08 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/1757/
-----------------------------------------------------------

Review request for hive and John Sichi.


Summary
-------

By default patterntype is complex so it is expecting Pattern object but in this scenario pattern
object is null so it is throwing nullpointer exception. Default patterntype can be NONE and
in parseSimplePattern() it will be assigned with right type.


This addresses bug HIVE-2402.
    https://issues.apache.org/jira/browse/HIVE-2402


Diffs
-----

  trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFLike.java 1165244 
  trunk/ql/src/test/queries/clientpositive/udf_like.q 1165244 
  trunk/ql/src/test/results/clientpositive/udf_like.q.out 1165244 

Diff: https://reviews.apache.org/r/1757/diff


Testing
-------

Added unit testcase.


Thanks,

chinna


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message