ClickHouse/tests/queries/0_stateless/02240_filesystem_query_cache.reference

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-06-07 18:05:48 +00:00
-- { echo }
SYSTEM DROP FILESYSTEM CACHE;
SET enable_filesystem_cache_on_write_operations=0;
SET skip_download_if_exceeds_query_cache=1;
2023-01-25 20:19:29 +00:00
SET filesystem_cache_max_download_size=128;
2022-06-07 18:05:48 +00:00
DROP TABLE IF EXISTS test;
2023-07-03 13:03:26 +00:00
CREATE TABLE test (key UInt32, value String)
Engine=MergeTree()
ORDER BY key
SETTINGS min_bytes_for_wide_part = 10485760,
compress_marks=false,
compress_primary_key=false,
disk = disk(
type = cache,
max_size = '128Mi',
2023-09-28 10:26:09 +00:00
path = 'filesystem_query_cache/',
2023-07-03 13:03:26 +00:00
cache_on_write_operations= 1,
enable_filesystem_query_cache_limit = 1,
delayed_cleanup_interval_ms = 100,
disk = 's3_disk');
2023-04-18 11:11:42 +00:00
SYSTEM DROP FILESYSTEM CACHE;
2022-06-07 18:05:48 +00:00
INSERT INTO test SELECT number, toString(number) FROM numbers(100);
SELECT * FROM test FORMAT Null;
SELECT file_segment_range_begin, file_segment_range_end, size FROM system.filesystem_cache ORDER BY file_segment_range_end, size;
0 79 80
SYSTEM DROP FILESYSTEM CACHE;
SELECT file_segment_range_begin, file_segment_range_end, size FROM system.filesystem_cache;
SELECT * FROM test FORMAT Null;
SELECT file_segment_range_begin, file_segment_range_end, size FROM system.filesystem_cache;
SYSTEM DROP FILESYSTEM CACHE;
SELECT file_segment_range_begin, file_segment_range_end, size FROM system.filesystem_cache;