You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "hc busy (JIRA)" <ji...@apache.org> on 2009/10/12 20:55:31 UTC

[jira] Updated: (PIG-1016) Reading in map data seems broken

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

hc busy updated PIG-1016:
-------------------------

    Status: Patch Available  (was: Open)

% diff org/apache/pig/data/parser/TextDataParser.jjt org/apache/pig/data/parser/newTextDataParser.jjt
145c145
< 	String value = null;
---
> 	Object value = null;
149c149
< 	(key = StringDatum() "#" value = StringDatum())
---
> 	(key = StringDatum() "#" value = Datum())
151c151
< 		keyValues.put(key, new DataByteArray(value.getBytes("UTF-8")));
---
> 		keyValues.put(key, value);


> Reading in map data seems broken
> --------------------------------
>
>                 Key: PIG-1016
>                 URL: https://issues.apache.org/jira/browse/PIG-1016
>             Project: Pig
>          Issue Type: Improvement
>          Components: data
>    Affects Versions: 0.4.0
>            Reporter: hc busy
>         Attachments: map_to_any_value.patch
>
>
> Hi, I'm trying to load a map that has a tuple for value. The read fails in 0.4.0 because of a misconfiguration in the parser. Where as in almost all documentation it is stated that value of the map can be any time.
> I've attached a patch that allows us to read in complex objects as value as documented. I've done simple verification of loading in maps with tuple/map values and writing them back out using LOAD and STORE. All seems to work fine.

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