[ https://issues.apache.org/jira/browse/PIG-4567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14555620#comment-14555620 ]
Daniel Dai commented on PIG-4567: --------------------------------- Thanks [~prkommireddi], I will roll a RC by the end of the week. > 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)