Fix tests

This commit is contained in:
Robert Schulze 2024-04-07 17:12:52 +00:00
parent 7dacd8aa84
commit 285dbc39f7
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
3 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;