From e20341461fbf9fde8148f2f04d4801a6dd5df443 Mon Sep 17 00:00:00 2001 From: kssenii Date: Thu, 11 Aug 2022 23:10:43 +0200 Subject: [PATCH] Update test --- .../02382_filesystem_cache_persistent_files.reference | 6 +++--- .../0_stateless/02382_filesystem_cache_persistent_files.sql | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/queries/0_stateless/02382_filesystem_cache_persistent_files.reference b/tests/queries/0_stateless/02382_filesystem_cache_persistent_files.reference index 2ba8dfeb5b4..d3d9ce25569 100644 --- a/tests/queries/0_stateless/02382_filesystem_cache_persistent_files.reference +++ b/tests/queries/0_stateless/02382_filesystem_cache_persistent_files.reference @@ -9,7 +9,7 @@ INSERT INTO nopers SELECT number, toString(number) FROM numbers(10); SELECT * FROM nopers FORMAT Null; SELECT sum(size) FROM system.filesystem_cache; 194 -SELECT substring(local_path, 58, 10) as file, substring(cache_path, 55, 20) as cache, size +SELECT substring(local_path, 58, 10) as file, substring(cache_path, 53, 20) as cache, size FROM ( SELECT arrayJoin(cache_paths) AS cache_path, local_path, remote_path @@ -32,7 +32,7 @@ SELECT count() FROM (SELECT arrayJoin(cache_paths) AS cache_path, local_path, re 4 SELECT count() FROM system.filesystem_cache; 4 -SELECT substring(local_path, 58, 10) as file, substring(cache_path, 55, 20) as cache, size +SELECT substring(local_path, 58, 10) as file, substring(cache_path, 53, 20) as cache, size FROM ( SELECT arrayJoin(cache_paths) AS cache_path, local_path, remote_path @@ -57,7 +57,7 @@ SELECT count() FROM (SELECT arrayJoin(cache_paths) AS cache_path, local_path, re 4 SELECT count() FROM system.filesystem_cache; 4 -SELECT substring(local_path, 58, 10) as file, substring(cache_path, 55, 20) as cache, size +SELECT substring(local_path, 58, 10) as file, substring(cache_path, 53, 20) as cache, size FROM ( SELECT arrayJoin(cache_paths) AS cache_path, local_path, remote_path diff --git a/tests/queries/0_stateless/02382_filesystem_cache_persistent_files.sql b/tests/queries/0_stateless/02382_filesystem_cache_persistent_files.sql index 1dbdc41b8b6..470006054e5 100644 --- a/tests/queries/0_stateless/02382_filesystem_cache_persistent_files.sql +++ b/tests/queries/0_stateless/02382_filesystem_cache_persistent_files.sql @@ -14,7 +14,7 @@ INSERT INTO nopers SELECT number, toString(number) FROM numbers(10); SELECT * FROM nopers FORMAT Null; SELECT sum(size) FROM system.filesystem_cache; -SELECT substring(local_path, 56, 10) as file, substring(cache_path, 53, 20) as cache, size +SELECT substring(local_path, 58, 10) as file, substring(cache_path, 53, 20) as cache, size FROM ( SELECT arrayJoin(cache_paths) AS cache_path, local_path, remote_path @@ -37,7 +37,7 @@ SELECT sum(size) FROM system.filesystem_cache; SELECT count() FROM (SELECT arrayJoin(cache_paths) AS cache_path, local_path, remote_path FROM system.remote_data_paths ) AS data_paths INNER JOIN system.filesystem_cache AS caches ON data_paths.cache_path = caches.cache_path; SELECT count() FROM system.filesystem_cache; -SELECT substring(local_path, 56, 10) as file, substring(cache_path, 53, 20) as cache, size +SELECT substring(local_path, 58, 10) as file, substring(cache_path, 53, 20) as cache, size FROM ( SELECT arrayJoin(cache_paths) AS cache_path, local_path, remote_path @@ -60,7 +60,7 @@ SELECT sum(size) FROM system.filesystem_cache; SELECT count() FROM (SELECT arrayJoin(cache_paths) AS cache_path, local_path, remote_path FROM system.remote_data_paths ) AS data_paths INNER JOIN system.filesystem_cache AS caches ON data_paths.cache_path = caches.cache_path; SELECT count() FROM system.filesystem_cache; -SELECT substring(local_path, 56, 10) as file, substring(cache_path, 53, 20) as cache, size +SELECT substring(local_path, 58, 10) as file, substring(cache_path, 53, 20) as cache, size FROM ( SELECT arrayJoin(cache_paths) AS cache_path, local_path, remote_path