You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Alan Gates (JIRA)" <ji...@apache.org> on 2009/01/21 02:21:59 UTC
[jira] Commented: (PIG-620) find Max Tuple by 1st field UDF (for
piggybank)
[ https://issues.apache.org/jira/browse/PIG-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665672#action_12665672 ]
Alan Gates commented on PIG-620:
--------------------------------
Thanks for the patch. A couple of comments. One, the file needs the Apache header. Two, you have a println at the end of max() detailing the tuple being returned. That looks like a debug statement. Did you intend to leave it in there?
> find Max Tuple by 1st field UDF (for piggybank)
> -----------------------------------------------
>
> Key: PIG-620
> URL: https://issues.apache.org/jira/browse/PIG-620
> Project: Pig
> Issue Type: New Feature
> Components: impl
> Affects Versions: types_branch
> Reporter: Vadim Zaliva
> Fix For: types_branch
>
> Attachments: MaxTupleBy1stField.java
>
>
> This is simple UDF which takes bag of tuples and returns one with max. 1st column.
> It is fairly trivial but I have seen people asking for it. Detailed usage comments are in Javadoc.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.