You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Cheolsoo Park (JIRA)" <ji...@apache.org> on 2013/08/14 04:20:48 UTC

[jira] [Assigned] (PIG-3420) Failed to retrieve values from data loaded by AvroStorage

     [ https://issues.apache.org/jira/browse/PIG-3420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cheolsoo Park reassigned PIG-3420:
----------------------------------

    Assignee: Yuanli Dong
    
> Failed to retrieve values from data loaded by AvroStorage
> ---------------------------------------------------------
>
>                 Key: PIG-3420
>                 URL: https://issues.apache.org/jira/browse/PIG-3420
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.12
>            Reporter: Yuanli Dong
>            Assignee: Yuanli Dong
>             Fix For: 0.12
>
>         Attachments: PIG-3420_08132013.patch
>
>
> Running the following script:
> a = load './newavro/data/avro/EmployeeMapF.ser' USING AvroStorage();
> dump a;
> c = foreach a generate name, office, 'Toyota', cars#'Toyota' as toyota, 'Mazda', cars#'Mazda', 'Nissan', cars#'Nissan' as nissan;
> Although object a has all the data loaded, c cannot retrieve the map values, column 4,6,8 are empty in the result.
> The map keys is of class Utf8, but the keys used to retrieve data is String, that is the reason why we cannot retrieve the values. The patch fix this problem. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira