From e32beab913ba29ac92b1d91b31aa9171c980a6e6 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Fri, 26 Mar 2021 22:08:53 +0300 Subject: [PATCH] Add a test for mmap IO --- .../1_stateful/00162_mmap_compression_none.reference | 1 + tests/queries/1_stateful/00162_mmap_compression_none.sql | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 tests/queries/1_stateful/00162_mmap_compression_none.reference create mode 100644 tests/queries/1_stateful/00162_mmap_compression_none.sql diff --git a/tests/queries/1_stateful/00162_mmap_compression_none.reference b/tests/queries/1_stateful/00162_mmap_compression_none.reference new file mode 100644 index 00000000000..3495cc537c1 --- /dev/null +++ b/tests/queries/1_stateful/00162_mmap_compression_none.reference @@ -0,0 +1 @@ +687074654 diff --git a/tests/queries/1_stateful/00162_mmap_compression_none.sql b/tests/queries/1_stateful/00162_mmap_compression_none.sql new file mode 100644 index 00000000000..2178644214a --- /dev/null +++ b/tests/queries/1_stateful/00162_mmap_compression_none.sql @@ -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;