2018-01-25 16:04:54 +00:00
|
|
|
-- Check that settings are correctly passed through Distributed table
|
|
|
|
DROP TABLE IF EXISTS test.simple;
|
2018-01-26 12:42:52 +00:00
|
|
|
CREATE TABLE test.simple (d Int8) ENGINE = ReplicatedMergeTree('/clickhouse_test/tables/test/simple', '1') ORDER BY d;
|
2018-01-25 16:04:54 +00:00
|
|
|
|
|
|
|
-- TODO: replace '127.0.0.2' -> '127.0.0.1' after a fix
|
|
|
|
INSERT INTO TABLE FUNCTION remote('127.0.0.2', 'test', 'simple') VALUES (1);
|
|
|
|
INSERT INTO TABLE FUNCTION remote('127.0.0.2', 'test', 'simple') VALUES (1);
|
|
|
|
|
|
|
|
SET insert_deduplicate=0;
|
|
|
|
INSERT INTO TABLE FUNCTION remote('127.0.0.2', 'test', 'simple') VALUES (2);
|
|
|
|
INSERT INTO TABLE FUNCTION remote('127.0.0.2', 'test', 'simple') VALUES (2);
|
|
|
|
|
2018-01-26 12:42:52 +00:00
|
|
|
SELECT * FROM remote('127.0.0.2', 'test', 'simple') ORDER BY d;
|
|
|
|
DROP TABLE test.simple;
|