mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
address comments
Signed-off-by: Lloyd-Pottiger <yan1579196623@gamil.com>
This commit is contained in:
parent
26d55f3354
commit
340c8d1c18
@ -32,13 +32,13 @@ def test_valid_options(start_cluster):
|
||||
)
|
||||
node.query(
|
||||
"""
|
||||
CREATE TABLE test (key UInt64, value String) Engine=EmbeddedRocksDB(-1) PRIMARY KEY(key);
|
||||
CREATE TABLE test (key UInt64, value String) Engine=EmbeddedRocksDB(0) PRIMARY KEY(key);
|
||||
DROP TABLE test;
|
||||
"""
|
||||
)
|
||||
node.query(
|
||||
"""
|
||||
CREATE TABLE test (key UInt64, value String) Engine=EmbeddedRocksDB(-1, true) PRIMARY KEY(key);
|
||||
CREATE TABLE test (key UInt64, value String) Engine=EmbeddedRocksDB(0, true) PRIMARY KEY(key);
|
||||
DROP TABLE test;
|
||||
"""
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
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", "true") 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);
|
||||
|
@ -1,18 +0,0 @@
|
||||
10000
|
||||
123 Hello, world (123)
|
||||
--
|
||||
--
|
||||
123 Hello, world (123)
|
||||
4567 Hello, world (4567)
|
||||
--
|
||||
--
|
||||
0 Hello, world (0)
|
||||
--
|
||||
123 Hello, world (123)
|
||||
456 Hello, world (456)
|
||||
--
|
||||
99 Hello, world (99)
|
||||
999 Hello, world (999)
|
||||
9999 Hello, world (9999)
|
||||
--
|
||||
0
|
@ -1,32 +0,0 @@
|
||||
DROP TABLE IF EXISTS 02381_test;
|
||||
|
||||
CREATE TABLE 02381_test (key UInt64, value String) Engine=EmbeddedRocksDB(10) 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);
|
||||
SELECT value FROM system.rocksdb WHERE database = currentDatabase() and table = '02381_test' and name = 'number.keys.written';
|
||||
|
||||
SELECT * FROM 02381_test WHERE key = 123;
|
||||
SELECT '--';
|
||||
SELECT * FROM 02381_test WHERE key = -123;
|
||||
SELECT '--';
|
||||
SELECT * FROM 02381_test WHERE key = 123 OR key = 4567 ORDER BY key;
|
||||
SELECT '--';
|
||||
SELECT * FROM 02381_test WHERE key = NULL;
|
||||
SELECT '--';
|
||||
SELECT * FROM 02381_test WHERE key = NULL OR key = 0;
|
||||
SELECT '--';
|
||||
SELECT * FROM 02381_test WHERE key IN (123, 456, -123) ORDER BY key;
|
||||
SELECT '--';
|
||||
SELECT * FROM 02381_test WHERE key = 'Hello'; -- { serverError 53 }
|
||||
|
||||
DETACH TABLE 02381_test NO DELAY;
|
||||
ATTACH TABLE 02381_test;
|
||||
|
||||
SELECT * FROM 02381_test WHERE key IN (99, 999, 9999, -123) ORDER BY key;
|
||||
|
||||
sleep(10)
|
||||
SELECT '--';
|
||||
SELECT value FROM system.rocksdb WHERE database = currentDatabase() and table = '02381_test' and name = 'number.keys.written';
|
||||
|
||||
DROP TABLE IF EXISTS 02381_test;
|
Loading…
Reference in New Issue
Block a user