mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
Try to fix 02494_query_result_cache_eligible_queries.sql
This commit is contained in:
parent
3790952631
commit
5d72382c6f
@ -8,18 +8,16 @@ SET enable_experimental_query_result_cache = true;
|
||||
-- check that SELECT statements create entries in the query result cache ...
|
||||
SELECT 1 SETTINGS enable_experimental_query_result_cache = true;
|
||||
1
|
||||
SELECT 2 SETTINGS enable_experimental_query_result_cache = true;
|
||||
2
|
||||
SELECT count(*) FROM system.queryresult_cache;
|
||||
2
|
||||
-- ... EXPLAIN SELECT should not create such an entry ...
|
||||
1
|
||||
-- ... yet EXPLAIN SELECT should not create such an entry ...
|
||||
EXPLAIN SELECT 2 SETTINGS enable_experimental_query_result_cache = true;
|
||||
Expression ((Projection + Before ORDER BY))
|
||||
ReadFromStorage (SystemOne)
|
||||
SELECT count(*) FROM system.queryresult_cache;
|
||||
2
|
||||
1
|
||||
SYSTEM DROP QUERY RESULT CACHE;
|
||||
-- ... and all other statements don't
|
||||
-- ... and all other statements also should not create entries:
|
||||
|
||||
-- CREATE
|
||||
CREATE TABLE eligible_test (a String) ENGINE=MergeTree ORDER BY a; -- SETTINGS enable_experimental_query_result_cache = true; -- SETTINGS rejected as unknown
|
||||
|
Loading…
Reference in New Issue
Block a user