[jira] [Updated] (PIG-2600) Better Map support

2012-10-23 Thread Prashant Kommireddi (JIRA)
INVERSEMAP($0); grunt dump b; ([2#{(1),(11)},apache#{(open)}]) ([hadoop#{(apache),(12)},4#{(3)}]) /code Olga, adding release notes. Let me know if you need more info. Better Map support -- Key: PIG-2600 URL: https

[jira] [Commented] (PIG-2600) Better Map support

2012-10-22 Thread Olga Natkovich (JIRA)
that were added as well as their syntax and usage examples. This is for inclusion in the documentation, thanks! Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig

[jira] [Commented] (PIG-2600) Better Map support

2012-10-22 Thread Jonathan Coveney (JIRA)
? :) Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig Issue Type: Improvement Reporter: Jonathan Coveney Assignee: Prashant Kommireddi

[jira] [Commented] (PIG-2600) Better Map support

2012-10-22 Thread Prashant Kommireddi (JIRA)
should I be adding this? Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig Issue Type: Improvement Reporter: Jonathan Coveney Assignee

[jira] [Commented] (PIG-2600) Better Map support

2012-10-22 Thread Prashant Kommireddi (JIRA)
present in java files for each of the UDFs. Lmk if it needs to go into release notes (and where) and I can put it there. Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600

[jira] [Commented] (PIG-2600) Better Map support

2012-10-22 Thread Olga Natkovich (JIRA)
into the release notes. This way it is much easier to created documentation patch. Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig Issue Type: Improvement

[jira] [Commented] (PIG-2600) Better Map support

2012-05-21 Thread Jonathan Coveney (JIRA)
! Looking forward to seeing more contribution :) Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig Issue Type: Improvement Reporter: Jonathan

[jira] [Commented] (PIG-2600) Better Map support

2012-05-21 Thread Prashant Kommireddi (JIRA)
the resolution status? Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig Issue Type: Improvement Reporter: Jonathan Coveney Assignee

[jira] [Resolved] (PIG-2600) Better Map support

2012-05-21 Thread Jonathan Coveney (JIRA)
[ https://issues.apache.org/jira/browse/PIG-2600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Coveney resolved PIG-2600. --- Resolution: Fixed Better Map support -- Key: PIG-2600

[jira] [Commented] (PIG-2600) Better Map support

2012-05-17 Thread Jonathan Coveney (JIRA)
comment and then I can commit: VALUESET seems to be in 2space form instead of 4space form. My guess is you forgot to change your IDE from the convention your use at work, or something like that. Fix that and then we're good to go :) Jon Better Map support

[jira] [Updated] (PIG-2600) Better Map support

2012-05-17 Thread Prashant Kommireddi (JIRA)
. Seems like the conventions are different there. Uploading a new patch. Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig Issue Type: Improvement

[jira] [Commented] (PIG-2600) Better Map support

2012-05-08 Thread Jonathan Coveney (JIRA)
and unknown primitive (primitive implies int etc), but just a wrong type in general. That's it though. Should be good for committing after that. Thanks for the work! Better Map support -- Key: PIG-2600 URL: https

[jira] [Updated] (PIG-2600) Better Map support

2012-05-08 Thread Prashant Kommireddi (JIRA)
. Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig Issue Type: Improvement Reporter: Jonathan Coveney Assignee: Prashant Kommireddi Fix

[jira] [Commented] (PIG-2600) Better Map support

2012-05-08 Thread Jonathan Coveney (JIRA)
, dataBag); 105 } else { 106 bag.add(TUPLE_FACTORY.newTuple(entry.getKey())); 107 } {code} You can just reuse the bag reference instead of making a new dataBag That should be the last of the comments... Better Map support

[jira] [Commented] (PIG-2600) Better Map support

2012-05-04 Thread Jonathan Coveney (JIRA)
? Thanks again for your work on this. It is super close. Jon Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig Issue Type: Improvement Reporter

[jira] [Commented] (PIG-2600) Better Map support

2012-05-04 Thread Prashant Kommireddi (JIRA)
? Either way, too early to be thinking about optimization there :) I will upload a patch soon with the changes, thanks for reviewing again. Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600

[jira] [Updated] (PIG-2600) Better Map support

2012-05-04 Thread Prashant Kommireddi (JIRA)
[ https://issues.apache.org/jira/browse/PIG-2600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Prashant Kommireddi updated PIG-2600: - Attachment: PIG-2600_6.patch Better Map support

[jira] [Updated] (PIG-2600) Better Map support

2012-05-03 Thread Prashant Kommireddi (JIRA)
patch uploaded. Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig Issue Type: Improvement Reporter: Jonathan Coveney Assignee: Prashant

[jira] [Commented] (PIG-2600) Better Map support

2012-04-08 Thread Jonathan Coveney (Commented) (JIRA)
this, I'm a fan of the following to avoid having to do containsKey and then a get right afterwards {code} DataBag bag = (DataBag)inverseMap.get(newKey); if (bag==null) { //logic } else { bad.add( ... //more logic) } {code} Thanks again for the legwork on this. Better Map

[jira] [Updated] (PIG-2600) Better Map support

2012-04-06 Thread Prashant Kommireddi (Updated) (JIRA)
(changing return type to bags). I have also added test cases for various primitive types being Map values. Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig

[jira] [Assigned] (PIG-2600) Better Map support

2012-03-21 Thread Prashant Kommireddi (Assigned) (JIRA)
[ https://issues.apache.org/jira/browse/PIG-2600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Prashant Kommireddi reassigned PIG-2600: Assignee: Prashant Kommireddi Better Map support

[jira] [Commented] (PIG-2600) Better Map support

2012-03-21 Thread Jonathan Coveney (Commented) (JIRA)
. Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig Issue Type: Improvement Reporter: Jonathan Coveney Assignee: Prashant Kommireddi

[jira] [Commented] (PIG-2600) Better Map support

2012-03-21 Thread Jonathan Coveney (Commented) (JIRA)
as well, we know the return type: MapString,String (nothing else is really possibly). For the tests on inversemap, probably worth testing the case of boolean values, int, etc values. Better Map support -- Key: PIG-2600 URL

[jira] [Commented] (PIG-2600) Better Map support

2012-03-21 Thread Prashant Kommireddi (Commented) (JIRA)
Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig Issue Type: Improvement Reporter: Jonathan Coveney Assignee: Prashant Kommireddi Fix

[jira] [Updated] (PIG-2600) Better Map support

2012-03-20 Thread Prashant Kommireddi (Updated) (JIRA)
and INVERSEMAP. Added corresponding test cases to TestBuiltin.java. Also added documentation for all the new classes. Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig

[jira] [Commented] (PIG-2600) Better Map support

2012-03-20 Thread Jonathan Coveney (Commented) (JIRA)
:) Another option on the inversmap only works on MapString,String front would be that, if given MapString, T it converts T to a string, which I think isn't a bad idea. Maybe that could be a constructor option, and the default is an error. Better Map support

[jira] [Commented] (PIG-2600) Better Map support

2012-03-20 Thread Prashant Kommireddi (Commented) (JIRA)
statements. The 2nd case MapString, T makes sense for primitive types, will upload a new patch soon. Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig Issue

[jira] [Updated] (PIG-2600) Better Map support

2012-03-20 Thread Prashant Kommireddi (Updated) (JIRA)
} Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig Issue Type: Improvement Reporter: Jonathan Coveney Fix For: 0.11 Attachments: PIG

[jira] [Commented] (PIG-2600) Better Map support

2012-03-19 Thread Prashant Kommireddi (Commented) (JIRA)
(as per hashmap put behavior) {code} grunt cat data; [1#2,3#4,4#2] [apache#hadoop,doug#hadoop] grunt a = load 'data' as (M:[]); grunt b = foreach a generate INVERSEMAP($0); grunt dump b; [4#3,2#4] [hadoop#doug] {code} Better Map support -- Key

[jira] [Commented] (PIG-2600) Better Map support

2012-03-16 Thread Prashant Kommireddi (Commented) (JIRA)
and 2 MAPTOBAG and BAGTOMAP respectively, since TOBAG, TOMAP exist already. In fact, all UDFs here (except INVERSEMAP) could be prefixed with MAP to avoid confusion. Better Map support -- Key: PIG-2600 URL: https

[jira] [Commented] (PIG-2600) Better Map support

2012-03-16 Thread Jonathan Coveney (Commented) (JIRA)
is getting applied, and it'd be nice not to have more UDFs than we need. Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig Issue Type: Improvement

[jira] [Commented] (PIG-2600) Better Map support

2012-03-16 Thread Prashant Kommireddi (Commented) (JIRA)
existing UDFs and not create type-specific ones. Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig Issue Type: Improvement Reporter: Jonathan

[jira] [Commented] (PIG-2600) Better Map support

2012-03-16 Thread Bill Graham (Commented) (JIRA)
these with Maps or Bags, realize they can't and then write a MapToBag UDF. Do you think INVERSEMAP is something that people need often? I question the general usefulness of that one. Better Map support -- Key: PIG-2600 URL: https

[jira] [Commented] (PIG-2600) Better Map support

2012-03-16 Thread Prashant Kommireddi (Commented) (JIRA)
to me, for eg to get field-index map from index-field. I see it being useful in few cases with click-through analysis as well. Again, not a super required use-case but good to have. Better Map support -- Key: PIG-2600 URL: https

[jira] [Commented] (PIG-2600) Better Map support

2012-03-16 Thread Jonathan Coveney (Commented) (JIRA)
see that looking? As far as inversemap... most of the stuff we've talked about thus far is pretty easy to implement. I'm trying to think of if there is anything more ambitious? Better Map support -- Key: PIG-2600 URL: https

[jira] [Updated] (PIG-2600) Better Map support

2012-03-16 Thread Prashant Kommireddi (Updated) (JIRA)
to have more eyes look at it and comment. I have a test case for KEYSET and will be working on tests for others soon. Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig

Re: Better map support?

2012-03-15 Thread Prashant Kommireddi
, 2012 at 5:47 PM, Jonathan Coveney jcove...@gmail.comwrote: 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

Re: Better map support?

2012-03-15 Thread Jonathan Coveney
a JIRA against this. Thanks, Prashant On Wed, Feb 29, 2012 at 5:47 PM, Jonathan Coveney jcove...@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

[jira] [Created] (PIG-2600) Better Map support

2012-03-15 Thread Jonathan Coveney (Created) (JIRA)
Better Map support -- Key: PIG-2600 URL: https://issues.apache.org/jira/browse/PIG-2600 Project: Pig Issue Type: Improvement Reporter: Jonathan Coveney Fix For: 0.11 It would be nice if Pig played

Re: Better map support?

2012-03-15 Thread Prashant Kommireddi
on this if needed, please let me know if you have a JIRA against this. Thanks, Prashant On Wed, Feb 29, 2012 at 5:47 PM, Jonathan Coveney jcove...@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