mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
One more test case
This commit is contained in:
parent
9bd30b041a
commit
056d794fe4
@ -2,3 +2,5 @@
|
|||||||
1
|
1
|
||||||
1 1
|
1 1
|
||||||
1 1
|
1 1
|
||||||
|
2 2
|
||||||
|
7 14
|
||||||
|
@ -40,4 +40,12 @@ CREATE TABLE primary_key_test(v1 Int32, v2 Int32, PRIMARY KEY(v1, v2), PRIMARY K
|
|||||||
|
|
||||||
CREATE TABLE primary_key_test(v1 Int32, v2 Int32, PRIMARY KEY(v1, v2)) ENGINE=ReplacingMergeTree ORDER BY (v1, v2) PRIMARY KEY(v1, v2); -- { clientError 36; }
|
CREATE TABLE primary_key_test(v1 Int32, v2 Int32, PRIMARY KEY(v1, v2)) ENGINE=ReplacingMergeTree ORDER BY (v1, v2) PRIMARY KEY(v1, v2); -- { clientError 36; }
|
||||||
|
|
||||||
DROP DATABASE test_01516;
|
CREATE TABLE primary_key_test(v1 Int64, v2 Int32, v3 String, PRIMARY KEY(v1, gcd(v1, v2))) ENGINE=ReplacingMergeTree ORDER BY (v1, gcd(v1, v2));
|
||||||
|
|
||||||
|
INSERT INTO primary_key_test VALUES(7, 14, 'hello'), (2, 2, 'world'), (7, 14, 'duplicate');
|
||||||
|
|
||||||
|
SELECT v1, v2 FROM primary_key_test FINAL ORDER BY v1, v2;
|
||||||
|
|
||||||
|
DROP TABLE primary_key_test;
|
||||||
|
|
||||||
|
DROP DATABASE test_01516;
|
||||||
|
Loading…
Reference in New Issue
Block a user