[ https://issues-test.apache.org/jira/browse/HIVE-3628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16265589#comment-16265589 ]
Pankaj Khattar commented on HIVE-3628: -------------------------------------- Usage: public class UDAFEvaluator extends GenericUDAFEvaluator{ @Override *public* *void* iterate(*final* +AggregationBuffer+ agg, *final* Object[] parameters) *throws* HiveException { MapredContext._get_().getReporter().getCounter(...).increment(1); } } > Provide a way to use counters in Hive through UDF > ------------------------------------------------- > > Key: HIVE-3628 > URL: https://issues-test.apache.org/jira/browse/HIVE-3628 > Project: Hive > Issue Type: Improvement > Components: UDF > Reporter: Viji > Assignee: Navis > Priority: Minor > Labels: TODOC11 > Fix For: 0.11.0 > > Attachments: HIVE-3628.D8007.1.patch, HIVE-3628.D8007.2.patch, > HIVE-3628.D8007.3.patch, HIVE-3628.D8007.4.patch, HIVE-3628.D8007.5.patch, > HIVE-3628.D8007.6.patch > > > Currently it is not possible to generate counters through UDF. We should > support this. > Pig currently allows this. -- This message was sent by Atlassian JIRA (v7.6.0#76001)