test for probably fixed issue (#11221)

This commit is contained in:
Artem Zuikov 2020-05-27 17:25:11 +03:00 committed by GitHub
parent c34f1ed6fd
commit 4fa3628097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
DROP TABLE IF EXISTS foo_local;
DROP TABLE IF EXISTS foo_distributed;
CREATE TABLE foo_local (bar UInt64)
ENGINE = MergeTree()
ORDER BY tuple();
CREATE TABLE foo_distributed AS foo_local
ENGINE = Distributed('test_cluster_two_shards_localhost', currentDatabase(), foo_local);
CREATE TEMPORARY TABLE _tmp_baz (qux UInt64);
SELECT * FROM foo_distributed JOIN _tmp_baz ON foo_distributed.bar = _tmp_baz.qux;
DROP TABLE foo_local;
DROP TABLE foo_distributed;