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

Thejas M Nair commented on PIG-2526:
------------------------------------

I think this feature is worthwhile, I don't see a reason to limit map keys to 
just constants. This will also be easy to implement. 
                
> Add ability to parametize keys in maps with tuple fields or scalars
> -------------------------------------------------------------------
>
>                 Key: PIG-2526
>                 URL: https://issues.apache.org/jira/browse/PIG-2526
>             Project: Pig
>          Issue Type: New Feature
>          Components: data, parser
>    Affects Versions: 0.9.2
>            Reporter: Russell Jurney
>              Labels: data, happy, map, parameter, parametize, pig, type
>
> I want to access values in maps by tuple fields.
> A = load 'data' as (id:int, M:map[]);
> B = load 'other_data' as (id:int, cat:chararray);
> C = JOIN A by id, C by id;
> D = foreach A generate A:id, M#cat as hash_value; /* the value in cat for 
> each record serves as the key in the map to retrieve its value. */

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to