mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-09 16:02:23 +00:00
13 lines
482 B
SQL
13 lines
482 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 allow_experimental_parallel_reading_from_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;
|