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

Jing Huang commented on PIG-1026:
---------------------------------

Created a customer scenario with this schema and storage hint: 
(TestJira1026.java)

 final static String STR_SCHEMA = "bcookie:bytes,yuid:bytes, 
ip:bytes,query_term:bytes,clickinfo:map(String),demog:map(String),page_params:map(String),viewinfo:collection(f1:map(String))";
   

 final static String STR_STORAGE = 
"[bcookie,yuid,ip,query_term];[clickinfo#{pos|sec|slk|targurl|cost|gpos},page_params#{ipc|vtestid|frcode|pagenum|query}];[clickinfo,page_params,demog];[viewinfo]";
 
Got NullPointExcepiton.

> [zebra] map split returns null
> ------------------------------
>
>                 Key: PIG-1026
>                 URL: https://issues.apache.org/jira/browse/PIG-1026
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.6.0
>            Reporter: Jing Huang
>            Assignee: Yan Zhou
>             Fix For: 0.6.0
>
>         Attachments: MultipleKeyInMapSplitException.patch
>
>
> Here is the test scenario:
>  final static String STR_SCHEMA = "m1:map(string),m2:map(map(int))";
>   //final static String STR_STORAGE = "[m1#{a}];[m2#{x|y}]; [m1#{b}, 
> m2#{z}];[m1]";
>  final static String STR_STORAGE = "[m1#{a}, m2#{x}];[m2#{x|y}]; [m1#{b}, 
> m2#{z}];[m1,m2]";
> projection: String projection2 = new String("m1#{b}, m2#{x|z}");
> User got null pointer exception on reading m1#{b}.
> Yan, please refer to the test class:
> TestNonDefaultWholeMapSplit.java 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to