rtrivedi12 commented on code in PR #5319: URL: https://github.com/apache/hive/pull/5319#discussion_r1872299102
########## service/src/java/org/apache/hive/service/cli/operation/HiveCommandOperation.java: ########## @@ -110,6 +116,15 @@ public void runInternal() throws HiveSQLException { String[] tokens = command.split("\\s"); String commandArgs = command.substring(tokens[0].length()).trim(); + // For ShowProcesslistProcessor , session and operation level details are fetched + // from SessionManager which can not be accessed from commandProcessor. So, we need to create DTO here.. + if (commandProcessor instanceof ShowProcesslistProcessor) { + List<ProcessListInfo> liveQueries = getLiveQueryInfos(parentSession); Review Comment: @deniskuzZ I have extracted the logic in a separate class, `ShowProcesslistOperation` (which extends HiveCommandOperation). Thanks for the input! -- 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