You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Adam Szita (JIRA)" <ji...@apache.org> on 2016/07/20 07:14:20 UTC
[jira] [Commented] (PIG-4852) Add accumulator implementation for
MaxTupleBy1stField
[ https://issues.apache.org/jira/browse/PIG-4852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15385473#comment-15385473 ]
Adam Szita commented on PIG-4852:
---------------------------------
Hi,
Isn't this already covered by ExternalTupleByNthField?
I think this should get you the same result:
define myMax ExtremalTupleByNthField( '1', 'max' );
This UDF implements both Algebraic and Accumulator.
> Add accumulator implementation for MaxTupleBy1stField
> -----------------------------------------------------
>
> Key: PIG-4852
> URL: https://issues.apache.org/jira/browse/PIG-4852
> Project: Pig
> Issue Type: Improvement
> Reporter: Eyal Allweil
> Priority: Minor
> Labels: newbie, performance
>
> MaxTupleBy1stField has a regular and algebraic implementation; an accumulator implementation should be relatively easy to do.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)