László Pintér created HIVE-26167: ------------------------------------ Summary: QueryStateMap is SessionState is maintained correctly Key: HIVE-26167 URL: https://issues.apache.org/jira/browse/HIVE-26167 Project: Hive Issue Type: Improvement Reporter: László Pintér Assignee: László Pintér
When the Driver is the QueryStateMap is also initialized with the query ID and the current queryState object. This record is kept in the map until the execution of the query is completed. There are many unit tests that initialise the driver object once during the setup phase, and use the same object to execute all the different queries. As a consequence, after the first execution, the QueryStateMap will be cleaned and all subsequent queries will run into null pointer exception while trying to fetch the current querystate from the SessionState. -- This message was sent by Atlassian Jira (v8.20.7#820007)