2022-03-21 11:30:25 +00:00
|
|
|
-- Tags: no-parallel, no-fasttest
|
|
|
|
|
|
|
|
-- { echo }
|
|
|
|
|
|
|
|
SYSTEM DROP REMOTE FILESYSTEM CACHE;
|
2022-03-30 09:54:42 +00:00
|
|
|
SET remote_fs_cache_on_write_operations=0;
|
2022-03-21 13:56:38 +00:00
|
|
|
DROP TABLE IF EXISTS test;
|
2022-03-30 09:54:42 +00:00
|
|
|
CREATE TABLE test (key UInt32, value String) Engine=MergeTree() ORDER BY key SETTINGS storage_policy='s3';
|
|
|
|
INSERT INTO test SELECT number, toString(number) FROM numbers(100);
|
2022-03-21 11:30:25 +00:00
|
|
|
|
|
|
|
SELECT * FROM test FORMAT Null;
|
2022-03-30 09:54:42 +00:00
|
|
|
SELECT cache_base_path, file_segment_range_begin, file_segment_range_end, size FROM system.filesystem_cache ORDER BY file_segment_range_end, size;
|
2022-03-21 11:30:25 +00:00
|
|
|
SYSTEM DROP REMOTE FILESYSTEM CACHE;
|
2022-03-30 09:54:42 +00:00
|
|
|
SELECT cache_base_path, file_segment_range_begin, file_segment_range_end, size FROM system.filesystem_cache;
|
2022-03-21 11:30:25 +00:00
|
|
|
SELECT * FROM test FORMAT Null;
|
2022-03-30 09:54:42 +00:00
|
|
|
SELECT cache_base_path, file_segment_range_begin, file_segment_range_end, size FROM system.filesystem_cache;
|
2022-03-21 11:30:25 +00:00
|
|
|
SYSTEM DROP REMOTE FILESYSTEM CACHE;
|
2022-03-30 09:54:42 +00:00
|
|
|
SELECT cache_base_path, file_segment_range_begin, file_segment_range_end, size FROM system.filesystem_cache;
|