mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 19:45:11 +00:00
Improve 02730_dictionary_hashed_load_factor test
- add attributes & names into output - rename to include element_count into the name too Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
parent
2fd1a73812
commit
5fbf601764
@ -1,2 +0,0 @@
|
||||
1000000 0.4768
|
||||
1000000 0.4768
|
@ -0,0 +1,2 @@
|
||||
dict_sharded 1 1000000 0.4768
|
||||
dict_sharded_multi 5 1000000 0.4768
|
@ -6,12 +6,12 @@ CREATE TABLE dict_data (key UInt64, v0 UInt16, v1 UInt16, v2 UInt16, v3 UInt16,
|
||||
|
||||
CREATE DICTIONARY dict_sharded (key UInt64, v0 UInt16) PRIMARY KEY key SOURCE(CLICKHOUSE(TABLE 'dict_data')) LIFETIME(MIN 0 MAX 0) LAYOUT(HASHED(SHARDS 32));
|
||||
SYSTEM RELOAD DICTIONARY dict_sharded;
|
||||
SELECT element_count, round(load_factor, 4) FROM system.dictionaries WHERE database = currentDatabase() AND name = 'dict_sharded';
|
||||
SELECT name, length(attribute.names), element_count, round(load_factor, 4) FROM system.dictionaries WHERE database = currentDatabase() AND name = 'dict_sharded';
|
||||
DROP DICTIONARY dict_sharded;
|
||||
|
||||
CREATE DICTIONARY dict_sharded_multi (key UInt64, v0 UInt16, v1 UInt16, v2 UInt16, v3 UInt16, v4 UInt16) PRIMARY KEY key SOURCE(CLICKHOUSE(TABLE 'dict_data')) LIFETIME(MIN 0 MAX 0) LAYOUT(HASHED(SHARDS 32));
|
||||
SYSTEM RELOAD DICTIONARY dict_sharded_multi;
|
||||
SELECT element_count, round(load_factor, 4) FROM system.dictionaries WHERE database = currentDatabase() AND name = 'dict_sharded_multi';
|
||||
SELECT name, length(attribute.names), element_count, round(load_factor, 4) FROM system.dictionaries WHERE database = currentDatabase() AND name = 'dict_sharded_multi';
|
||||
DROP DICTIONARY dict_sharded_multi;
|
||||
|
||||
DROP TABLE dict_data;
|
Loading…
Reference in New Issue
Block a user