mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 05:22:17 +00:00
Add a test
This commit is contained in:
parent
1bcf22d42f
commit
a4cfc240e3
@ -0,0 +1,4 @@
|
|||||||
|
Hello
|
||||||
|
1000
|
||||||
|
1000
|
||||||
|
1000
|
@ -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;
|
@ -159,3 +159,4 @@
|
|||||||
01547_query_log_current_database
|
01547_query_log_current_database
|
||||||
01548_query_log_query_execution_ms
|
01548_query_log_query_execution_ms
|
||||||
01552_dict_fixedstring
|
01552_dict_fixedstring
|
||||||
|
01557_max_parallel_replicas_no_sample.sql
|
||||||
|
Loading…
Reference in New Issue
Block a user