Update 02985_dialects_with_distributed_tables.sql

This commit is contained in:
Alexey Milovidov 2024-02-11 07:55:04 +01:00 committed by Austin Kothig
parent f5ba7fde9f
commit 0458f470b9
No known key found for this signature in database

View File

@ -1,15 +1,13 @@
-- Tags: no-fasttest, distributed, replica, shard, zookeeper -- Tags: no-fasttest, distributed
DROP TABLE IF EXISTS shared_test_table; DROP TABLE IF EXISTS shared_test_table;
DROP TABLE IF EXISTS distributed_test_table; DROP TABLE IF EXISTS distributed_test_table;
CREATE TABLE shared_test_table CREATE TABLE shared_test_table
ON CLUSTER test_cluster_two_shard_three_replicas_localhost (id Int16) ENGINE = MergeTree
ENGINE = ReplicatedMergeTree('/clickhouse/tables/test_02985_{database}/{shard}/shared_test_table', '{replica}')
ORDER BY (id); ORDER BY (id);
CREATE TABLE distributed_test_table CREATE TABLE distributed_test_table
ON CLUSTER test_cluster_two_shard_three_replicas_localhost (id Int16)
ENGINE = Distributed(test_cluster_two_shard_three_replicas_localhost, currentDatabase(), shared_test_table); ENGINE = Distributed(test_cluster_two_shard_three_replicas_localhost, currentDatabase(), shared_test_table);
INSERT INTO shared_test_table VALUES (123), (651), (446), (315), (234), (764); INSERT INTO shared_test_table VALUES (123), (651), (446), (315), (234), (764);
@ -25,3 +23,8 @@ SET dialect = 'prql';
from distributed_test_table from distributed_test_table
select {id} select {id}
take 1..3 take 1..3
SET dialect = 'clickhouse';
DROP TABLE distributed_test_table;
DROP TABLE shared_test_table;