pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prashant Kommireddi <prash1...@gmail.com>
Subject Re: Better map support?
Date Fri, 16 Mar 2012 05:19:05 GMT
Hi Jon,

I think an "INVERSE_MAP" would be a good use case. Also, instead of (or in
addition to) KEYSET we should have KEYLIST which does not  eliminate
duplicate values.

I would like to help on this if needed, please let me know if you have a
JIRA against this.


On Wed, Feb 29, 2012 at 5:47 PM, Jonathan Coveney <jcoveney@gmail.com>wrote:

> Hey all! In the last couple of weeks I've found myself wanting for better
> map support in pig. I'd be willing to do the work, just wanted to get a
> sense of what people thought might be useful. And maybe some of this
> exists!
> TOBAG - given a Map, outputs {(key,value)}
> KEYSET - returns {(key)} where it is unique
> VALUESET - returns {(value)} where it is unique
> CONCAT - takes some number of Maps, and merges them together. The first
> one's values will override the rest. Or the latest one will. Whatevs.
> Not sure what else would be useful. I'm including user@ on this because
> I'd
> love to hear any map manipulation features you crave. Maps, up to know,
> have been pretty 2nd class and I'd love to help change that.
> Jon

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message