Add a test

This commit is contained in:
Alexey Milovidov 2021-03-28 22:29:32 +03:00
parent 2a8ac01cdb
commit d800e2b1cd
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,6 @@
MMappedFileCacheHits
MMappedFileCacheMisses
CreatedReadBufferMMap
CreatedReadBufferMMapFailed
MMappedFiles
MMappedFileBytes

View File

@ -0,0 +1,7 @@
-- We check the existence of queries and metrics and don't check the results (a smoke test).
SYSTEM DROP MMAP CACHE;
SET system_events_show_zero_values = 1;
SELECT event FROM system.events WHERE event LIKE '%MMap%';
SELECT metric FROM system.metrics WHERE metric LIKE '%MMap%';