mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 14:02:21 +00:00
24 lines
853 B
SQL
24 lines
853 B
SQL
-- Tags: no-ordinary-database, no-fasttest
|
|
|
|
DROP TABLE IF EXISTS 02418_test SYNC;
|
|
|
|
CREATE TABLE 02418_test (key UInt64, value Float64) Engine=KeeperMap('/' || currentDatabase() || '/test2418', 3) PRIMARY KEY(key);
|
|
|
|
INSERT INTO 02418_test VALUES (1, 1.1), (2, 2.2);
|
|
SELECT count() FROM 02418_test;
|
|
|
|
INSERT INTO 02418_test VALUES (3, 3.3), (4, 4.4); -- { serverError 290 }
|
|
|
|
INSERT INTO 02418_test VALUES (1, 2.1), (2, 3.2), (3, 3.3);
|
|
SELECT count() FROM 02418_test;
|
|
|
|
CREATE TABLE 02418_test_another (key UInt64, value Float64) Engine=KeeperMap('/' || currentDatabase() || '/test2418', 4) PRIMARY KEY(key);
|
|
INSERT INTO 02418_test VALUES (4, 4.4); -- { serverError 290 }
|
|
INSERT INTO 02418_test_another VALUES (4, 4.4);
|
|
|
|
SELECT count() FROM 02418_test;
|
|
SELECT count() FROM 02418_test_another;
|
|
|
|
DROP TABLE 02418_test SYNC;
|
|
DROP TABLE 02418_test_another SYNC;
|