-----------------------------------------------------------
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