Minor modification

This commit is contained in:
Alexey Milovidov 2020-06-25 22:46:02 +03:00
parent 8872417d00
commit 734be4f376

View File

@ -1,11 +1,11 @@
DROP TABLE IF EXISTS test; DROP TABLE IF EXISTS test_01343;
CREATE TABLE test (x String) ENGINE = MergeTree ORDER BY tuple(); CREATE TABLE test_01343 (x String) ENGINE = MergeTree ORDER BY tuple();
INSERT INTO test VALUES ('Hello, world'); INSERT INTO test_01343 VALUES ('Hello, world');
SET min_bytes_to_use_mmap_io = 1; SET min_bytes_to_use_mmap_io = 1;
SELECT * FROM test; SELECT * FROM test_01343;
SYSTEM FLUSH LOGS; SYSTEM FLUSH LOGS;
SELECT PE.Values FROM system.query_log ARRAY JOIN ProfileEvents AS PE WHERE event_date >= yesterday() AND event_time >= now() - 300 AND query LIKE 'SELECT * FROM test%' AND PE.Names = 'CreatedReadBufferMMap' AND type = 2 ORDER BY event_time DESC LIMIT 1; SELECT PE.Values FROM system.query_log ARRAY JOIN ProfileEvents AS PE WHERE event_date >= yesterday() AND event_time >= now() - 300 AND query LIKE 'SELECT * FROM test_01343%' AND PE.Names = 'CreatedReadBufferMMap' AND type = 2 ORDER BY event_time DESC LIMIT 1;
DROP TABLE test; DROP TABLE test_01343;