mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
13 lines
457 B
SQL
13 lines
457 B
SQL
DROP TABLE IF EXISTS test;
|
|
|
|
CREATE TABLE test (id UInt64, date Date)
|
|
ENGINE = MergeTree
|
|
ORDER BY id
|
|
AS select *, '2023-12-25' from numbers(100);
|
|
|
|
SELECT count(), sum(id)
|
|
FROM remote('127.0.0.1|127.0.0.2|127.0.0.3|127.0.0.4', currentDatabase(), test)
|
|
SETTINGS enable_parallel_replicas = 2, max_parallel_replicas = 4, prefer_localhost_replica = 0, parallel_replicas_for_non_replicated_merge_tree = 1; -- { serverError CLUSTER_DOESNT_EXIST }
|
|
|
|
DROP TABLE test;
|