pvary commented on code in PR #3234:
URL: https://github.com/apache/hive/pull/3234#discussion_r857660531
##########
ql/src/java/org/apache/hadoop/hive/ql/Driver.java:
##########
@@ -532,6 +522,10 @@ private void prepareContext() throws
CommandProcessorException {
context.setHDFSCleanup(true);
driverTxnHandler.setContext(context);
+
+ if (SessionState.get() != null) {
+
SessionState.get().addQueryState(getConf().get(HiveConf.ConfVars.HIVEQUERYID.varname),
getQueryState());
Review Comment:
Would it be better to use `driverContext.getQueryState().getQueryId()`
instead of depending on the conf?
--
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]