Add a test for mmap IO

This commit is contained in:
Alexey Milovidov 2021-03-26 22:08:53 +03:00
parent e55f7e6333
commit e32beab913
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1 @@
687074654

View File

@ -0,0 +1,8 @@
DROP TABLE IF EXISTS hits_none;
CREATE TABLE hits_none (Title String CODEC(NONE)) ENGINE = MergeTree ORDER BY tuple();
INSERT INTO hits_none SELECT Title FROM test.hits;
SET min_bytes_to_use_mmap_io = 1;
SELECT sum(length(Title)) FROM hits_none;
DROP TABLE hits_none;