add test.

This commit is contained in:
zhangxiao018 2019-12-13 11:59:51 +08:00
parent c03f126057
commit 8a2b8647e4
3 changed files with 16 additions and 0 deletions

View File

@ -184,6 +184,12 @@
<port>9000</port>
</replica>
</shard>
<shard>
<replica>
<host>10.26.9.232</host>
<port>9001</port>
</replica>
</shard>
</test_shard_localhost>
<test_cluster_two_shards_localhost>
<shard>

View File

@ -0,0 +1,9 @@
DROP TABLE IF EXISTS test_count;
CREATE TABLE test_count (`pt` Date) ENGINE = MergeTree PARTITION BY pt ORDER BY pt SETTINGS index_granularity = 8192;
INSERT INTO test_count values ('2019-12-12');
SELECT count(1) FROM remote('127.0.0.{1,1,2}',default,test_count);
DROP TABLE test_count;