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

Xuefu Zhang commented on PIG-356:
---------------------------------

Empty string as a map key is valid key in java, so why should we disallow then?

> map lookup on empty key should be disallowed at parse time
> ----------------------------------------------------------
>
>                 Key: PIG-356
>                 URL: https://issues.apache.org/jira/browse/PIG-356
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.2.0
>            Reporter: Pradeep Kamath
>            Assignee: Xuefu Zhang
>            Priority: Minor
>             Fix For: 0.9.0
>
>
> Currently the following is allowed:
> {code}
> a = load 'testfile';
> b = foreach a generate $0#'apple', $0#'mango', $0#'', flatten($1#'orange');
> {code}
> Looking up an empty key ($0#'') should not be allowed at parse time

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

Reply via email to