Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
4.0.1
-
None
Description
SQL queries return stale results from the cache when the tables involved in the queries are dropped and then recreated with the same name.
The problem can be reproduced by executing the following sequence of queries.
CREATE TABLE author (fname STRING) STORED AS ORC TBLPROPERTIES('transactional'='true'); INSERT INTO author VALUES ('Victor'); SELECT fname FROM author; DROP TABLE author; CREATE TABLE author (fname STRING) STORED AS ORC TBLPROPERTIES('transactional'='true'); INSERT INTO author VALUES ('Alexander'); SELECT fname FROM author;
The first execution of the SELECT query correctly returns "Victor" as a result.
The second execution of the SELECT query incorrectly returns "Victor" while it should return "Alexander".
The problem manifestates only when the hive.query.results.cache.enabled is set to true.
Attachments
Attachments
Issue Links
- relates to
-
HIVE-19154 Poll notification events to invalidate the results cache
- Closed
-
HIVE-19820 add ACID stats support to background stats updater and fix bunch of edge cases found in SU tests
- Closed
-
HIVE-18513 Query results caching
- Closed
- links to