ClickHouse/tests/queries/0_stateless/00563_shard_insert_into_remote.sql

8 lines
377 B
MySQL
Raw Normal View History

2019-06-07 15:41:24 +00:00
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;
2019-06-07 16:02:24 +00:00
drop table tab;