pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yan Zhou (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-1026) [zebra] map split returns null
Date Mon, 19 Oct 2009 19:31:59 GMT

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

Yan Zhou commented on PIG-1026:
-------------------------------

The STR_STORAGE actually has a problem : m2#{x} is actually specified twice. So a syntax exception
should have been thrown. I'm going to attach a patch that throws the exception in a proper
manner.

After I correct the syntax error, the tests pass, particularly with "[m1#{a|b}, m2#{x|y}];
[m1]; [m2]" as the storage specification.

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


Mime
View raw message