ClickHouse/tests/queries/0_stateless/01046_trivial_count_query_distributed.sql

12 lines
325 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: distributed
2019-12-13 03:59:51 +00:00
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');
2019-12-14 05:28:16 +00:00
SELECT count(1) FROM remote('127.0.0.{1,1,2}', currentDatabase(), test_count);
2019-12-13 03:59:51 +00:00
DROP TABLE test_count;