ClickHouse/tests/queries/0_stateless/02804_clusterAllReplicas_insert.sql
2023-07-08 19:32:44 +03:00

7 lines
315 B
SQL

drop table if exists data;
create table data (key Int) engine=Memory();
-- NOTE: internal_replication is false, so INSERT will be done only into one shard
insert into function clusterAllReplicas(test_cluster_two_shards, currentDatabase(), data, rand()) values (2);
select * from data order by key;
drop table data;