marton-bod commented on a change in pull request #2261: URL: https://github.com/apache/hive/pull/2261#discussion_r636149696
########## File path: ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java ########## @@ -349,6 +349,20 @@ private final AtomicLong sparkSessionId = new AtomicLong(); + private final Map<String, Object> queryStateMap = new HashMap<>(); + + public Object getQueryState(String queryId) { + return queryStateMap.get(queryId); + } + + public void addQueryState(String queryId, Object queryState) { Review comment: Shouldn't we only accept only QueryState objects here? i.e. `public void addQueryState(String queryId, QueryState queryState) {` -- 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. 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