CLICKHOUSE-3837 fix tests

This commit is contained in:
VadimPE 2018-07-26 18:13:00 +03:00
parent 2854818378
commit bb5d8db9a1
3 changed files with 9 additions and 9 deletions

View File

@ -1,9 +0,0 @@
DROP TABLE IF EXISTS test.remote_test;
CREATE TABLE test.remote_test(a1 UInt8) ENGINE=Memory;
INSERT INTO FUNCTION remote('127.0.0.1', test.remote_test) VALUES(1);
INSERT INTO FUNCTION remote('127.0.0.1', test.remote_test) VALUES(2);
INSERT INTO FUNCTION remote('127.0.0.1', test.remote_test) VALUES(3);
INSERT INTO FUNCTION remote('127.0.0.1', test.remote_test) VALUES(4);
SELECT COUNT(*) FROM remote('127.0.0.1', test.remote_test);
SELECT count(*) FROM remote('127.0.0.1', merge(test, '^remote_test'));
DROP TABLE test.remote_test;

View File

@ -0,0 +1,9 @@
DROP TABLE IF EXISTS remote_test;
CREATE TABLE remote_test(a1 UInt8) ENGINE=Memory;
INSERT INTO FUNCTION remote('127.0.0.{1,2}', default.remote_test) VALUES(1);
INSERT INTO FUNCTION remote('127.0.0.{1,2}', default.remote_test) VALUES(2);
INSERT INTO FUNCTION remote('127.0.0.{1,2}', default.remote_test) VALUES(3);
INSERT INTO FUNCTION remote('127.0.0.{1,2}', default.remote_test) VALUES(4);
SELECT COUNT(*) FROM remote('127.0.0.{1,2}', default.remote_test);
SELECT count(*) FROM remote('127.0.0.{1,2}', merge(default, '^remote_test'));
DROP TABLE test.remote_test;