You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Ádám Szita (Jira)" <ji...@apache.org> on 2022/11/15 10:04:00 UTC

[jira] [Updated] (HIVE-26167) QueryStateMap in SessionState is not maintained correctly

     [ https://issues.apache.org/jira/browse/HIVE-26167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ádám Szita updated HIVE-26167:
------------------------------
    Fix Version/s: 4.0.0-alpha-2

> QueryStateMap in SessionState is not 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
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0-alpha-2
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> 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.10#820010)