ClickHouse/tests/queries/0_stateless/02001_shard_num_shard_count.sql

6 lines
311 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: shard
select shardNum() n, shardCount() c;
select shardNum() n, shardCount() c from remote('127.0.0.{1,2,3}', system.one) order by n settings prefer_localhost_replica = 0;
select shardNum() n, shardCount() c from remote('127.0.0.{1,2,3}', system.one) order by n settings prefer_localhost_replica = 1;