mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-20 23:41:01 +00:00
8 lines
448 B
SQL
8 lines
448 B
SQL
drop table if exists test_max_parallel_replicas_lr;
|
|
|
|
CREATE TABLE test_max_parallel_replicas_lr (timestamp UInt64) ENGINE = MergeTree ORDER BY (intHash32(timestamp)) SAMPLE BY intHash32(timestamp);
|
|
INSERT INTO test_max_parallel_replicas_lr select number as timestamp from system.numbers limit 100;
|
|
|
|
SET max_parallel_replicas = 2;
|
|
select count() FROM remote('127.0.0.{2|3}', currentDatabase(), test_max_parallel_replicas_lr) PREWHERE timestamp > 0;
|