[
https://issues.apache.org/jira/browse/PIG-3420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rohini Palaniswamy updated PIG-3420:
------------------------------------
Resolution: Fixed
Assignee: Yuanli Dong (was: Yuanli Dong)
Status: Resolved (was: Patch Available)
+1. Committed to trunk (0.12). Thanks Yuanli.
> Failed to retrieve map 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_08152013.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