[
https://issues.apache.org/jira/browse/HIVE-3825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Namit Jain updated HIVE-3825:
-----------------------------
Status: Open (was: Patch Available)
My bad - these are server side hooks.
So, the test jar and session state would not be available on the server side.
Writing a test is not easy - create a counter in the hook, and validate that
counter
from a post execution hook.
Another simpler option is to pass the operator in the operatorContext, and get
counters from there.
Look at
/**
* List of counter names associated with the operator. It contains the
* following default counters NUM_INPUT_ROWS NUM_OUTPUT_ROWS TIME_TAKEN
* Individual operators can add to this list via addToCounterNames methods.
*/
protected ArrayList<String> counterNames;
/**
* Each operator has its own map of its counter names to disjoint
* ProgressCounter - it is populated at compile time and is read in at
* run-time while extracting the operator specific counts.
*/
protected HashMap<String, ProgressCounter> counterNameToEnum;
from Operator.java
You need to create more counters and then read them. We can talk offline if
that helps.
> Add Operator level Hooks
> ------------------------
>
> Key: HIVE-3825
> URL: https://issues.apache.org/jira/browse/HIVE-3825
> Project: Hive
> Issue Type: New Feature
> Reporter: Pamela Vagata
> Assignee: Pamela Vagata
> Priority: Minor
> Attachments: HIVE-3825.2.patch.txt, HIVE-3825.3.patch.txt,
> HIVE-3825.txt
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira