Merge pull request #15992 from den-crane/test/bug-5346

test for bug 5346
This commit is contained in:
alexey-milovidov 2020-10-15 13:33:47 +03:00 committed by GitHub
commit c1a5e69e41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,6 @@
1 2020-01-01 00:00:00
1 2020-01-01 00:00:00
1 2020-01-01 00:00:00
1 2020-01-01 00:00:00
1 2020-01-01 00:00:00
1 2020-01-01 00:00:00

View File

@ -0,0 +1,16 @@
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;