Add a test

This commit is contained in:
Alexey Milovidov 2020-11-04 19:19:59 +03:00
parent 1bcf22d42f
commit a4cfc240e3
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Hello
1000
1000
1000

View File

@ -0,0 +1,22 @@
DROP TABLE IF EXISTS t;
CREATE TABLE t (x String) ENGINE = MergeTree ORDER BY x;
INSERT INTO t VALUES ('Hello');
SET max_parallel_replicas = 3;
SELECT * FROM remote('127.0.0.{2|3|4}', currentDatabase(), t);
DROP TABLE t;
CREATE TABLE t (x String) ENGINE = MergeTree ORDER BY cityHash64(x) SAMPLE BY cityHash64(x);
INSERT INTO t SELECT toString(number) FROM numbers(1000);
SET max_parallel_replicas = 1;
SELECT count() FROM remote('127.0.0.{2|3|4}', currentDatabase(), t);
SET max_parallel_replicas = 2;
SELECT count() FROM remote('127.0.0.{2|3|4}', currentDatabase(), t);
SET max_parallel_replicas = 3;
SELECT count() FROM remote('127.0.0.{2|3|4}', currentDatabase(), t);
DROP TABLE t;

View File

@ -159,3 +159,4 @@
01547_query_log_current_database
01548_query_log_query_execution_ms
01552_dict_fixedstring
01557_max_parallel_replicas_no_sample.sql