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

Hong Tang commented on PIG-526:
-------------------------------

Probably it is better for me to rephrase the issue as follows:

Need <key, value> order control on PIG MAP type.

For the lest, I would like to have the capability of keeping them sorted by 
key. Otherwise, it is more flexible to have PIG honor the ordering from the 
user-created Map object. The conceptual gap here is that: I can set a MAP datum 
using a SortedMap object when providing a tuple object; but after I write the 
tuple out and later read it back (through Writable interface), the iteration 
order of <key, value> pairs is completely changed.



> Order of <key, value> pairs not preserved in MAP type.
> ------------------------------------------------------
>
>                 Key: PIG-526
>                 URL: https://issues.apache.org/jira/browse/PIG-526
>             Project: Pig
>          Issue Type: Bug
>          Components: data
>    Affects Versions: types_branch
>            Reporter: Hong Tang
>
> PIG uses HashMap to deserialize the Pig MAP type which will not observe the 
> order of <key, value> pairs.

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