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

Prashant Kommireddi commented on PIG-4567:
------------------------------------------

Hi [~daijy], I changed it to 0.16. When are you planning to roll 0.15 RC? I 
will try and make it before then, if not I will aim for 0.16.

> 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.16.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)

Reply via email to