tanishq-chugh commented on code in PR #5535:
URL: https://github.com/apache/hive/pull/5535#discussion_r2915859546
##########
ql/src/java/org/apache/hadoop/hive/ql/QueryDisplay.java:
##########
@@ -305,6 +309,26 @@ public synchronized void setExplainPlan(String
explainPlan) {
this.explainPlan = explainPlan;
}
+ public synchronized void setTezCounters(TezCounters tc) {
+ this.tezCounters = tc;
+ }
+
+ public synchronized TezCounters getTezCounters() {
+ return this.tezCounters;
+ }
+
+ public synchronized String getCountersAsString() {
+ JSONObject countersJson = new JSONObject();
+ if (tezCounters != null){
+ for (CounterGroup group : tezCounters) {
+ for (TezCounter counter : group) {
+ countersJson.put(group.getName() + " - " + counter.getDisplayName(),
counter.getValue());
+ }
+ }
+ }
+ return countersJson.toString();
+ }
Review Comment:
Addressed this in commit
[893e3a3](https://github.com/apache/hive/pull/5535/commits/893e3a394a2c441d61b1361c90c8bdeffd67db3b)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]