Added test [#CLICKHOUSE-3726]

This commit is contained in:
Alexey Milovidov 2018-05-31 21:28:47 +03:00
parent f45c479a8b
commit 848032ef16
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,2 @@
hello
world

View File

@ -0,0 +1,8 @@
DROP TABLE IF EXISTS test.data;
CREATE TABLE test.data (s String, x Int8, y Int8) ENGINE = MergeTree ORDER BY tuple();
INSERT INTO test.data VALUES ('hello', 0, 0), ('world', 0, 0), ('hello', 1, -1), ('world', -1, 1);
SELECT DISTINCT s FROM remote('127.0.0.{1,2}', test.data) ORDER BY x + y, s;
DROP TABLE test.data;