Added test.

This commit is contained in:
Nikolai Kochetov 2020-03-03 16:55:40 +03:00
parent 7c879259c1
commit 4f5a2ee6d1

View File

@ -2,6 +2,7 @@ set log_queries=1;
set log_query_threads=1; set log_query_threads=1;
SELECT 1; SELECT 1;
SYSTEM FLUSH LOGS;
WITH WITH
( (
@ -16,6 +17,7 @@ FROM system.query_thread_log
WHERE (event_date >= (today() - 1)) AND (query_id = id) AND (thread_id != master_thread_id); WHERE (event_date >= (today() - 1)) AND (query_id = id) AND (thread_id != master_thread_id);
select sum(number) from numbers(1000000); select sum(number) from numbers(1000000);
SYSTEM FLUSH LOGS;
WITH WITH
( (
@ -30,6 +32,7 @@ FROM system.query_thread_log
WHERE (event_date >= (today() - 1)) AND (query_id = id) AND (thread_id != master_thread_id); WHERE (event_date >= (today() - 1)) AND (query_id = id) AND (thread_id != master_thread_id);
select sum(number) from numbers_mt(1000000); select sum(number) from numbers_mt(1000000);
SYSTEM FLUSH LOGS;
WITH WITH
( (