pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russell Jurney (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-2526) Add ability to parametize keys in maps with tuple fields or scalars
Date Sat, 11 Feb 2012 00:38:59 GMT

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

Russell Jurney commented on PIG-2526:

If this is easy to do, I'd like to take a crack at it.  If you don't mind me harassing you
on twitter DM ;)
> 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


View raw message