2021-09-12 12:35:27 +00:00
|
|
|
-- Tags: global
|
|
|
|
|
2020-09-09 10:03:13 +00:00
|
|
|
DROP TABLE IF EXISTS local_table;
|
|
|
|
DROP TABLE IF EXISTS dist_table;
|
|
|
|
|
|
|
|
CREATE TABLE local_table (id UInt64, val String) ENGINE = Memory;
|
|
|
|
|
|
|
|
INSERT INTO local_table SELECT number AS id, toString(number) AS val FROM numbers(100);
|
|
|
|
|
|
|
|
CREATE TABLE dist_table AS local_table
|
|
|
|
ENGINE = Distributed('test_cluster_two_shards_localhost', currentDatabase(), local_table);
|
|
|
|
|
2023-03-13 09:33:35 +00:00
|
|
|
SELECT uniq(d.val) FROM dist_table AS d GLOBAL LEFT JOIN numbers(100) AS t USING id; -- { serverError 47, 284 }
|
2020-09-09 10:03:13 +00:00
|
|
|
SELECT uniq(d.val) FROM dist_table AS d GLOBAL LEFT JOIN local_table AS t USING id;
|
|
|
|
|
|
|
|
DROP TABLE local_table;
|
|
|
|
DROP TABLE dist_table;
|