[ 
https://issues.apache.org/jira/browse/HIVE-2402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13100495#comment-13100495
 ] 

jirapos...@reviews.apache.org commented on HIVE-2402:
-----------------------------------------------------


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



> Function like with empty string is throwing null pointer exception
> ------------------------------------------------------------------
>
>                 Key: HIVE-2402
>                 URL: https://issues.apache.org/jira/browse/HIVE-2402
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.8.0
>         Environment: Hadoop 0.20.1, Hive0.8.0 and SUSE Linux Enterprise 
> Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (5)
>            Reporter: Chinna Rao Lalam
>            Assignee: Chinna Rao Lalam
>         Attachments: HIVE-2402.1.patch, HIVE-2402.patch
>
>
> select emp.ename from emp where ename like ''
> This query is throwing null pointer exception

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to