ClickHouse/tests/queries/0_stateless/00612_shard_count.sql

12 lines
328 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: shard
DROP TABLE IF EXISTS count;
2019-10-29 14:26:43 +00:00
CREATE TABLE count (x UInt64) ENGINE = MergeTree ORDER BY tuple();
INSERT INTO count SELECT * FROM numbers(1234567);
2019-10-29 14:26:43 +00:00
SELECT count() FROM remote('127.0.0.{1,2}', currentDatabase(), count);
SELECT count() / 2 FROM remote('127.0.0.{1,2}', currentDatabase(), count);
2019-10-29 14:26:43 +00:00
DROP TABLE count;