abstractdog commented on code in PR #5613:
URL: https://github.com/apache/hive/pull/5613#discussion_r1923581897


##########
ql/src/java/org/apache/hadoop/hive/ql/QueryInfo.java:
##########
@@ -40,10 +45,17 @@ public QueryInfo(String state, String userName, String 
executionEngine, String s
     this.userName = userName;
     this.executionEngine = executionEngine;
     this.beginTime = System.currentTimeMillis();
+    this.beginTimeUTC = Instant.ofEpochMilli(beginTime);
     this.sessionId = sessionId;
     this.operationId = operationId;
   }
 
+  public static QueryInfo getFromConf(HiveConf conf) {
+    return new QueryInfo("INITIALIZED", 
conf.get(DriverContext.DRIVER_DEFAULT_USER_NAME_PROP),

Review Comment:
   makes sense, in this case I'm refactoring the QueryInfo constructor too 
receive an OperationState



-- 
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: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to