You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2017/02/01 00:31:51 UTC

[jira] [Commented] (PIG-1804) Alow Jython function to implement Algebraic and/or Accumulator interfaces

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

Daniel Dai commented on PIG-1804:
---------------------------------

Generally looks good. I think there could be a better algebraic sample code than PyMaxAcc to illustrate the input/output schema of initial/intermed/final function, which should be the same as Java UDF, and the schema for final is typically a scalar. "PyAVG" should be a good one.

> Alow Jython function to implement Algebraic and/or Accumulator interfaces
> -------------------------------------------------------------------------
>
>                 Key: PIG-1804
>                 URL: https://issues.apache.org/jira/browse/PIG-1804
>             Project: Pig
>          Issue Type: New Feature
>          Components: impl
>    Affects Versions: 0.16.0
>            Reporter: Julien Le Dem
>            Assignee: Adam Szita
>             Fix For: 0.17.0
>
>         Attachments: PIG-1804.0.patch
>
>
> Currently Python UDFs can only be simple functions. For performance improvements in advanced use cases it should be possible to extend Algebraic and/or Accumulator interfaces



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)