ClickHouse/tests/queries/0_stateless/02418_keeper_map_keys_limit.sql
2022-09-08 12:45:36 +00:00

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;