fix tests

Signed-off-by: Lloyd-Pottiger <yan1579196623@gamil.com>
This commit is contained in:
Lloyd-Pottiger 2022-08-19 15:24:00 +08:00
parent d9cfda905c
commit 51f53af482
2 changed files with 3 additions and 3 deletions

View File

@ -38,13 +38,13 @@ def test_valid_options(start_cluster):
)
node.query(
"""
CREATE TABLE test (key UInt64, value String) Engine=EmbeddedRocksDB(0, true) PRIMARY KEY(key);
CREATE TABLE test (key UInt64, value String) Engine=EmbeddedRocksDB(0, 1) PRIMARY KEY(key);
DROP TABLE test;
"""
)
node.query(
"""
CREATE TABLE test (key UInt64, value String) Engine=EmbeddedRocksDB(10, true) PRIMARY KEY(key);
CREATE TABLE test (key UInt64, value String) Engine=EmbeddedRocksDB(10, 1) PRIMARY KEY(key);
DROP TABLE test;
"""
)

View File

@ -2,7 +2,7 @@
DROP TABLE IF EXISTS 02381_test;
CREATE TABLE 02381_test (key UInt64, value String) Engine=EmbeddedRocksDB("0", "true") PRIMARY KEY(key);
CREATE TABLE 02381_test (key UInt64, value String) Engine=EmbeddedRocksDB(0, 1) PRIMARY KEY(key);
SELECT value FROM system.rocksdb WHERE database = currentDatabase() and table = '02381_test' and name = 'number.keys.written';
INSERT INTO 02381_test SELECT number, format('Hello, world ({})', toString(number)) FROM numbers(10000);