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

Chinna Rao Lalam commented on HIVE-2402:
----------------------------------------

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.

> 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