Added a test.

This commit is contained in:
Nikolai Kochetov 2020-07-27 17:46:57 +03:00
parent be2132d437
commit a59e1c2f71
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,3 @@
249999500000
250000000000
1

View File

@ -0,0 +1,7 @@
set log_queries = 1;
set max_threads = 16;
select sum(number) from remote('127.0.0.{1|2}', numbers_mt(1000000)) group by number % 2 order by number % 2;
system flush logs;
select length(thread_ids) >= 16 from system.query_log where event_date >= today() - 1 and lower(query) like '%select sum(number) from remote(_127.0.0.{1|2}_, numbers_mt(1000000)) group by number %' and type = 'QueryFinish' order by query_start_time desc limit 1;