ClickHouse/tests/queries/0_stateless/00563_shard_insert_into_remote.sql
2021-09-12 17:15:28 +03:00

10 lines
393 B
SQL

-- Tags: shard
drop table if exists tab;
create table tab (val UInt8) engine = MergeTree order by val;
insert into function remote('127.0.0.2', currentDatabase(), tab) values (1);
insert into function remote('127.0.0.{2|3}', currentDatabase(), tab) values (2);
insert into function remote('127.0.0.{2|3|4}', currentDatabase(), tab) values (3);
select * from tab order by val;
drop table tab;