mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Fix tests
This commit is contained in:
parent
7dacd8aa84
commit
285dbc39f7
@ -7,6 +7,7 @@ DROP TABLE IF EXISTS eligible_test2;
|
||||
|
||||
-- enable query cache session-wide but also force it individually in each of below statements
|
||||
SET use_query_cache = true;
|
||||
SET query_cache_system_table_handling = 'save';
|
||||
|
||||
-- check that SELECT statements create entries in the query cache ...
|
||||
SELECT 1 SETTINGS use_query_cache = true;
|
||||
|
@ -2,6 +2,7 @@
|
||||
-- Tag no-parallel: Messes with internal cache
|
||||
|
||||
SET allow_experimental_analyzer = 1;
|
||||
SET query_cache_system_table_handling = 'save';
|
||||
|
||||
SYSTEM DROP QUERY CACHE;
|
||||
|
||||
|
@ -12,11 +12,10 @@ SYSTEM STOP MERGES t_cache_sparse;
|
||||
INSERT INTO t_cache_sparse SELECT number, number FROM numbers(10000);
|
||||
INSERT INTO t_cache_sparse SELECT number, 0 FROM numbers(10000);
|
||||
|
||||
SET use_query_cache = 1;
|
||||
SET max_threads = 1;
|
||||
|
||||
SELECT v FROM t_cache_sparse FORMAT Null;
|
||||
SELECT v FROM t_cache_sparse FORMAT Null;
|
||||
SELECT v FROM t_cache_sparse SETTINGS use_query_cache = 1, max_threads = 1 FORMAT Null;
|
||||
SELECT v FROM t_cache_sparse SETTINGS use_query_cache = 1, max_threads = 1 FORMAT Null;
|
||||
SELECT count() FROM system.query_cache WHERE query LIKE 'SELECT v FROM t_cache_sparse%';
|
||||
|
||||
DROP TABLE t_cache_sparse;
|
||||
|
Loading…
Reference in New Issue
Block a user