mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
325c6bdf3d
Reasons: - The cache will at some point store intermediate results as opposed to only query results. We should change the terminology now without having to worry about backward compat. - Equivalent caches in MySQL (1) and Starrocks (2) are called "query cache". - The new name is ca. 13.8% more catchy. (1) https://dev.mysql.com/doc/refman/5.6/en/query-cache.html (2) https://docs.starrocks.io/en-us/2.5/using_starrocks/query_cache
16 lines
476 B
SQL
16 lines
476 B
SQL
-- Tags: no-parallel, no-fasttest
|
|
-- Tag no-fasttest: Depends on OpenSSL
|
|
-- Tag no-parallel: Messes with internal cache
|
|
|
|
SET allow_experimental_query_cache = true;
|
|
|
|
SYSTEM DROP QUERY CACHE;
|
|
|
|
-- Cache a result of a query with secret in the query cache
|
|
SELECT hex(encrypt('aes-128-ecb', 'plaintext', 'passwordpassword')) SETTINGS use_query_cache = true;
|
|
|
|
-- The secret should not be revealed in system.query_cache
|
|
SELECT query FROM system.query_cache;
|
|
|
|
SYSTEM DROP QUERY CACHE;
|