ClickHouse/tests/queries/1_stateful/00167_read_bytes_from_fs.sql

10 lines
568 B
MySQL
Raw Normal View History

2022-04-28 23:17:11 +00:00
-- Tags: no-random-settings
2021-10-13 15:12:04 +00:00
SELECT sum(cityHash64(*)) FROM test.hits SETTINGS max_threads=40;
2021-10-13 12:25:44 +00:00
2021-10-13 15:12:04 +00:00
-- We had a bug which lead to additional compressed data read. test.hits compressed size is about 1.2Gb, but we read more then 3Gb.
2021-10-13 12:25:44 +00:00
-- Small additional reads still possible, so we compare with about 1.5Gb.
2021-10-15 07:39:31 +00:00
SYSTEM FLUSH LOGS;
SELECT ProfileEvents['ReadBufferFromFileDescriptorReadBytes'] < 1500000000 from system.query_log where query = 'SELECT sum(cityHash64(*)) FROM test.hits SETTINGS max_threads=40;' and current_database = currentDatabase() and type = 'QueryFinish';