2021-09-12 12:35:27 +00:00
|
|
|
-- Tags: distributed
|
|
|
|
|
2022-02-11 14:15:56 +00:00
|
|
|
SET allow_experimental_parallel_reading_from_replicas = 0;
|
|
|
|
|
2020-10-15 02:48:55 +00:00
|
|
|
DROP TABLE IF EXISTS test5346;
|
|
|
|
|
|
|
|
CREATE TABLE test5346 (`Id` String, `Timestamp` DateTime, `updated` DateTime)
|
|
|
|
ENGINE = ReplacingMergeTree(updated) PARTITION BY tuple() ORDER BY (Timestamp, Id);
|
|
|
|
|
|
|
|
INSERT INTO test5346 VALUES('1',toDateTime('2020-01-01 00:00:00'),toDateTime('2020-01-01 00:00:00'));
|
|
|
|
|
|
|
|
SELECT Id, Timestamp
|
|
|
|
FROM remote('localhost,127.0.0.1,127.0.0.2',currentDatabase(),'test5346') FINAL
|
|
|
|
ORDER BY Timestamp;
|
|
|
|
|
|
|
|
SELECT Id, Timestamp
|
|
|
|
FROM remote('localhost,127.0.0.1,127.0.0.2',currentDatabase(),'test5346') FINAL
|
|
|
|
ORDER BY identity(Timestamp);
|
|
|
|
|
|
|
|
DROP TABLE test5346;
|