mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +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 ...
|
-- check that SELECT statements create entries in the query result cache ...
|
||||||
SELECT 1 SETTINGS enable_experimental_query_result_cache = true;
|
SELECT 1 SETTINGS enable_experimental_query_result_cache = true;
|
||||||
1
|
1
|
||||||
SELECT 2 SETTINGS enable_experimental_query_result_cache = true;
|
|
||||||
2
|
|
||||||
SELECT count(*) FROM system.queryresult_cache;
|
SELECT count(*) FROM system.queryresult_cache;
|
||||||
2
|
1
|
||||||
-- ... EXPLAIN SELECT should not create such an entry ...
|
-- ... yet EXPLAIN SELECT should not create such an entry ...
|
||||||
EXPLAIN SELECT 2 SETTINGS enable_experimental_query_result_cache = true;
|
EXPLAIN SELECT 2 SETTINGS enable_experimental_query_result_cache = true;
|
||||||
Expression ((Projection + Before ORDER BY))
|
Expression ((Projection + Before ORDER BY))
|
||||||
ReadFromStorage (SystemOne)
|
ReadFromStorage (SystemOne)
|
||||||
SELECT count(*) FROM system.queryresult_cache;
|
SELECT count(*) FROM system.queryresult_cache;
|
||||||
2
|
1
|
||||||
SYSTEM DROP QUERY RESULT CACHE;
|
SYSTEM DROP QUERY RESULT CACHE;
|
||||||
-- ... and all other statements don't
|
-- ... and all other statements also should not create entries:
|
||||||
|
|
||||||
-- CREATE
|
-- CREATE
|
||||||
CREATE TABLE eligible_test (a String) ENGINE=MergeTree ORDER BY a; -- SETTINGS enable_experimental_query_result_cache = true; -- SETTINGS rejected as unknown
|
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