You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Rohini Palaniswamy (JIRA)" <ji...@apache.org> on 2016/05/24 22:37:14 UTC

[jira] [Updated] (PIG-4567) Allow UDFs to specify a counter increment other than default of 1

     [ https://issues.apache.org/jira/browse/PIG-4567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rohini Palaniswamy updated PIG-4567:
------------------------------------
    Fix Version/s:     (was: 0.16.0)
                   0.17.0

> Allow UDFs to specify a counter increment other than default of 1
> -----------------------------------------------------------------
>
>                 Key: PIG-4567
>                 URL: https://issues.apache.org/jira/browse/PIG-4567
>             Project: Pig
>          Issue Type: Improvement
>    Affects Versions: 0.15.0
>            Reporter: Prashant Kommireddi
>             Fix For: 0.17.0
>
>
> Current APIs (EvalFunc, LoadFunc and StoreFunc) have a default *warn* method to report counters which increments by 1. 
> {code}
> public final void warn(String msg, Enum warningEnum)
> {code}
> It would be more flexible to have an additional method that takes in an argument to increment the counter by.
> {code}
> public final void warn(String msg, Enum warningEnum, long incr)
> {code}
> This will be useful when you might have, for instance, several fields within the same row that are bad and you want the counter to reflect that. Making repetitive "warn" calls is not ideal.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)