test for insert into remote table function

This commit is contained in:
Nikolai Kochetov 2018-01-26 21:05:55 +03:00
parent b0f66bb234
commit 277e3b8364
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,7 @@
1
2
2
3
3
3

View File

@ -0,0 +1,8 @@
create database if not exists test;
drop table if exists test.tab;
create table test.tab (val UInt8) engine = Log;
insert into function remote('127.0.0.1', test.tab) values (1);
insert into function remote('127.0.0.{1|2}', test.tab) values (2);
insert into function remote('127.0.0.{1|2|3}', test.tab) values (3);
select * from test.tab order by val;