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

Daniel Dai commented on PIG-4567:
---------------------------------

[~prkommireddi], it might not able to make it to 0.15.0. May I change fix 
version to 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.15.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